[PATCH] Re: [linux-dvb] Twinhan fails horizontal initial scan
Edgar Toernig
froese at gmx.de
Tue Jun 21 05:36:37 CEST 2005
Allan Stirling wrote:
>
> It's now working. I had to change:
>
> --- dst.c~ 2005-06-20 17:49:54.730668000 +0100
> +++ dst.c 2005-06-20 17:49:54.734668000 +0100
> @@ -325,12 +325,12 @@
> switch (state->voltage) {
> case SEC_VOLTAGE_13: // vertical
> printk("%s: Polarization=[Vertical]\n",
> __FUNCTION__);
> - state->tx_tuna[8] |= 0x40; //1
> + state->tx_tuna[8] =~ 0x40; //1
> break;
>
> case SEC_VOLTAGE_18: // horizontal
> printk("%s: Polarization=[Horizontal]\n",
> __FUNCTION__);
> - state->tx_tuna[8] =~ 0x40; // 0
> + state->tx_tuna[8] |= 0x40; // 0
> break;
Those "=~ 0x40" look bogus.
"|= 0x40" sets the bit and "&= ~0x40" clears it.
Ciao, ET.
More information about the linux-dvb
mailing list