]> git.karo-electronics.de Git - linux-beck.git/commitdiff
V4L/DVB (3362): KWorld ATSC110: implement set_pll_input
authorCurt Meyers <cmeyers@boilerbots.com>
Mon, 27 Feb 2006 03:08:27 +0000 (00:08 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 27 Feb 2006 03:08:27 +0000 (00:08 -0300)
- When tuning VSB, use ANT input
- When tuning QAM, use CABLE input

Signed-off-by: Curt Meyers <cmeyers@boilerbots.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/saa7134/saa7134-dvb.c

index 354bbf7a18587f1a3bbf96b5bd948f80ab1c6313..757796259cf99fe9f9662c1c1c8cde51ea4728c8 100644 (file)
@@ -928,10 +928,20 @@ static struct nxt200x_config avertvhda180 = {
        .pll_desc         = &dvb_pll_tdhu2,
 };
 
+static int nxt200x_set_pll_input(u8 *buf, int input)
+{
+       if (input)
+               buf[3] |= 0x08;
+       else
+               buf[3] &= ~0x08;
+       return 0;
+}
+
 static struct nxt200x_config kworldatsc110 = {
        .demod_address    = 0x0a,
        .pll_address      = 0x61,
        .pll_desc         = &dvb_pll_tuv1236d,
+       .set_pll_input    = nxt200x_set_pll_input,
 };
 #endif