21 Jul
2008
21 Jul
'08
6:07 p.m.
Jon Smirl wrote:
From soc/codecs/cs4270.c...
- Note that we don't use the hw_write function pointer of snd_soc_codec.
- That's because it's too clunky: the hw_write_t prototype does not match
- i2c_smbus_write_byte_data(), and it's just another layer of overhead.
*/
The prototype doesn't match because you are using i2c_smbus_write_byte_data() instead of i2c_master_send()/i2c_master_recv().
Should I be using i2c_master_send() instead? I remember reading somewhere that I should be using the i2c smbus functions if possible.
--
Timur Tabi
Linux kernel developer at Freescale