Pixelview PV-4900 no radio
- From: "Ts. Stoianov" <tseso_st (at) abv.bg>
- Date: Thu, 30 Mar 2006 11:34:37 +0300 (EEST)
PlayTVpro2
TV-card is PV-4500(FR)
tuner inside: TNF9835 (remove top cover tuner to see)
/etc/modprobe.conf:
options bttv card=37 tuner=37 radio=1
To make FM-radio work, i changed finction default_set_radio_freq(....) definited in tuner_simple.c kernel source code (linux-2.6.15).
/////////////////////////////////////////
static void default_set_radio_freq(struct i2c_client *c, unsigned int freq)
{
struct tunertype *tun;
struct tuner *t = i2c_get_clientdata(c);
unsigned char buffer[4];
unsigned div;
int rc;
tun = &tuners[t->type];
div = (20 * freq / 16000) + (int)(20*10.7); // IF 10.7 MHz
buffer[2] = (tun->config & ~TUNER_RATIO_MASK) | TUNER_RATIO_SELECT_50; // 50 kHz step
buffer[3] = 0x11;//this set tuner in FM-radio mode
buffer[0] = (div>>8) & 0x7f;
buffer[1] = div & 0xff;
tuner_dbg("radio 0x%02x 0x%02x 0x%02x 0x%02x\n",
buffer[0],buffer[1],buffer[2],buffer[3]);
if (4 != (rc = i2c_master_send(c,buffer,4)))
tuner_warn("i2c i/o error: rc == %d (should be 4)\n",rc);
}
//////////////////////////////////////////////
-----------------------------------------------------------------
http://Host.GBG.bg - Бизнес решения за хостинг и домейн имена
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list