From: Janne Grunau Date: Tue, 27 Jul 2010 13:40:43 +0000 (-0300) Subject: [media] hdpvr: use AC3 as default audio codec for SPDIF X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d4533332c0c60335f117ffc65cc4a067314bb441;p=linux-beck.git [media] hdpvr: use AC3 as default audio codec for SPDIF Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab --- 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, if (default_video_input < HDPVR_VIDEO_INPUTS) dev->options.video_input = default_video_input; - if (default_audio_input < HDPVR_AUDIO_INPUTS) + if (default_audio_input < HDPVR_AUDIO_INPUTS) { dev->options.audio_input = default_audio_input; + if (default_audio_input == HDPVR_SPDIF) + dev->options.audio_codec = + V4L2_MPEG_AUDIO_ENCODING_AC3; + } dev->udev = usb_get_dev(interface_to_usbdev(interface));