[alsa-devel] snd soc spi read/write
broonie at opensource.wolfsonmicro.com
Thu Aug 4 12:35:58 CEST 2011
On Thu, Aug 04, 2011 at 06:24:04PM +0800, Scott Jiang wrote:
> My version is linux 3.0, I found snd_soc_spi_read/write didn't work at
> 16-8 bit mode.
> The addr is 16bit, the function compares reg with reg_cache_size. This
> certainly causes failure.
> In the former version, reg &= 0xff seems right. So how to use
> snd_soc_16_8_write now?
reg &= 0xff is clearly broken for 16 bit register values...
Note that all this code will be replaced with regmap for 3.2.
More information about the Alsa-devel