diff options
author | Steven Toth <stoth@hauppauge.com> | 2008-08-04 20:38:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:49 -0400 |
commit | 90a71b1c1ab003dd4524afca44c2ad2519f4420c (patch) | |
tree | bc5852eaaaac7f9c81778ab95ee90333d552b69a /drivers/media/video/cx23885/cx23885-cards.c | |
parent | 0fbbff33fcab605b1a5c53a20c302aad24b082ef (diff) |
V4L/DVB (8643): Switch Hauppauge HVR1400 and HVR1500 to common cx23885 tuner callback
The Hauppauge HVR1400 and HVR1500 can now use the common cx23885 tuner
callback.
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-cards.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-cards.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/media/video/cx23885/cx23885-cards.c b/drivers/media/video/cx23885/cx23885-cards.c index e5e688e5e4b0..93ad7f8ce203 100644 --- a/drivers/media/video/cx23885/cx23885-cards.c +++ b/drivers/media/video/cx23885/cx23885-cards.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <media/cx25840.h> | 26 | #include <media/cx25840.h> |
27 | 27 | ||
28 | #include "cx23885.h" | 28 | #include "cx23885.h" |
29 | #include "tuner-xc2028.h" | ||
29 | 30 | ||
30 | /* ------------------------------------------------------------------ */ | 31 | /* ------------------------------------------------------------------ */ |
31 | /* board config info */ | 32 | /* board config info */ |
@@ -331,8 +332,10 @@ static int cx23885_tuner_callback(struct cx23885_dev *dev, int port, | |||
331 | } | 332 | } |
332 | 333 | ||
333 | switch(dev->board) { | 334 | switch(dev->board) { |
335 | case CX23885_BOARD_HAUPPAUGE_HVR1400: | ||
336 | case CX23885_BOARD_HAUPPAUGE_HVR1500: | ||
334 | case CX23885_BOARD_HAUPPAUGE_HVR1500Q: | 337 | case CX23885_BOARD_HAUPPAUGE_HVR1500Q: |
335 | /* Tuner Reset Command from xc5000 */ | 338 | /* Tuner Reset Command */ |
336 | if (command == 0) | 339 | if (command == 0) |
337 | bitmask = 0x04; | 340 | bitmask = 0x04; |
338 | break; | 341 | break; |
@@ -367,6 +370,17 @@ int cx23885_xc5000_tuner_callback(void *priv, int command, int arg) | |||
367 | return cx23885_tuner_callback(dev, bus->nr, command, arg); | 370 | return cx23885_tuner_callback(dev, bus->nr, command, arg); |
368 | } | 371 | } |
369 | 372 | ||
373 | int cx23885_xc3028_tuner_callback(void *priv, int command, int arg) | ||
374 | { | ||
375 | struct cx23885_tsport *port = priv; | ||
376 | struct cx23885_dev *dev = port->dev; | ||
377 | |||
378 | if (command == XC2028_RESET_CLK) | ||
379 | return 0; | ||
380 | |||
381 | return cx23885_tuner_callback(dev, port->nr, command, arg); | ||
382 | } | ||
383 | |||
370 | void cx23885_gpio_setup(struct cx23885_dev *dev) | 384 | void cx23885_gpio_setup(struct cx23885_dev *dev) |
371 | { | 385 | { |
372 | switch(dev->board) { | 386 | switch(dev->board) { |