S2API Allow custom inittab for ST STV0288 demodulator.
PATCH 1/1 S2API Allow custom inittab for ST STV0288 demodulator.
Steve,
Allow custom inittab for ST STV0288 demodulator,
as it is needed for DvbWorld USB card.
Igor
# HG changeset patch
# User Igor M. Liplianin <[email protected]> # Date 1222957999 -10800
# Node ID 63aceadbc87a5ae27c68c5e5698b327757aaf5f5 # Parent c6088a57a2714ba67a6e7c88d449d05d60053e91 Makefile fix for ST STV0288 demodulator.
From: Igor M. Liplianin <[email protected]>
Makefile fix for ST STV0288 demodulator.
linux/drivers/media/dvb/frontends/Makefile +1 -1
@@ -53,5 +53,5 @@ obj-$(CONFIG_DVB_AF9013) += af9013.o obj-$(CONFIG_DVB_CX24116) += cx24116.o obj-$(CONFIG_DVB_SI21XX) += si21xx.o -obj-$(CONFIG_DVB_STV0299) += stv0288.o +obj-$(CONFIG_DVB_STV0288) += stv0288.o obj-$(CONFIG_DVB_STB6000) += stb6000.o
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
В сообщении от 5 October 2008 15:26:19 Igor M. Liplianin написал(а):
Quoted 6 lines
Steve,
Allow custom inittab for ST STV0288 demodulator,
as it is needed for DvbWorld USB card.Igor
Exuse me, wrong attachement.
Real patch to allow custom inittab for ST STV0288 demodulator.
Signature · 1 line
Igor M. Liplianin
# HG changeset patch
# User Igor M. Liplianin <[email protected]> # Date 1223207538 -10800
# Node ID 8dc74aaea8b20dea5b42c32873984c2c28a8ab6e # Parent ecd33495acbd3a621180309ebde0d8e3476d8985 Allow custom inittab for ST STV0288 demodulator.
From: Igor M. Liplianin <[email protected]>
Allow custom inittab for ST STV0288 demodulator,
as it is needed for DvbWorld USB card.
linux/drivers/media/dvb/frontends/stv0288.c +16 -4
@@ -328,16 +328,28 @@ {struct stv0288_state *state = fe->demodulator_priv;int i; +u8 reg; +u8 val;dprintk ("stv0288: init chip\n" );stv0288_writeregI (state,0x41 ,0x04 );msleep (50 ); -for (i =0 ; !(stv0288_inittab[i] ==0xff && +/* we have default inittab */ +if (state->config->inittab ==NULL ) { +for (i =0 ; !(stv0288_inittab[i] ==0xff && stv0288_inittab[i +1 ] ==0xff ); i +=2 ) -stv0288_writeregI (state, stv0288_inittab[i], - stv0288_inittab[i +1 ]); - +stv0288_writeregI (state, stv0288_inittab[i], + stv0288_inittab[i +1 ]); + }else { +for (i =0 ; ; i +=2 ) { + reg = state->config->inittab[i]; + val = state->config->inittab[i+1 ]; +if (reg ==0xff && val ==0xff ) +break ; +stv0288_writeregI (state, reg, val); + } + }return 0 ; }
linux/drivers/media/dvb/frontends/stv0288.h +2 -0
@@ -34,6 +34,8 @@/* the demodulator's i2c address */ u8 demod_address; +u8 * inittab; +/* minimum delay before retuning */ int min_delay_ms;
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
Steven Toth
AppliedQuoted 7 lines · Igor M. Liplianin
Steve,
Allow custom inittab for ST STV0288 demodulator,
as it is needed for DvbWorld USB card.Igor
Merged, thanks.
- Steve
_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb