diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2019-08-24 16:26:54 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-27 15:40:53 -0400 |
commit | 376142b7bbc1edef2900ddc300a006f8c056b0d5 (patch) | |
tree | efc8031daee43b0f2ee7c2204801fe424b4d707d /sound | |
parent | db8e3e2091c3ccc4e1dde0f78b3111301cf129e9 (diff) |
ASoC: atmel_ssc_dai: implement left-justified data mode
Enable support for left-justified data mode for SSC-codec link.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/44fa6b700421e80778f20ff9ead2b148cf6d2e92.1566677788.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/atmel/atmel_ssc_dai.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c index 7dc6ec9b8c7a..48e9eef34c0f 100644 --- a/sound/soc/atmel/atmel_ssc_dai.c +++ b/sound/soc/atmel/atmel_ssc_dai.c | |||
@@ -564,6 +564,15 @@ static int atmel_ssc_hw_params(struct snd_pcm_substream *substream, | |||
564 | 564 | ||
565 | switch (ssc_p->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) { | 565 | switch (ssc_p->daifmt & SND_SOC_DAIFMT_FORMAT_MASK) { |
566 | 566 | ||
567 | case SND_SOC_DAIFMT_LEFT_J: | ||
568 | fs_osync = SSC_FSOS_POSITIVE; | ||
569 | fs_edge = SSC_START_RISING_RF; | ||
570 | |||
571 | rcmr = SSC_BF(RCMR_STTDLY, 0); | ||
572 | tcmr = SSC_BF(TCMR_STTDLY, 0); | ||
573 | |||
574 | break; | ||
575 | |||
567 | case SND_SOC_DAIFMT_I2S: | 576 | case SND_SOC_DAIFMT_I2S: |
568 | fs_osync = SSC_FSOS_NEGATIVE; | 577 | fs_osync = SSC_FSOS_NEGATIVE; |
569 | fs_edge = SSC_START_FALLING_RF; | 578 | fs_edge = SSC_START_FALLING_RF; |