From: Pavel Hofman Date: Mon, 3 Dec 2007 11:37:17 +0000 (+0100) Subject: [ALSA] I2C fix for ice1724 X-Git-Tag: v2.6.25-rc1~1127^2~216 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=acec30ffffe1eee07e3202cff03e7ca8350d250f;p=linux-2.6-omap-h63xx.git [ALSA] I2C fix for ice1724 adding i2c busy wait before sending device address to prevent reading bogus data. Signed-off-by: Pavel Hofman Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index 357bdbe21c8..b7a1d93cf00 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c @@ -1958,6 +1958,7 @@ unsigned char snd_vt1724_read_i2c(struct snd_ice1712 *ice, unsigned char val; mutex_lock(&ice->i2c_mutex); + wait_i2c_busy(ice); outb(addr, ICEREG1724(ice, I2C_BYTE_ADDR)); outb(dev & ~VT1724_I2C_WRITE, ICEREG1724(ice, I2C_DEV_ADDR)); wait_i2c_busy(ice);