ALSA: ASoC: Davinci: Replaced DAI format RIGHT_J by DSP_B for SFFSDR
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
b3d7e3c99d
commit
14cbba89ae
|
@ -36,6 +36,14 @@
|
||||||
#include "davinci-pcm.h"
|
#include "davinci-pcm.h"
|
||||||
#include "davinci-i2s.h"
|
#include "davinci-i2s.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* CLKX and CLKR are the inputs for the Sample Rate Generator.
|
||||||
|
* FSX and FSR are outputs, driven by the sample Rate Generator.
|
||||||
|
*/
|
||||||
|
#define AUDIO_FORMAT (SND_SOC_DAIFMT_DSP_B | \
|
||||||
|
SND_SOC_DAIFMT_CBM_CFS | \
|
||||||
|
SND_SOC_DAIFMT_IB_NF)
|
||||||
|
|
||||||
static int sffsdr_hw_params(struct snd_pcm_substream *substream,
|
static int sffsdr_hw_params(struct snd_pcm_substream *substream,
|
||||||
struct snd_pcm_hw_params *params,
|
struct snd_pcm_hw_params *params,
|
||||||
struct snd_soc_dai *dai)
|
struct snd_soc_dai *dai)
|
||||||
|
@ -56,13 +64,8 @@ static int sffsdr_hw_params(struct snd_pcm_substream *substream,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set cpu DAI configuration:
|
/* set cpu DAI configuration */
|
||||||
* CLKX and CLKR are the inputs for the Sample Rate Generator.
|
ret = snd_soc_dai_set_fmt(cpu_dai, AUDIO_FORMAT);
|
||||||
* FSX and FSR are outputs, driven by the sample Rate Generator. */
|
|
||||||
ret = snd_soc_dai_set_fmt(cpu_dai,
|
|
||||||
SND_SOC_DAIFMT_RIGHT_J |
|
|
||||||
SND_SOC_DAIFMT_CBM_CFS |
|
|
||||||
SND_SOC_DAIFMT_IB_NF);
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue