linux/drivers/media/usb
Hans Verkuil 282cb9a232 media: hdpvr: fix two audio bugs
commit 3445857b22 upstream.

When the audio encoding is changed the driver calls hdpvr_set_audio
with the current opt->audio_input value. However, that should have
been opt->audio_input + 1. So changing the audio encoding inadvertently
changes the input as well. This bug has always been there.

The second bug was introduced in kernel 3.10 and that broke the
default_audio_input module option handling: the audio encoding was
never switched to AC3 if default_audio_input was set to 2 (SPDIF input).

In addition, since starting with 3.10 the audio encoding is always set
at the start the first bug now always happens when the driver is loaded.
In the past this bug would only surface if the user would change the
audio encoding after the driver was loaded.

Also fixes a small trivial typo (bufffer -> buffer).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Scott Doty <scott@corp.sonic.net>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2014-07-31 12:52:53 -07:00
..
au0828 [media] au0828: Fix sparse non static symbol warning 2014-01-15 09:11:47 -02:00
b2c2 [media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_*_consistent() in flexcop-usb.c 2013-10-17 11:26:41 -03:00
cpia2 [media] media: Change variable type to bool 2013-10-17 11:24:35 -03:00
cx231xx [media] cx231xx: add support for a CX23103 Video Grabber USB 2014-01-07 09:46:36 -02:00
dvb-usb Merge branch 'upstream-fixes' into patchwork 2013-12-13 05:04:00 -02:00
dvb-usb-v2 rtl28xxu: add [1b80:d3af] Sveon STV27 2014-06-16 13:40:33 -07:00
em28xx media: em28xx: fix PCTV 290e LNA oops 2014-05-06 07:59:32 -07:00
gspca media: gspca_pac7302: Add new usb-id for Genius i-Look 317 2014-07-28 08:05:56 -07:00
hdpvr media: hdpvr: fix two audio bugs 2014-07-31 12:52:53 -07:00
pvrusb2 [media] pvrusb2: fix sparse warning 2013-10-15 12:54:38 -03:00
pwc [media] media: Remove OOM message after input_allocate_device 2014-01-07 08:01:42 -02:00
s2255 [media] S2255: Removal of unnecessary videobuf_queue_is_busy 2013-08-01 14:55:17 -03:00
siano [media] siano: Use the default firmware for Stellar 2013-10-14 06:41:10 -03:00
stk1160 media: stk1160: Avoid stack-allocated buffer for control URBs 2014-06-30 20:11:58 -07:00
stkwebcam [media] Add HCL T12Rg-H to STK webcam upside-down table 2013-09-26 07:15:49 -03:00
tlg2300 [media] tlg2300: fix sparse warning 2013-10-15 13:00:38 -03:00
tm6000 [media] tm6000: remove deprecated current_norm 2013-06-17 09:35:27 -03:00
ttusb-budget [media] ttusb-budget: fix memory leak in ttusb_probe() 2013-06-21 15:06:51 -03:00
ttusb-dec [media] dvb-usb: fix error handling in ttusb_dec_probe() 2013-10-03 07:33:59 -03:00
usbtv [media] usbtv: Add support for PAL video source 2013-12-09 14:50:50 -02:00
usbvision [media] usbvision-video: fix memory leak of alt_max_pkt_size 2013-06-21 11:29:24 -03:00
uvc media: uvcvideo: Fix clock param realtime setting 2014-06-30 20:11:59 -07:00
zr364xx [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
Kconfig [media] sn9c102: prepare for removal by moving it to staging 2013-12-20 13:41:36 -02:00
Makefile [media] sn9c102: prepare for removal by moving it to staging 2013-12-20 13:41:36 -02:00