diff options
Diffstat (limited to 'drivers/media/tuners/xc5000.c')
-rw-r--r-- | drivers/media/tuners/xc5000.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/drivers/media/tuners/xc5000.c b/drivers/media/tuners/xc5000.c index d6be1b613c52..5cd09a681b6a 100644 --- a/drivers/media/tuners/xc5000.c +++ b/drivers/media/tuners/xc5000.c | |||
@@ -422,13 +422,19 @@ static int xc_initialize(struct xc5000_priv *priv) | |||
422 | } | 422 | } |
423 | 423 | ||
424 | static int xc_SetTVStandard(struct xc5000_priv *priv, | 424 | static int xc_SetTVStandard(struct xc5000_priv *priv, |
425 | u16 VideoMode, u16 AudioMode) | 425 | u16 VideoMode, u16 AudioMode, u8 RadioMode) |
426 | { | 426 | { |
427 | int ret; | 427 | int ret; |
428 | dprintk(1, "%s(0x%04x,0x%04x)\n", __func__, VideoMode, AudioMode); | 428 | dprintk(1, "%s(0x%04x,0x%04x)\n", __func__, VideoMode, AudioMode); |
429 | dprintk(1, "%s() Standard = %s\n", | 429 | if (RadioMode) { |
430 | __func__, | 430 | dprintk(1, "%s() Standard = %s\n", |
431 | XC5000_Standard[priv->video_standard].Name); | 431 | __func__, |
432 | XC5000_Standard[RadioMode].Name); | ||
433 | } else { | ||
434 | dprintk(1, "%s() Standard = %s\n", | ||
435 | __func__, | ||
436 | XC5000_Standard[priv->video_standard].Name); | ||
437 | } | ||
432 | 438 | ||
433 | ret = xc_write_reg(priv, XREG_VIDEO_MODE, VideoMode); | 439 | ret = xc_write_reg(priv, XREG_VIDEO_MODE, VideoMode); |
434 | if (ret == XC_RESULT_SUCCESS) | 440 | if (ret == XC_RESULT_SUCCESS) |
@@ -824,7 +830,7 @@ static int xc5000_set_params(struct dvb_frontend *fe) | |||
824 | 830 | ||
825 | ret = xc_SetTVStandard(priv, | 831 | ret = xc_SetTVStandard(priv, |
826 | XC5000_Standard[priv->video_standard].VideoMode, | 832 | XC5000_Standard[priv->video_standard].VideoMode, |
827 | XC5000_Standard[priv->video_standard].AudioMode); | 833 | XC5000_Standard[priv->video_standard].AudioMode, 0); |
828 | if (ret != XC_RESULT_SUCCESS) { | 834 | if (ret != XC_RESULT_SUCCESS) { |
829 | printk(KERN_ERR "xc5000: xc_SetTVStandard failed\n"); | 835 | printk(KERN_ERR "xc5000: xc_SetTVStandard failed\n"); |
830 | return -EREMOTEIO; | 836 | return -EREMOTEIO; |
@@ -940,7 +946,7 @@ tune_channel: | |||
940 | 946 | ||
941 | ret = xc_SetTVStandard(priv, | 947 | ret = xc_SetTVStandard(priv, |
942 | XC5000_Standard[priv->video_standard].VideoMode, | 948 | XC5000_Standard[priv->video_standard].VideoMode, |
943 | XC5000_Standard[priv->video_standard].AudioMode); | 949 | XC5000_Standard[priv->video_standard].AudioMode, 0); |
944 | if (ret != XC_RESULT_SUCCESS) { | 950 | if (ret != XC_RESULT_SUCCESS) { |
945 | printk(KERN_ERR "xc5000: xc_SetTVStandard failed\n"); | 951 | printk(KERN_ERR "xc5000: xc_SetTVStandard failed\n"); |
946 | return -EREMOTEIO; | 952 | return -EREMOTEIO; |
@@ -1003,7 +1009,7 @@ static int xc5000_set_radio_freq(struct dvb_frontend *fe, | |||
1003 | priv->rf_mode = XC_RF_MODE_AIR; | 1009 | priv->rf_mode = XC_RF_MODE_AIR; |
1004 | 1010 | ||
1005 | ret = xc_SetTVStandard(priv, XC5000_Standard[radio_input].VideoMode, | 1011 | ret = xc_SetTVStandard(priv, XC5000_Standard[radio_input].VideoMode, |
1006 | XC5000_Standard[radio_input].AudioMode); | 1012 | XC5000_Standard[radio_input].AudioMode, radio_input); |
1007 | 1013 | ||
1008 | if (ret != XC_RESULT_SUCCESS) { | 1014 | if (ret != XC_RESULT_SUCCESS) { |
1009 | printk(KERN_ERR "xc5000: xc_SetTVStandard failed\n"); | 1015 | printk(KERN_ERR "xc5000: xc_SetTVStandard failed\n"); |