ASoC: max9867: DSP mode
Add configuration for DSP mode. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
e6ceb922ca
Коммит
79e1397445
|
@ -325,10 +325,16 @@ static int max9867_dai_set_fmt(struct snd_soc_dai *codec_dai,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* for i2s compatible mode */
|
switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
|
||||||
iface1A |= MAX9867_I2S_DLY;
|
case SND_SOC_DAIFMT_I2S:
|
||||||
/* SDOUT goes to hiz state after all data is transferred */
|
iface1A |= MAX9867_I2S_DLY;
|
||||||
iface1A |= MAX9867_SDOUT_HIZ;
|
break;
|
||||||
|
case SND_SOC_DAIFMT_DSP_A:
|
||||||
|
iface1A |= MAX9867_TDM_MODE | MAX9867_SDOUT_HIZ;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Clock inversion bits, BCI and WCI */
|
/* Clock inversion bits, BCI and WCI */
|
||||||
switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
|
switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче