summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2018-10-10 02:22:29 +0000
committerMark Brown <broonie@kernel.org>2018-10-10 13:28:06 +0100
commit8036dbc490d16dc3d998246e14c9507ec8272ae2 (patch)
tree1605a6e1b3056ab007a797cc785c858067b6ef5b
parent82ab7e9a4d3fcec27f745be04063e17da1881dda (diff)
downloadlinux-stable-8036dbc490d16dc3d998246e14c9507ec8272ae2.tar.gz
linux-stable-8036dbc490d16dc3d998246e14c9507ec8272ae2.tar.bz2
linux-stable-8036dbc490d16dc3d998246e14c9507ec8272ae2.zip
ASoC: audio-graph-card: enable mclk-fs on codec node
Current audio-graph-card is supporting mclk-fs on CPU node side only. But having Codec node also is good idea. It will be just ignored if not defined. "rcpu_ep" is same as "cpu_ep", This patch tidyup it, too. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/generic/audio-graph-card.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/generic/audio-graph-card.c b/sound/soc/generic/audio-graph-card.c
index fb6635f8d5d7..25c819e402e1 100644
--- a/sound/soc/generic/audio-graph-card.c
+++ b/sound/soc/generic/audio-graph-card.c
@@ -182,7 +182,8 @@ static int asoc_graph_card_dai_link_of(struct device_node *cpu_port,
if (ret < 0)
goto dai_link_of_err;
- of_property_read_u32(rcpu_ep, "mclk-fs", &dai_props->mclk_fs);
+ of_property_read_u32(cpu_ep, "mclk-fs", &dai_props->mclk_fs);
+ of_property_read_u32(codec_ep, "mclk-fs", &dai_props->mclk_fs);
ret = asoc_simple_card_parse_graph_cpu(cpu_ep, dai_link);
if (ret < 0)