V4L/DVB (5997): cx25840: fix audio mute handling and reporting
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 5 Aug 2007 11:00:36 +0000 (08:00 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:04:55 +0000 (22:04 -0300)
commit87410dab1238623e082e9a78a62f1bbeb6c475e3
tree521977ac3c7c91b9d97616452047bcddfd066279
parent372978055dd564d97ca1b4099c99296eaff1fe19
V4L/DVB (5997): cx25840: fix audio mute handling and reporting

Audio muting for the tuner input was implemented by stopping the
audio microcontroller and restarting it on unmute. However, it
appears that this method can actually crash the audio firmware.
It's rare and seems to happen with NTSC only.

It has been reimplemented by setting to volume to 0. In addition, the
reporting of the mute state has been improved as well: it used to be
impossible to detect whether the audio was muted by the user or if it
was muted due to the microcontroller trying to detect the audio
standard. This is now clearly stated.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx25840/cx25840-audio.c
drivers/media/video/cx25840/cx25840-core.c
drivers/media/video/cx25840/cx25840-core.h