Fix master mode settings of HiFiBerry DAC+ADC PRO card (#3424)
authorJörg Schambacher <j-schambacher@users.noreply.github.com>
Thu, 23 Jan 2020 12:32:13 +0000 (13:32 +0100)
committerPhil Elwell <pelwell@users.noreply.github.com>
Thu, 23 Jan 2020 12:32:13 +0000 (12:32 +0000)
This patch fixes the board DAI setting when in master-mode.
Wrong setting could have caused random pop noise.

Signed-off-by: Joerg Schambacher <joerg@i2audio.com>
sound/soc/bcm/hifiberry_dacplusadcpro.c

index ed080b2..5262fe2 100644 (file)
@@ -285,6 +285,8 @@ static int snd_rpi_hifiberry_dacplusadcpro_init(struct snd_soc_pcm_runtime *rtd)
 
                dai->name = "HiFiBerry DAC+ADC Pro";
                dai->stream_name = "HiFiBerry DAC+ADC Pro HiFi";
+               dai->dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
+                       | SND_SOC_DAIFMT_CBM_CFM;
 
                // set DAC DAI configuration
                ret = snd_soc_dai_set_fmt(rtd->codec_dais[0],