diff options
author | Yu-Hsuan Hsu <[email protected]> | 2019-11-26 15:54:24 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2019-11-27 12:50:08 +0000 |
commit | 756ae8f237e19a014a1c20ad5a51b0686463d1f7 (patch) | |
tree | b389febafc3c72768fd76ae62e1468030738d67e /tools/perf/scripts/python/Perf-Trace-Util/lib | |
parent | bc094709de0192a756c6946a7c89c543243ae609 (diff) |
ASoC: AMD: Enable clk in startup intead of hw_params
Some usages only call startup and shutdown without setting hw_params
(e.g. arecord --dump-hw-params). If we don't enable clk in startup, it
will cause ref count error because the clk will be disabled in shutdown.
For this reason, we should move enabling clk from hw_params to startup.
In addition, the hw_params is fixed in this driver(48000 rate, 2
channels, S16_LE format) so we don't need to change the clk rate after
the hw_params is set.
Signed-off-by: Yu-Hsuan Hsu <[email protected]>
Acked-by: Akshu Agrawal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions