|
@@ -891,6 +891,7 @@ static int aic3x_set_dai_fmt(struct snd_soc_dai *codec_dai,
|
|
|
struct snd_soc_codec *codec = codec_dai->codec;
|
|
|
struct aic3x_priv *aic3x = codec->private_data;
|
|
|
u8 iface_areg, iface_breg;
|
|
|
+ int delay = 0;
|
|
|
|
|
|
iface_areg = aic3x_read_reg_cache(codec, AIC3X_ASD_INTF_CTRLA) & 0x3f;
|
|
|
iface_breg = aic3x_read_reg_cache(codec, AIC3X_ASD_INTF_CTRLB) & 0x3f;
|
|
@@ -916,6 +917,8 @@ static int aic3x_set_dai_fmt(struct snd_soc_dai *codec_dai,
|
|
|
SND_SOC_DAIFMT_INV_MASK)) {
|
|
|
case (SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF):
|
|
|
break;
|
|
|
+ case (SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_IB_NF):
|
|
|
+ delay = 1;
|
|
|
case (SND_SOC_DAIFMT_DSP_B | SND_SOC_DAIFMT_IB_NF):
|
|
|
iface_breg |= (0x01 << 6);
|
|
|
break;
|
|
@@ -932,6 +935,7 @@ static int aic3x_set_dai_fmt(struct snd_soc_dai *codec_dai,
|
|
|
/* set iface */
|
|
|
aic3x_write(codec, AIC3X_ASD_INTF_CTRLA, iface_areg);
|
|
|
aic3x_write(codec, AIC3X_ASD_INTF_CTRLB, iface_breg);
|
|
|
+ aic3x_write(codec, AIC3X_ASD_INTF_CTRLC, delay);
|
|
|
|
|
|
return 0;
|
|
|
}
|