diff options
author | Aidan MacDonald <aidanmacdonald.0x0@gmail.com> | 2022-10-19 04:23:02 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-10-19 15:39:34 +0300 |
commit | 32def55d237e8507d4eb8442628fc2e59a899ea0 (patch) | |
tree | 99568687ec8ec2671ff236e0e5227a996144a08c /sound/soc/codecs/rt700.c | |
parent | 75d8b1662ca5c20cf8365575222abaef18ff1f50 (diff) | |
download | linux-32def55d237e8507d4eb8442628fc2e59a899ea0.tar.xz |
ASoC: simple-card: Fix up checks for HW param fixups
The "convert-xxx" properties only have an effect for DPCM DAI links.
A DAI link is only created as DPCM if the device tree requires it;
part of this involves checking for the use of "convert-xxx" properties.
When the convert-sample-format property was added, the checks got out
of sync. A DAI link that specified only convert-sample-format but did
not pass any of the other DPCM checks would not go into DPCM mode and
the convert-sample-format property would be silently ignored.
Fix this by adding a function to do the "convert-xxx" property checks,
instead of open-coding it in simple-card and audio-graph-card. And add
"convert-sample-format" to the check function so that DAI links using
it will be initialized correctly.
Fixes: 047a05366f4b ("ASoC: simple-card-utils: Fixup DAI sample format")
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Acked-by: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/20221019012302.633830-1-aidanmacdonald.0x0@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt700.c')
0 files changed, 0 insertions, 0 deletions