diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-09-29 10:07:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:27 -0500 |
commit | 55fa288deca4b17e539ba49a9b0d0ed474afa6f8 (patch) | |
tree | c519af500cccf92903d95f8425b3bb450b3dcdbe /drivers/media/video/cx231xx/cx231xx-cards.c | |
parent | ede676c72d0b18f1c15300f7874370e771489a1c (diff) |
[media] cx231xx: use callback to set agc on PixelView
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx231xx/cx231xx-cards.c')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-cards.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-cards.c b/drivers/media/video/cx231xx/cx231xx-cards.c index 4d0ab458fa64..400447fbf7fb 100644 --- a/drivers/media/video/cx231xx/cx231xx-cards.c +++ b/drivers/media/video/cx231xx/cx231xx-cards.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <media/cx25840.h> | 34 | #include <media/cx25840.h> |
35 | #include "dvb-usb-ids.h" | 35 | #include "dvb-usb-ids.h" |
36 | #include "xc5000.h" | 36 | #include "xc5000.h" |
37 | #include "tda18271.h" | ||
37 | 38 | ||
38 | #include "cx231xx.h" | 39 | #include "cx231xx.h" |
39 | 40 | ||
@@ -490,6 +491,16 @@ int cx231xx_tuner_callback(void *ptr, int component, int command, int arg) | |||
490 | 1); | 491 | 1); |
491 | msleep(10); | 492 | msleep(10); |
492 | } | 493 | } |
494 | } else if (dev->tuner_type == TUNER_NXP_TDA18271) { | ||
495 | switch (command) { | ||
496 | case TDA18271_CALLBACK_CMD_AGC_ENABLE: | ||
497 | if (dev->model == CX231XX_BOARD_PV_PLAYTV_USB_HYBRID) | ||
498 | rc = cx231xx_set_agc_analog_digital_mux_select(dev, arg); | ||
499 | break; | ||
500 | default: | ||
501 | rc = -EINVAL; | ||
502 | break; | ||
503 | } | ||
493 | } | 504 | } |
494 | return rc; | 505 | return rc; |
495 | } | 506 | } |