aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/hdpvr
diff options
context:
space:
mode:
authorJanne Grunau <j@jannau.net>2010-07-27 09:40:43 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 05:56:04 -0400
commitd4533332c0c60335f117ffc65cc4a067314bb441 (patch)
treecf451b3e41acbd65fc435d56b75da1ef73132f79 /drivers/media/video/hdpvr
parent35b53664d5d0331c8ec2ef44e74eaf4d18f00c06 (diff)
[media] hdpvr: use AC3 as default audio codec for SPDIF
Signed-off-by: Janne Grunau <j@jannau.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/hdpvr')
-rw-r--r--drivers/media/video/hdpvr/hdpvr-core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/hdpvr/hdpvr-core.c b/drivers/media/video/hdpvr/hdpvr-core.c
index d75fe5582f26..0ad33c08bfdd 100644
--- a/drivers/media/video/hdpvr/hdpvr-core.c
+++ b/drivers/media/video/hdpvr/hdpvr-core.c
@@ -326,8 +326,12 @@ static int hdpvr_probe(struct usb_interface *interface,
326 if (default_video_input < HDPVR_VIDEO_INPUTS) 326 if (default_video_input < HDPVR_VIDEO_INPUTS)
327 dev->options.video_input = default_video_input; 327 dev->options.video_input = default_video_input;
328 328
329 if (default_audio_input < HDPVR_AUDIO_INPUTS) 329 if (default_audio_input < HDPVR_AUDIO_INPUTS) {
330 dev->options.audio_input = default_audio_input; 330 dev->options.audio_input = default_audio_input;
331 if (default_audio_input == HDPVR_SPDIF)
332 dev->options.audio_codec =
333 V4L2_MPEG_AUDIO_ENCODING_AC3;
334 }
331 335
332 dev->udev = usb_get_dev(interface_to_usbdev(interface)); 336 dev->udev = usb_get_dev(interface_to_usbdev(interface));
333 337