]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: rsnd: add support for the DSP_A/DSP_B formats
authorDragos Tarcatu <dragos_tarcatu@mentor.com>
Mon, 3 Sep 2018 07:06:01 +0000 (07:06 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 3 Sep 2018 13:37:13 +0000 (14:37 +0100)
Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
[Kuninori: tidyup for upstream]
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c

index ce0a3a61c4417f4fcdfcce367178ae605e71c485..8a417768b7ef7d7a3c92f058cb61f26756d262f1 100644 (file)
@@ -689,6 +689,7 @@ static int rsnd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
                rdai->frm_clk_inv = 0;
                break;
        case SND_SOC_DAIFMT_LEFT_J:
+       case SND_SOC_DAIFMT_DSP_B:
                rdai->sys_delay = 1;
                rdai->data_alignment = 0;
                rdai->frm_clk_inv = 1;
@@ -698,6 +699,11 @@ static int rsnd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
                rdai->data_alignment = 1;
                rdai->frm_clk_inv = 1;
                break;
+       case SND_SOC_DAIFMT_DSP_A:
+               rdai->sys_delay = 0;
+               rdai->data_alignment = 0;
+               rdai->frm_clk_inv = 1;
+               break;
        }
 
        /* set clock inversion */