V4L/DVB (11624): cx18: Toggle the AI1 mux when changing the CX18_AUDIO_ENABLE register
authorAndy Walls <awalls@radix.net>
Sun, 26 Apr 2009 21:46:14 +0000 (18:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:45 +0000 (18:20 -0300)
commit33b55a0a7d5d0cd109d0506004a51e4000affbf2
tree8e755c66115e32defe73f780de480c4298c0a360
parent1bd8e15ac31f7f3d9f1ace70660330ba0055c69c
V4L/DVB (11624): cx18: Toggle the AI1 mux when changing the CX18_AUDIO_ENABLE register

Toggle the AI1 mux when changing the CX18_AUDIO_ENABLE register.  It's hard to
reliably tell when we have written to this register successfully unless we
change some bits we know we can read back.  The AI mux bits always read back
what we wrote to them, so force them to toggle whenever we have to write to
the register, so we can tell we wrote to the register successfully.

This change was prompted by users experiencing broadcast audio decoding
problems after the cx18 module loads for the first time.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx18/cx18-audio.c
drivers/media/video/cx18/cx18-av-firmware.c