From: Anton Blanchard <anton@samba.org>
To: Steven Toth <stoth@linuxtv.org>
Cc: linux-dvb@linuxtv.org, "stev391@email.com" <stev391@email.com>,
linuxdvb@itee.uq.edu.au
Subject: Re: [linux-dvb] [PATCH] Add initial support for DViCO FusionHDTV DVB-T Dual Express
Date: Fri, 1 Aug 2008 12:13:07 +1000 [thread overview]
Message-ID: <20080801021307.GF7094@kryten> (raw)
In-Reply-To: <48926F11.7090508@linuxtv.org>
Hi,
> Either I'm missing patch 1/4, or the patches don't build.
>
> I have 2,3,4 so I guess I'm missing something.
It looks like 1/4 got delayed for some reason, it only just hit the
mailing list. Here it is again:
Tuners currently hook different things to the private pointer in their
callback function. Longer term we should make that private pointer
consistent, but for now separate out the guts of the cx23885 tuner callback
so we can reuse it.
Signed-off-by: Anton Blanchard <anton@samba.org>
---
Index: v4l-dvb/linux/drivers/media/video/cx23885/cx23885-cards.c
===================================================================
--- v4l-dvb.orig/linux/drivers/media/video/cx23885/cx23885-cards.c 2008-08-01 09:14:25.000000000 +1000
+++ v4l-dvb/linux/drivers/media/video/cx23885/cx23885-cards.c 2008-08-01 10:31:39.000000000 +1000
@@ -320,13 +320,9 @@
dev->name, tv.model);
}
-/* Tuner callback function for cx23885 boards. Currently only needed
- * for HVR1500Q, which has an xc5000 tuner.
- */
-int cx23885_tuner_callback(void *priv, int command, int arg)
+static int cx23885_tuner_callback(struct cx23885_dev *dev, int port,
+ int command, int arg)
{
- struct cx23885_i2c *bus = priv;
- struct cx23885_dev *dev = bus->dev;
u32 bitmask = 0;
if (command != 0) {
@@ -346,9 +342,9 @@
/* Two identical tuners on two different i2c buses,
* we need to reset the correct gpio. */
- if (bus->nr == 0)
+ if (port == 0)
bitmask = 0x01;
- else if (bus->nr == 1)
+ else if (port == 1)
bitmask = 0x04;
}
break;
@@ -364,6 +360,14 @@
return 0;
}
+int cx23885_xc5000_tuner_callback(void *priv, int command, int arg)
+{
+ struct cx23885_i2c *bus = priv;
+ struct cx23885_dev *dev = bus->dev;
+
+ return cx23885_tuner_callback(dev, bus->nr, command, arg);
+}
+
void cx23885_gpio_setup(struct cx23885_dev *dev)
{
switch(dev->board) {
Index: v4l-dvb/linux/drivers/media/video/cx23885/cx23885-dvb.c
===================================================================
--- v4l-dvb.orig/linux/drivers/media/video/cx23885/cx23885-dvb.c 2008-08-01 09:14:25.000000000 +1000
+++ v4l-dvb/linux/drivers/media/video/cx23885/cx23885-dvb.c 2008-08-01 10:31:39.000000000 +1000
@@ -189,13 +189,13 @@
static struct xc5000_config hauppauge_hvr1500q_tunerconfig = {
.i2c_address = 0x61,
.if_khz = 5380,
- .tuner_callback = cx23885_tuner_callback
+ .tuner_callback = cx23885_xc5000_tuner_callback,
};
static struct xc5000_config dvico_xc5000_tunerconfig = {
.i2c_address = 0x64,
.if_khz = 5380,
- .tuner_callback = cx23885_tuner_callback
+ .tuner_callback = cx23885_xc5000_tuner_callback,
};
static struct tda829x_config tda829x_no_probe = {
Index: v4l-dvb/linux/drivers/media/video/cx23885/cx23885.h
===================================================================
--- v4l-dvb.orig/linux/drivers/media/video/cx23885/cx23885.h 2008-08-01 09:14:25.000000000 +1000
+++ v4l-dvb/linux/drivers/media/video/cx23885/cx23885.h 2008-08-01 10:31:39.000000000 +1000
@@ -410,7 +410,7 @@
extern struct cx23885_subid cx23885_subids[];
extern const unsigned int cx23885_idcount;
-extern int cx23885_tuner_callback(void *priv, int command, int arg);
+extern int cx23885_xc5000_tuner_callback(void *priv, int command, int arg);
extern void cx23885_card_list(struct cx23885_dev *dev);
extern int cx23885_ir_init(struct cx23885_dev *dev);
extern void cx23885_gpio_setup(struct cx23885_dev *dev);
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
next prev parent reply other threads:[~2008-08-01 2:13 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-30 23:56 [linux-dvb] [PATCH] Add initial support for DViCO FusionHDTV DVB-T Dual Express stev391
[not found] ` <20080731042433.GA21788@kryten>
2008-07-31 15:08 ` Steven Toth
2008-08-01 1:21 ` Anton Blanchard
2008-08-01 1:43 ` Steven Toth
2008-08-01 2:04 ` Steven Toth
2008-08-01 2:13 ` Anton Blanchard [this message]
2008-08-01 2:52 ` Steven Toth
2008-08-01 2:55 ` Anton Blanchard
-- strict thread matches above, loose matches on Subject: below --
2008-08-01 3:40 stev391
2008-08-01 12:34 ` bumkunjo
2008-08-05 1:25 ` Steven Toth
[not found] ` <1217969890.6864.11.camel@bonnie>
2008-08-05 21:16 ` Steven Toth
2008-08-05 21:43 ` Anton Blanchard
2008-08-05 23:41 ` Luke Yelavich
2008-08-06 1:44 ` Steven Toth
2008-08-06 8:09 ` David Porter
2008-08-06 8:51 ` Tim Farrington
2008-08-07 3:31 ` David
2008-08-07 4:34 ` Tim Farrington
2008-08-07 6:41 ` David
2008-08-07 7:00 ` Tim Farrington
2008-08-07 7:10 ` David
2008-08-07 7:18 ` SUBHRANIL CHOUDHURY
2008-08-07 7:52 ` Tim Farrington
2008-08-07 8:47 ` David
2008-08-10 23:31 ` Luke Yelavich
2008-08-07 1:06 ` jochen s
2008-08-05 11:52 stev391
2008-08-07 10:58 stev391
2008-08-07 15:00 ` Steven Toth
2008-08-16 4:28 ` David
2008-08-08 0:04 stev391
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080801021307.GF7094@kryten \
--to=anton@samba.org \
--cc=linux-dvb@linuxtv.org \
--cc=linuxdvb@itee.uq.edu.au \
--cc=stev391@email.com \
--cc=stoth@linuxtv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox