diff options
author | Mike Isely <isely@pobox.com> | 2006-06-25 19:05:01 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-26 23:17:32 -0400 |
commit | b30d244176846de3480ae17097a5f7831ec6aaf6 (patch) | |
tree | fba5650757a84032802b87635b7fe41d77c8e3cd /drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c | |
parent | 1d9f8461f1a870571f9403a312c26deec3305be5 (diff) |
V4L/DVB (4244): Implement use of cx2341x module in pvrusb2 driver
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c b/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c index 47e7f5dbd516..27eadaff75a0 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c +++ b/drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c | |||
@@ -104,12 +104,15 @@ static void set_audio(struct pvr2_v4l_cx2584x *ctxt) | |||
104 | hdw->srate_val); | 104 | hdw->srate_val); |
105 | switch (hdw->srate_val) { | 105 | switch (hdw->srate_val) { |
106 | default: | 106 | default: |
107 | case PVR2_CVAL_SRATE_48: | 107 | case V4L2_MPEG_AUDIO_SAMPLING_FREQ_48000: |
108 | val = 48000; | 108 | val = 48000; |
109 | break; | 109 | break; |
110 | case PVR2_CVAL_SRATE_44_1: | 110 | case V4L2_MPEG_AUDIO_SAMPLING_FREQ_44100: |
111 | val = 44100; | 111 | val = 44100; |
112 | break; | 112 | break; |
113 | case V4L2_MPEG_AUDIO_SAMPLING_FREQ_32000: | ||
114 | val = 32000; | ||
115 | break; | ||
113 | } | 116 | } |
114 | pvr2_i2c_client_cmd(ctxt->client,VIDIOC_INT_AUDIO_CLOCK_FREQ,&val); | 117 | pvr2_i2c_client_cmd(ctxt->client,VIDIOC_INT_AUDIO_CLOCK_FREQ,&val); |
115 | } | 118 | } |