aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2017-10-26 03:45:37 -0400
committerMark Brown <broonie@kernel.org>2017-10-26 03:45:37 -0400
commit1ef6f346c62f386f28b0012d6379e2822a3842d3 (patch)
tree72ccea913e509ac18813ec3dc96e76cffb263f54
parenteefb175fc227492bfcfadce5409f48911923fa02 (diff)
parent9e9e95df06433b4f89cfeef0003af091ee0ebc86 (diff)
Merge remote-tracking branch 'asoc/fix/rcar' into asoc-linus
-rw-r--r--sound/soc/sh/rcar/adg.c4
-rw-r--r--sound/soc/sh/rcar/ssi.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c
index 938baff86ef2..e11ce5036bcf 100644
--- a/sound/soc/sh/rcar/adg.c
+++ b/sound/soc/sh/rcar/adg.c
@@ -479,10 +479,10 @@ static void rsnd_adg_get_clkout(struct rsnd_priv *priv,
479 } 479 }
480 480
481 if (req_rate[0] % 48000 == 0) 481 if (req_rate[0] % 48000 == 0)
482 adg->flags = AUDIO_OUT_48; 482 adg->flags |= AUDIO_OUT_48;
483 483
484 if (of_get_property(np, "clkout-lr-asynchronous", NULL)) 484 if (of_get_property(np, "clkout-lr-asynchronous", NULL))
485 adg->flags = LRCLK_ASYNC; 485 adg->flags |= LRCLK_ASYNC;
486 486
487 /* 487 /*
488 * This driver is assuming that AUDIO_CLKA/AUDIO_CLKB/AUDIO_CLKC 488 * This driver is assuming that AUDIO_CLKA/AUDIO_CLKB/AUDIO_CLKC
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c
index fffc07e72627..03c2a1f02643 100644
--- a/sound/soc/sh/rcar/ssi.c
+++ b/sound/soc/sh/rcar/ssi.c
@@ -1112,6 +1112,9 @@ int rsnd_ssi_probe(struct rsnd_priv *priv)
1112 1112
1113 i = 0; 1113 i = 0;
1114 for_each_child_of_node(node, np) { 1114 for_each_child_of_node(node, np) {
1115 if (!of_device_is_available(np))
1116 goto skip;
1117
1115 ssi = rsnd_ssi_get(priv, i); 1118 ssi = rsnd_ssi_get(priv, i);
1116 1119
1117 snprintf(name, RSND_SSI_NAME_SIZE, "%s.%d", 1120 snprintf(name, RSND_SSI_NAME_SIZE, "%s.%d",
@@ -1148,7 +1151,7 @@ int rsnd_ssi_probe(struct rsnd_priv *priv)
1148 of_node_put(np); 1151 of_node_put(np);
1149 goto rsnd_ssi_probe_done; 1152 goto rsnd_ssi_probe_done;
1150 } 1153 }
1151 1154skip:
1152 i++; 1155 i++;
1153 } 1156 }
1154 1157