V4L/DVB (5999): cx25840: add radio support.
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 5 Aug 2007 17:24:17 +0000 (14:24 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:04:56 +0000 (22:04 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx25840/cx25840-core.c

index 65ad7943dd9a5326f57935732bb46d069fe0eb51..8f9c32613b45151b4951b19e4d246385608acb07 100644 (file)
@@ -251,7 +251,11 @@ static void input_change(struct i2c_client *client)
        cx25840_and_or(client, 0x401, ~0x60, 0);
        cx25840_and_or(client, 0x401, ~0x60, 0x60);
 
-       if (std & V4L2_STD_525_60) {
+       if (state->radio) {
+               cx25840_write(client, 0x808, 0xf9);
+               cx25840_write(client, 0x80b, 0x00);
+       }
+       else if (std & V4L2_STD_525_60) {
                /* Certain Hauppauge PVR150 models have a hardware bug
                   that causes audio to drop out. For these models the
                   audio standard must be set explicitly.