[linux-dvb] [PATCH] cx88: detect stereo output instead of mono fallback

Balint Marton cus at fazekas.hu
Mon Mar 17 20:25:09 CET 2008


Hi, 

On my Leadtek WinFast 2000 Expert XP card the automatic detection of 
stereo channels does not work. If the sound system is not NICAM, it 
falls back to mono on both mono and stereo tv channels. 

I had no idea how to detect it, and falling back to EN_A2_AUTO_STEREO 
instead of EN_A2_FORCE_MONO1 did not help either. (The card changed the 
audio mode periodically on both mono and stereo channels) Forcing STEREO 
mode also did not help, because it resulted a loud static noise on mono tv 
channels.

Testing proved that AUD_NICAM_STATUS1 and AUD_NICAM_STATUS2 registers 
change randomly if and only if the second audio channel is missing, so if 
these registers are constant (Usually 0x0000 and 0x01), we can assume that 
the tv channel has two audio channels, so we can use STEREO mode. This 
method seems a bit ugly, but nicam detection works the same way. And 
now stereo channel detection also works for me :)

Since my cable TV provider only broadcasts in PAL BG mode with A2 sound 
system, i couldn't test other systems, but they should work just like 
before.

   Marton


Signed-off-by: Marton Balint <cus at fazekas.hu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cx88-stereo.patch
Type: text/x-patch
Size: 2168 bytes
Desc: 
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080317/6ca9fc1e/attachment-0001.bin 


More information about the linux-dvb mailing list