aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-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