diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2006-01-15 09:01:54 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2006-01-15 09:01:54 +0000 |
commit | 903275d34c620a6056a40bbf9bcb9d56b15b43aa (patch) | |
tree | 7b644ed61433e0d645eccf738b8e1f2379628c94 /linux/drivers/media/video/cx88/cx88-tvaudio.c | |
parent | 12bdab2810d0b5c60c50c165ad5f4e87afa2374e (diff) | |
download | mediapointer-dvb-s2-903275d34c620a6056a40bbf9bcb9d56b15b43aa.tar.gz mediapointer-dvb-s2-903275d34c620a6056a40bbf9bcb9d56b15b43aa.tar.bz2 |
Fix for lack of analog output on some cx88 boards
From: Panagiotis Christeas <p_christ@hol.gr>
- Workaround to fix a known regression at cx88-tvaudio.c
- provide a module parameter workaround to always enable
analog output.
Signed-off-by: Panagiotis Christeas <p_christ@hol.gr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-tvaudio.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-tvaudio.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-tvaudio.c b/linux/drivers/media/video/cx88/cx88-tvaudio.c index 1c169059b..b51d1ea10 100644 --- a/linux/drivers/media/video/cx88/cx88-tvaudio.c +++ b/linux/drivers/media/video/cx88/cx88-tvaudio.c @@ -1,5 +1,5 @@ /* - $Id: cx88-tvaudio.c,v 1.52 2006/01/05 03:31:42 rmcc Exp $ + $Id: cx88-tvaudio.c,v 1.53 2006/01/15 09:01:54 mchehab Exp $ cx88x-audio.c - Conexant CX23880/23881 audio downstream driver driver @@ -64,6 +64,11 @@ static unsigned int audio_debug = 0; module_param(audio_debug, int, 0644); MODULE_PARM_DESC(audio_debug, "enable debug messages [audio]"); +static unsigned int always_analog = 0; +module_param(always_analog,int,0644); +MODULE_PARM_DESC(always_analog,"force analog audio out"); + + #define dprintk(fmt, arg...) if (audio_debug) \ printk(KERN_DEBUG "%s/0: " fmt, core->name , ## arg) @@ -159,7 +164,8 @@ static void set_audio_finish(struct cx88_core *core, u32 ctl) cx_write(AUD_I2SOUTPUTCNTL, 1); cx_write(AUD_I2SCNTL, 0); /* cx_write(AUD_APB_IN_RATE_ADJ, 0); */ - } else { + } + if ((always_analog) || (!cx88_boards[core->board].blackbird)) { ctl |= EN_DAC_ENABLE; cx_write(AUD_CTL, ctl); } |