]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (3667a): Fix SAP + stereo mode at msp3400
authorMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 29 Mar 2006 19:29:00 +0000 (16:29 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 2 Apr 2006 07:55:54 +0000 (04:55 -0300)
It should be V4L2_TUNER_MODE_LANG1_LANG2. What the code does is check if
we are NTSC and a SAP channel is available. If so, then the msp3400
should switch to standard 0x21 if the user wants to hear the SAP
channel, which is for audio modes LANG2 (aka SAP) and LANG1_LANG2
(bilingual).

In the msp3400 driver STEREO is abused for bilingual in PAL. Bilingual
never worked with NTSC in the past and I decided that I'd better not
use the bad PAL example.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/msp3400-kthreads.c

index 2ee596db265a931b82d4d428b04940c742992162..1a4564a7e92fad59d2e7dbc773b06f0baef9256e 100644 (file)
@@ -1036,7 +1036,7 @@ static void msp34xxg_set_audmode(struct i2c_client *client)
 
        if (state->std == 0x20) {
               if ((state->rxsubchans & V4L2_TUNER_SUB_SAP) &&
-                  (state->audmode == V4L2_TUNER_MODE_STEREO ||
+                  (state->audmode == V4L2_TUNER_MODE_LANG1_LANG2 ||
                    state->audmode == V4L2_TUNER_MODE_LANG2)) {
                        msp_write_dem(client, 0x20, 0x21);
               } else {