V4L/DVB (6417): Report detected sound carrier into rxsubchans
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Fri, 25 Aug 2006 19:53:07 +0000 (16:53 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:00:59 +0000 (19:00 -0200)
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/bt8xx/bttv-audio-hook.c

index a075198f83002a0b3cf840feeecd5561f780ac90..67b63423575f3f353f0c8942239522db3084074d 100644 (file)
@@ -101,24 +101,28 @@ void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set)
        } else {
                switch (val & 0x70) {
                  case 0x10:
-                       t->audmode = V4L2_TUNER_MODE_LANG1 | V4L2_TUNER_MODE_LANG2;
+                       t->rxsubchans = V4L2_TUNER_SUB_LANG1 |  V4L2_TUNER_SUB_LANG2;
                        break;
                  case 0x30:
-                       t->audmode = V4L2_TUNER_MODE_LANG2;
+                       t->rxsubchans = V4L2_TUNER_SUB_LANG2;
                        break;
                  case 0x50:
-                       t->audmode = V4L2_TUNER_MODE_LANG1;
+                       t->rxsubchans = V4L2_TUNER_SUB_LANG1;
                        break;
                  case 0x60:
-                       t->audmode = V4L2_TUNER_MODE_STEREO;
+                       t->rxsubchans = V4L2_TUNER_SUB_STEREO;
                        break;
                  case 0x70:
-                       t->audmode = V4L2_TUNER_MODE_MONO;
+                       t->rxsubchans = V4L2_TUNER_SUB_MONO;
                        break;
                  default:
-                       t->audmode = V4L2_TUNER_MODE_MONO | V4L2_TUNER_MODE_STEREO |
-                                 V4L2_TUNER_MODE_LANG1 | V4L2_TUNER_MODE_LANG2;
+                       t->rxsubchans = V4L2_TUNER_SUB_MONO |
+                                        V4L2_TUNER_SUB_STEREO |
+                                        V4L2_TUNER_SUB_LANG1 |
+                                        V4L2_TUNER_SUB_LANG2;
                }
+               t->audmode = V4L2_TUNER_MODE_STEREO |
+                         V4L2_TUNER_MODE_LANG1  | V4L2_TUNER_MODE_LANG2;
        }
 }