Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366662
b: refs/heads/master
c: 01ae728
h: refs/heads/master
v: v3
  • Loading branch information
Dmitri Belimov authored and Mauro Carvalho Chehab committed Mar 21, 2013
1 parent 1c2f88f commit 65c78f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3d9a15d9af9bba65ac7cd7c196268046470643d
refs/heads/master: 01ae72866d31de9291039b6030d021c004f5bfed
20 changes: 13 additions & 7 deletions trunk/drivers/media/tuners/xc5000.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,19 @@ static int xc_initialize(struct xc5000_priv *priv)
}

static int xc_SetTVStandard(struct xc5000_priv *priv,
u16 VideoMode, u16 AudioMode)
u16 VideoMode, u16 AudioMode, u8 RadioMode)
{
int ret;
dprintk(1, "%s(0x%04x,0x%04x)\n", __func__, VideoMode, AudioMode);
dprintk(1, "%s() Standard = %s\n",
__func__,
XC5000_Standard[priv->video_standard].Name);
if (RadioMode) {
dprintk(1, "%s() Standard = %s\n",
__func__,
XC5000_Standard[RadioMode].Name);
} else {
dprintk(1, "%s() Standard = %s\n",
__func__,
XC5000_Standard[priv->video_standard].Name);
}

ret = xc_write_reg(priv, XREG_VIDEO_MODE, VideoMode);
if (ret == XC_RESULT_SUCCESS)
Expand Down Expand Up @@ -824,7 +830,7 @@ static int xc5000_set_params(struct dvb_frontend *fe)

ret = xc_SetTVStandard(priv,
XC5000_Standard[priv->video_standard].VideoMode,
XC5000_Standard[priv->video_standard].AudioMode);
XC5000_Standard[priv->video_standard].AudioMode, 0);
if (ret != XC_RESULT_SUCCESS) {
printk(KERN_ERR "xc5000: xc_SetTVStandard failed\n");
return -EREMOTEIO;
Expand Down Expand Up @@ -940,7 +946,7 @@ static int xc5000_set_tv_freq(struct dvb_frontend *fe,

ret = xc_SetTVStandard(priv,
XC5000_Standard[priv->video_standard].VideoMode,
XC5000_Standard[priv->video_standard].AudioMode);
XC5000_Standard[priv->video_standard].AudioMode, 0);
if (ret != XC_RESULT_SUCCESS) {
printk(KERN_ERR "xc5000: xc_SetTVStandard failed\n");
return -EREMOTEIO;
Expand Down Expand Up @@ -1003,7 +1009,7 @@ static int xc5000_set_radio_freq(struct dvb_frontend *fe,
priv->rf_mode = XC_RF_MODE_AIR;

ret = xc_SetTVStandard(priv, XC5000_Standard[radio_input].VideoMode,
XC5000_Standard[radio_input].AudioMode);
XC5000_Standard[radio_input].AudioMode, radio_input);

if (ret != XC_RESULT_SUCCESS) {
printk(KERN_ERR "xc5000: xc_SetTVStandard failed\n");
Expand Down

0 comments on commit 65c78f6

Please sign in to comment.