Title: [7949] trunk/sound/soc/codecs/adau1371.c: bug[#5741]roll back to previous revision
- Revision
- 7949
- Author
- cliff
- Date
- 2009-12-07 22:00:39 -0500 (Mon, 07 Dec 2009)
Log Message
bug[#5741]roll back to previous revision
Modified Paths
Diff
Modified: trunk/sound/soc/codecs/adau1371.c (7948 => 7949)
--- trunk/sound/soc/codecs/adau1371.c 2009-12-07 17:00:55 UTC (rev 7948)
+++ trunk/sound/soc/codecs/adau1371.c 2009-12-08 03:00:39 UTC (rev 7949)
@@ -89,7 +89,11 @@
dev_err(codec->dev, "writing to 0x%x failed.\n", reg);
return -EIO;
}
- buf[0] = i2c_smbus_read_byte_data(codec->control_data, buf[0]);
+ /* perform the read */
+ if (codec->hw_read(codec->control_data, buf, 1) != 1) {
+ dev_err(codec->dev, "hw_read failed.\n");
+ return -EIO;
+ }
adau1371_write_reg_cache(codec, reg, (unsigned int)buf[0]);
return 0;
}
@@ -1082,6 +1086,7 @@
codec = &adau1371->codec;
codec->private_data = adau1371;
codec->hw_write = (hw_write_t)i2c_master_send;
+ codec->hw_read = (hw_read_t)i2c_master_recv;
i2c_set_clientdata(i2c, adau1371);
codec->control_data = i2c;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits