Skip to content

Commit

Permalink
[media] hdpvr: use AC3 as default audio codec for SPDIF
Browse files Browse the repository at this point in the history
Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Janne Grunau authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 35b5366 commit d453333
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/media/video/hdpvr/hdpvr-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit d453333

Please sign in to comment.