linux/drivers/media/usb/hdpvr
Hans Verkuil 3445857b22 [media] hdpvr: fix two audio bugs
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>
Cc: stable@vger.kernel.org      # for v3.10 and up
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-04 15:13:02 -03:00
..
hdpvr-control.c [media] hdpvr: improve error handling 2013-06-13 11:35:47 -03:00
hdpvr-core.c [media] hdpvr: Fix memory leak in debug 2014-02-04 06:43:53 -02:00
hdpvr-i2c.c [media] [V2,23/24] usb/hdpvr/hdpvr-i2c.c: use IS_ENABLED() macro 2013-02-06 09:20:41 -02:00
hdpvr-video.c [media] hdpvr: fix two audio bugs 2014-07-04 15:13:02 -03:00
hdpvr.h [media] hdpvr: improve error handling 2013-06-13 11:35:47 -03:00
Kconfig [media] media: fix hdpvr kconfig/build errors 2013-05-27 08:51:27 -03:00
Makefile