diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2019-05-24 04:54:04 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-24 08:10:33 -0400 |
commit | 4819d06292c9b57eabdd6d1603e49a27baf183be (patch) | |
tree | 7b3e4dc42fbfb102018806bb5aaea4b83962a26e /sound/soc/generic | |
parent | df9366131a452296d040a7a496d93108f1fc240c (diff) |
ASoC: simple-card: Restore original configuration of DAI format
Revert commit 069d037aea98 ("ASoC: simple-card: Fix configuration of
DAI format"). During further review, it turns out that the actual issue
was caused by an incorrectly formatted device-tree node describing the
soundcard.
The following is incorrect because the simple-audio-card
'bitclock-master' and 'frame-master' properties should not reference the
actual codec phandle ...
sound {
compatible = "simple-audio-card";
...
=> simple-audio-card,bitclock-master = <&codec>;
=> simple-audio-card,frame-master = <&codec>;
...
simple-audio-card,cpu {
sound-dai = <&xxx>;
};
simple-audio-card,codec {
=> sound-dai = <&codec>;
};
};
Rather, these properties should reference the phandle to the
'simple-audio-card,codec' property as shown below ...
sound {
compatible = "simple-audio-card";
...
=> simple-audio-card,bitclock-master = <&codec>;
=> simple-audio-card,frame-master = <&codec>;
...
simple-audio-card,cpu {
sound-dai = <&xxx>;
};
=> codec: simple-audio-card,codec { /* simple-card wants here */
sound-dai = <&xxx>; /* not here */
};
};
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r-- | sound/soc/generic/simple-card.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index c2c8dcbcf795..9b568f578bcd 100644 --- a/sound/soc/generic/simple-card.c +++ b/sound/soc/generic/simple-card.c | |||
@@ -283,6 +283,11 @@ static int simple_dai_link_of(struct asoc_simple_priv *priv, | |||
283 | codec_dai = | 283 | codec_dai = |
284 | dai_props->codec_dai = &priv->dais[li->dais++]; | 284 | dai_props->codec_dai = &priv->dais[li->dais++]; |
285 | 285 | ||
286 | ret = asoc_simple_parse_daifmt(dev, node, codec, | ||
287 | prefix, &dai_link->dai_fmt); | ||
288 | if (ret < 0) | ||
289 | goto dai_link_of_err; | ||
290 | |||
286 | simple_parse_mclk_fs(top, cpu, codec, dai_props, prefix); | 291 | simple_parse_mclk_fs(top, cpu, codec, dai_props, prefix); |
287 | 292 | ||
288 | ret = asoc_simple_parse_cpu(cpu, dai_link, &single_cpu); | 293 | ret = asoc_simple_parse_cpu(cpu, dai_link, &single_cpu); |
@@ -293,11 +298,6 @@ static int simple_dai_link_of(struct asoc_simple_priv *priv, | |||
293 | if (ret < 0) | 298 | if (ret < 0) |
294 | goto dai_link_of_err; | 299 | goto dai_link_of_err; |
295 | 300 | ||
296 | ret = asoc_simple_parse_daifmt(dev, node, dai_link->codecs->of_node, | ||
297 | prefix, &dai_link->dai_fmt); | ||
298 | if (ret < 0) | ||
299 | goto dai_link_of_err; | ||
300 | |||
301 | ret = asoc_simple_parse_platform(plat, dai_link); | 301 | ret = asoc_simple_parse_platform(plat, dai_link); |
302 | if (ret < 0) | 302 | if (ret < 0) |
303 | goto dai_link_of_err; | 303 | goto dai_link_of_err; |