projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb2815f
)
ASoC: rsnd: add support for the DSP_A/DSP_B formats
author
Dragos Tarcatu
<
[email protected]
>
Mon, 3 Sep 2018 07:06:01 +0000
(07:06 +0000)
committer
Mark Brown
<
[email protected]
>
Mon, 3 Sep 2018 13:37:13 +0000
(14:37 +0100)
Signed-off-by: Dragos Tarcatu <
[email protected]
>
Signed-off-by: Jiada Wang <
[email protected]
>
Signed-off-by: Timo Wischer <
[email protected]
>
[Kuninori: tidyup for upstream]
Signed-off-by: Kuninori Morimoto <
[email protected]
>
Tested-by: Hiroyuki Yokoyama <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/sh/rcar/core.c
patch
|
blob
|
history
diff --git
a/sound/soc/sh/rcar/core.c
b/sound/soc/sh/rcar/core.c
index ce0a3a61c4417f4fcdfcce367178ae605e71c485..8a417768b7ef7d7a3c92f058cb61f26756d262f1 100644
(file)
--- a/
sound/soc/sh/rcar/core.c
+++ b/
sound/soc/sh/rcar/core.c
@@
-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 */