* [linux-dvb] [PATCH] S2API Allow custom inittab for ST STV0288 demodulator.
@ 2008-10-05 12:26 Igor M. Liplianin
2008-10-05 12:31 ` Igor M. Liplianin
2008-10-06 23:50 ` Steven Toth
0 siblings, 2 replies; 3+ messages in thread
From: Igor M. Liplianin @ 2008-10-05 12:26 UTC (permalink / raw)
To: linux-dvb, Steven Toth, Steven Toth
[-- Attachment #1: Type: text/plain, Size: 102 bytes --]
Steve,
Allow custom inittab for ST STV0288 demodulator,
as it is needed for DvbWorld USB card.
Igor
[-- Attachment #2: 9036.patch --]
[-- Type: text/x-diff, Size: 864 bytes --]
# HG changeset patch
# User Igor M. Liplianin <liplianin@me.by>
# Date 1222957999 -10800
# Node ID 63aceadbc87a5ae27c68c5e5698b327757aaf5f5
# Parent c6088a57a2714ba67a6e7c88d449d05d60053e91
Makefile fix for ST STV0288 demodulator.
From: Igor M. Liplianin <liplianin@me.by>
Makefile fix for ST STV0288 demodulator.
Signed-off-by: Igor M. Liplianin <liplianin@me.by>
diff -r c6088a57a271 -r 63aceadbc87a linux/drivers/media/dvb/frontends/Makefile
--- a/linux/drivers/media/dvb/frontends/Makefile Thu Sep 25 23:29:49 2008 -0400
+++ b/linux/drivers/media/dvb/frontends/Makefile Thu Oct 02 17:33:19 2008 +0300
@@ -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
[-- Attachment #3: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-dvb] [PATCH] S2API Allow custom inittab for ST STV0288 demodulator.
2008-10-05 12:26 [linux-dvb] [PATCH] S2API Allow custom inittab for ST STV0288 demodulator Igor M. Liplianin
@ 2008-10-05 12:31 ` Igor M. Liplianin
2008-10-06 23:50 ` Steven Toth
1 sibling, 0 replies; 3+ messages in thread
From: Igor M. Liplianin @ 2008-10-05 12:31 UTC (permalink / raw)
To: linux-dvb; +Cc: Steven Toth
[-- Attachment #1: Type: text/plain, Size: 311 bytes --]
В сообщении от 5 October 2008 15:26:19 Igor M. Liplianin написал(а):
> 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.
--
Igor M. Liplianin
[-- Attachment #2: 9075.patch --]
[-- Type: text/x-diff, Size: 1869 bytes --]
# HG changeset patch
# User Igor M. Liplianin <liplianin@me.by>
# Date 1223207538 -10800
# Node ID 8dc74aaea8b20dea5b42c32873984c2c28a8ab6e
# Parent ecd33495acbd3a621180309ebde0d8e3476d8985
Allow custom inittab for ST STV0288 demodulator.
From: Igor M. Liplianin <liplianin@me.by>
Allow custom inittab for ST STV0288 demodulator,
as it is needed for DvbWorld USB card.
Signed-off-by: Igor M. Liplianin <liplianin@me.by>
diff -r ecd33495acbd -r 8dc74aaea8b2 linux/drivers/media/dvb/frontends/stv0288.c
--- a/linux/drivers/media/dvb/frontends/stv0288.c Thu Oct 02 17:33:19 2008 +0300
+++ b/linux/drivers/media/dvb/frontends/stv0288.c Sun Oct 05 14:52:18 2008 +0300
@@ -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;
}
diff -r ecd33495acbd -r 8dc74aaea8b2 linux/drivers/media/dvb/frontends/stv0288.h
--- a/linux/drivers/media/dvb/frontends/stv0288.h Thu Oct 02 17:33:19 2008 +0300
+++ b/linux/drivers/media/dvb/frontends/stv0288.h Sun Oct 05 14:52:18 2008 +0300
@@ -34,6 +34,8 @@
/* the demodulator's i2c address */
u8 demod_address;
+ u8* inittab;
+
/* minimum delay before retuning */
int min_delay_ms;
[-- Attachment #3: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [linux-dvb] [PATCH] S2API Allow custom inittab for ST STV0288 demodulator.
2008-10-05 12:26 [linux-dvb] [PATCH] S2API Allow custom inittab for ST STV0288 demodulator Igor M. Liplianin
2008-10-05 12:31 ` Igor M. Liplianin
@ 2008-10-06 23:50 ` Steven Toth
1 sibling, 0 replies; 3+ messages in thread
From: Steven Toth @ 2008-10-06 23:50 UTC (permalink / raw)
To: Igor M. Liplianin; +Cc: Steven Toth, linux-dvb
Igor M. Liplianin wrote:
> Steve,
>
> Allow custom inittab for ST STV0288 demodulator,
> as it is needed for DvbWorld USB card.
>
> Igor
>
Merged, thanks.
- Steve
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-06 23:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-05 12:26 [linux-dvb] [PATCH] S2API Allow custom inittab for ST STV0288 demodulator Igor M. Liplianin
2008-10-05 12:31 ` Igor M. Liplianin
2008-10-06 23:50 ` Steven Toth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox