diff options
author | Andy Walls <awalls@radix.net> | 2009-01-30 20:39:26 -0500 |
---|---|---|
committer | Andy Walls <awalls@radix.net> | 2009-01-30 20:39:26 -0500 |
commit | bb9067ce37544bf82eebcee5ce959dcef1720113 (patch) | |
tree | 19a0373dda9269c1de940c43e8af8a769e408c69 /linux/drivers/media/video/cx18/cx18-audio.c | |
parent | 1a68aa3086f7f370d97adff8c3de35669c02f6f5 (diff) | |
download | mediapointer-dvb-s2-bb9067ce37544bf82eebcee5ce959dcef1720113.tar.gz mediapointer-dvb-s2-bb9067ce37544bf82eebcee5ce959dcef1720113.tar.bz2 |
cx18: Smarter verification of CX18_AUDIO_ENABLE register writes
From: Andy Walls <awalls@radix.net>
The CX18_AUDIO_ENABLE register usually never reads back what was just written
under normal circumstances. Perform better checking that a write went to the
register as expected with a specification of what bits to verify.
Priority: normal
Signed-off-by: Andy Walls <awalls@radix.net>
Diffstat (limited to 'linux/drivers/media/video/cx18/cx18-audio.c')
-rw-r--r-- | linux/drivers/media/video/cx18/cx18-audio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-audio.c b/linux/drivers/media/video/cx18/cx18-audio.c index 57beddf0a..d19bd778c 100644 --- a/linux/drivers/media/video/cx18/cx18-audio.c +++ b/linux/drivers/media/video/cx18/cx18-audio.c @@ -64,8 +64,7 @@ int cx18_audio_set_io(struct cx18 *cx) val = cx18_read_reg(cx, CX18_AUDIO_ENABLE) & ~0x30; val |= (audio_input > CX18_AV_AUDIO_SERIAL2) ? 0x20 : (audio_input << 4); - cx18_write_reg(cx, val | 0xb00, CX18_AUDIO_ENABLE); - cx18_vapi(cx, CX18_APU_RESETAI, 1, 0); + cx18_write_reg_expect(cx, val | 0xb00, CX18_AUDIO_ENABLE, val, 0x30); return 0; } |