aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-cards.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-cards.c')
-rw-r--r--drivers/media/video/cx23885/cx23885-cards.c16
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
373int 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
370void cx23885_gpio_setup(struct cx23885_dev *dev) 384void cx23885_gpio_setup(struct cx23885_dev *dev)
371{ 385{
372 switch(dev->board) { 386 switch(dev->board) {