Commit 155c6ab9 authored by Nickolay V. Shmyrev's avatar Nickolay V. Shmyrev Committed by Mauro Carvalho Chehab

V4L/DVB (6417): Report detected sound carrier into rxsubchans

Signed-off-by: default avatarNickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 4b9b936f
...@@ -101,24 +101,28 @@ void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) ...@@ -101,24 +101,28 @@ void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set)
} else { } else {
switch (val & 0x70) { switch (val & 0x70) {
case 0x10: case 0x10:
t->audmode = V4L2_TUNER_MODE_LANG1 | V4L2_TUNER_MODE_LANG2; t->rxsubchans = V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2;
break; break;
case 0x30: case 0x30:
t->audmode = V4L2_TUNER_MODE_LANG2; t->rxsubchans = V4L2_TUNER_SUB_LANG2;
break; break;
case 0x50: case 0x50:
t->audmode = V4L2_TUNER_MODE_LANG1; t->rxsubchans = V4L2_TUNER_SUB_LANG1;
break; break;
case 0x60: case 0x60:
t->audmode = V4L2_TUNER_MODE_STEREO; t->rxsubchans = V4L2_TUNER_SUB_STEREO;
break; break;
case 0x70: case 0x70:
t->audmode = V4L2_TUNER_MODE_MONO; t->rxsubchans = V4L2_TUNER_SUB_MONO;
break; break;
default: default:
t->audmode = V4L2_TUNER_MODE_MONO | V4L2_TUNER_MODE_STEREO | t->rxsubchans = V4L2_TUNER_SUB_MONO |
V4L2_TUNER_MODE_LANG1 | V4L2_TUNER_MODE_LANG2; 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;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment