Adding this code to the init2 function helps get the tuner identified
properly.
With this change it is no longer necessary to remove and reload the
tuner module. This is more what everyone was expecting. This code is
from the ATI HDTV Wonder init routine which also uses the TUV1236D.
This is based on: *http://linuxtv.org/hg/~mkrufky/atsc
*
-------------------------
From: Curt Meyers <cmeyers@xxxxxxxxxxxxxx>
- Enable the tuv1236 tuner on the Kworld-ATSC110 card so the
tuner module can be identified when it loads.
Signed-off-by: Curt Meyers <cmeyers@xxxxxxxxxxxxxx>
-----
# HG changeset patch
# User cmeyers@xxxxxxxxxxxxxx
# Node ID b0ff1e3a5628e12d547b5da1efa89387b88398df
# Parent c1a2de40a276ce0cce51da93702a7b7c3e0f80bf
diff -r c1a2de40a276 -r b0ff1e3a5628
linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c Thu Feb 16
13:32:52 2006 -0500
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Fri Feb 17
03:53:05 2006 -0800
@@ -3591,6 +3591,19 @@ int saa7134_board_init2(struct saa7134_d
i2c_transfer(&dev->i2c_adap, &msg, 1);
}
break;
+ case SAA7134_BOARD_KWORLD_ATSC110:
+ {
+ /* enable tuner */
+ int i;
+ u8 buffer [] = {
0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
+ dev->i2c_client.addr = 0x0a;
+
+ for (i = 0; i < 5; i++)
+ if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2))
+ printk(KERN_WARNING "%s: Unable to enable
tuner(%i).\n",
+ dev->name, i);
+ }
+ break;
}
return 0;
}
_______________________________________________
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb