diff options
author | Mike Isely <isely@pobox.com> | 2007-01-19 22:56:04 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2007-01-19 22:56:04 -0600 |
commit | 19c10d50ad524bab82155c690457b1af90631226 (patch) | |
tree | 6d33a26a3b623f8b63b6de9f038eb30d28f7bc2a /linux/drivers/media/video/pvrusb2/pvrusb2-audio.c | |
parent | 6af46f716fc68b280bd9eadb67ab578f4f820b45 (diff) | |
download | mediapointer-dvb-s2-19c10d50ad524bab82155c690457b1af90631226.tar.gz mediapointer-dvb-s2-19c10d50ad524bab82155c690457b1af90631226.tar.bz2 |
pvrusb2: Emit VIDIOC_S_TUNER correctly
From: Mike Isely <isely@pobox.com>
Audio mode changes are not private to the audio chip - other I2C
modules need to see this as well. And since the command in question
is VIDIOC_S_TUNER which is a standard v4l2 command, we really should
be broadcasting it out. This change sets up a broadcast pathway for
VIDIOC_S_TUNER and also eliminates the now redundant code from the
audio chip handler.
This fix enables stereo reception for the FM radio
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-audio.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-audio.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-audio.c b/linux/drivers/media/video/pvrusb2/pvrusb2-audio.c index 306e1aad4..7f38dae17 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-audio.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-audio.c @@ -44,13 +44,6 @@ static void set_stereo(struct pvr2_msp3400_handler *ctxt) pvr2_trace(PVR2_TRACE_CHIPS,"i2c msp3400 v4l2 set_stereo"); - if (hdw->input_val == PVR2_CVAL_INPUT_TV) { - struct v4l2_tuner vt; - memset(&vt,0,sizeof(vt)); - vt.audmode = hdw->audiomode_val; - pvr2_i2c_client_cmd(ctxt->client,VIDIOC_S_TUNER,&vt); - } - route.input = MSP_INPUT_DEFAULT; route.output = MSP_OUTPUT(MSP_SC_IN_DSP_SCART1); switch (hdw->input_val) { @@ -78,8 +71,7 @@ static void set_stereo(struct pvr2_msp3400_handler *ctxt) static int check_stereo(struct pvr2_msp3400_handler *ctxt) { struct pvr2_hdw *hdw = ctxt->hdw; - return (hdw->input_dirty || - hdw->audiomode_dirty); + return hdw->input_dirty; } |