aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2009-03-06 22:48:09 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:35 -0400
commit01c59df818001b0bd3a31e2301a92a8c73bccbce (patch)
treee14e94b71dcbcfdca784cdf5a37a41224a3b2b79 /drivers/media/video/pvrusb2/pvrusb2-video-v4l.c
parent6f9565120f5c2944b3d31daf03a07c272e12867b (diff)
V4L/DVB (11178): pvrusb2: Make audio sample rate update into a sub-device broadcast
The pvrusb2 driver had previously been using i2c module specific calls to set the sample rate (a long long time ago this was needed). These days it is safe to use a broadcast so let's just broadcast this when communicating audio sample rate to sub-devices. Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-video-v4l.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-video-v4l.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c b/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c
index ad28c5d3ad8..1c9ed5e85c8 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-video-v4l.c
@@ -249,24 +249,6 @@ int pvr2_i2c_decoder_v4l_setup(struct pvr2_hdw *hdw,
249 249
250void pvr2_saa7115_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd) 250void pvr2_saa7115_subdev_update(struct pvr2_hdw *hdw, struct v4l2_subdev *sd)
251{ 251{
252 if (hdw->srate_dirty) {
253 u32 val;
254 pvr2_trace(PVR2_TRACE_CHIPS, "subdev v4l2 set_audio %d",
255 hdw->srate_val);
256 switch (hdw->srate_val) {
257 default:
258 case V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000:
259 val = 48000;
260 break;
261 case V4L2_MPEG_AUDIO_SAMPLING_FREQ_44100:
262 val = 44100;
263 break;
264 case V4L2_MPEG_AUDIO_SAMPLING_FREQ_32000:
265 val = 32000;
266 break;
267 }
268 sd->ops->audio->s_clock_freq(sd, val);
269 }
270 if (hdw->input_dirty) { 252 if (hdw->input_dirty) {
271 struct v4l2_routing route; 253 struct v4l2_routing route;
272 const struct routing_scheme *sp; 254 const struct routing_scheme *sp;