diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2024-12-12 01:57:55 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-12-16 12:31:29 +0000 |
commit | 5725bce709db1c001140d79398581e067e28c031 (patch) | |
tree | 998e2c613aeac80e5fd786f1730f05b8265cd27f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 301c26a018acb94dd537a4418cefa0f654500c6f (diff) |
ASoC: simple-card-utils: Unify clock direction by clk_direction
Original sample-card assumes SND_SOC_CLOCK_IN is used for
snd_soc_dai_set_sysclk(), but someday, Codec uses SND_SOC_CLOCK_IN
and CPU uses SND_SOC_CLOCK_OUT at hw_params(), and dai->clk_direction
is used at simple_init_dai().
There is no uniformity today. Let's use dai->clk_direction for all cases.
Fortunately, almost all DAI doesn't care about "dir"
(= SND_SOC_CLOCK_IN/OUT) in .set_sysclk callback function (which is called
in snd_soc_dai_set_sysclk()), so this patch has no effect in such DAIs.
But this patch might breaks some existing Sound Card. Use
"system-clock-direction-out" property if it needs to use SND_SOC_CLOCK_OUT
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87y10lu0gx.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions