Title: [7951] trunk/sound/soc/codecs/adau1761.c: bug[#5741]snd_soc_codec's hw_read API has changed,so use the i2c read method directly
- Revision
- 7951
- Author
- cliff
- Date
- 2009-12-07 22:07:35 -0500 (Mon, 07 Dec 2009)
Log Message
bug[#5741]snd_soc_codec's hw_read API has changed,so use the i2c read method directly
Modified Paths
Diff
Modified: trunk/sound/soc/codecs/adau1761.c (7950 => 7951)
--- trunk/sound/soc/codecs/adau1761.c 2009-12-08 03:03:12 UTC (rev 7950)
+++ trunk/sound/soc/codecs/adau1761.c 2009-12-08 03:07:35 UTC (rev 7951)
@@ -117,7 +117,7 @@
}
/* perform the read */
- if (codec->hw_read(codec->control_data, buf, 1) != 1) {
+ if (i2c_master_recv(codec->control_data, buf, 1) != 1) {
dev_err(codec->dev, "read_reg_byte:hw_read failed.");
return -EIO;
}
@@ -150,7 +150,7 @@
return -EIO;
}
- if (codec->hw_read(codec->control_data, buf, len) != len)
+ if (i2c_master_recv(codec->control_data, buf, len) != len)
return -EIO;
for (i = 0; i < len; i++)
@@ -1071,7 +1071,6 @@
codec = &adau1761->codec;
codec->private_data = adau1761;
codec->hw_write = (hw_write_t)i2c_master_send;
- codec->hw_read = (hw_read_t)i2c_master_recv;
i2c_set_clientdata(i2c, adau1761);
codec->control_data = i2c;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits