[alsa-devel] [PATCH 1/2] ASoC: cs4341: Add driver for CS4341 CODEC
Alexander Shiyan
shc_work at mail.ru
Wed Sep 21 10:59:53 CEST 2016
>On 9/8/16, 11:29 AM, "Alexander Shiyan" < shc_work at mail.ru > wrote:
>
...
>>+config SND_SOC_CS4341
>>+tristate "Cirrus Logic CS4341 CODEC"
>>+depends on SPI_MASTER
>>+select REGMAP_SPI
>>+help
>>+ Enable support for Cirrus Logic (Crystal) CS4341 CODEC.
>>+
>This devices primary interface is I2C. That should be added as well since
>i2c is read/write and spi is write only.
I can add I2C support, but can not test this.
...
>>+snd_soc_update_bits(codec, CS4341_REG_MODE2, CS4341_MODE2_DIF,
>>+ bits24 ? CS4341_MODE2_DIF_RJ_24 :
>>+ CS4341_MODE2_DIF_RJ_16);
>>+break;
>>+default:
>>+dev_err(codec->dev, "Unsupported DAI format\n");
>>+return -EINVAL;
>>+}
>
>Can we use regmap_update_bits where we can?
So you say that regmap_update_bits() is prefferred than snd_soc_update_bits() ?
---
More information about the Alsa-devel
mailing list