linux/drivers/media/video/cx88
Marton Balint 083d6f8c81 V4L/DVB (11395): cx88: audio thread: if stereo detection is hw supported don't do it manually
The sole purpose of the audio thread is to detect if stereo transmission is
available, and if it is, then switch to stereo mode (and switch back, if it's
no longer available). This manual autodetection is useful for some audio
standards (e.g. A2) where cx88_get_stereo CAN detect stereo sound, but the
cx2388x chip CANNOT auto-detect stereo sound.

However, for other audio standards, the cx2388x chip CAN auto-detect the stereo
sound, so the manual autodetection in the audio thread is not needed. In fact,
it can cause serious problems because for some of these audio standards,
cx88_get_stereo CANNOT detect the presence of stereo sound.  Besides that, if
the hardware automatically detects stereo/mono sound, you cannot set
core->audiomode_current to the real current audio mode on channel change.

With this patch, the manual autodetection is only used if audiomode_current is
known after a channel change (because of the initial mono mode), and
hardware-based stereo autodetecion is not applicable for the current audio
standard.

Signed-off-by: Marton Balint <cus@fazekas.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-16 19:14:18 -03:00
..
cx88-alsa.c V4L/DVB (11992): Add missing __devexit_p() 2009-06-16 19:07:51 -03:00
cx88-blackbird.c V4L/DVB (11300): cx88: convert to v4l2_subdev. 2009-03-30 12:43:48 -03:00
cx88-cards.c V4L/DVB (11879): Adds support for Leadtek WinFast DTV-1800H 2009-06-16 18:21:15 -03:00
cx88-core.c V4L/DVB (11394): cx88: Add support for stereo and sap detection for A2 2009-06-16 19:14:17 -03:00
cx88-dsp.c V4L/DVB (11394): cx88: Add support for stereo and sap detection for A2 2009-06-16 19:14:17 -03:00
cx88-dvb.c V4L/DVB (11879): Adds support for Leadtek WinFast DTV-1800H 2009-06-16 18:21:15 -03:00
cx88-i2c.c V4L/DVB (11844): ir-kbd-i2c: Switch to the new-style device binding model 2009-06-16 18:21:11 -03:00
cx88-input.c V4L/DVB (11879): Adds support for Leadtek WinFast DTV-1800H 2009-06-16 18:21:15 -03:00
cx88-mpeg.c dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 2009-04-07 08:31:11 -07:00
cx88-reg.h
cx88-tvaudio.c V4L/DVB (11395): cx88: audio thread: if stereo detection is hw supported don't do it manually 2009-06-16 19:14:18 -03:00
cx88-vbi.c
cx88-video.c V4L/DVB (11784): cx88: Fix race condition between cx8800 startup and hald 2009-06-16 19:14:13 -03:00
cx88-vp3054-i2c.c
cx88-vp3054-i2c.h
cx88.h V4L/DVB (11394): cx88: Add support for stereo and sap detection for A2 2009-06-16 19:14:17 -03:00
Kconfig V4L/DVB (11127): Kconfig: replace all occurrences of CUSTOMIZE to CUSTOMISE 2009-03-30 12:43:31 -03:00
Makefile V4L/DVB (11394): cx88: Add support for stereo and sap detection for A2 2009-06-16 19:14:17 -03:00