mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![]() The code in asoc_simple_startup was treating any non-zero return from
snd_pcm_hw_constraint_minmax as an error, when this can return 1 in some
normal cases and only negative values indicate an error.
When this happened, it caused asoc_simple_startup to disable the clocks
it just enabled and return 1, which was not treated as an error by the
calling code which only checks for negative return values. Then when the
PCM is eventually shut down, it causes the clock framework to complain
about disabling clocks that were not enabled.
Fix the check for snd_pcm_hw_constraint_minmax return value to only
treat negative values as an error.
Fixes:
|
||
---|---|---|
.. | ||
audio-graph-card.c | ||
audio-graph-card2-custom-sample.c | ||
audio-graph-card2-custom-sample.dtsi | ||
audio-graph-card2.c | ||
Kconfig | ||
Makefile | ||
simple-card-utils.c | ||
simple-card.c | ||
test-component.c |