mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 02:23:16 +00:00
635071f5fe
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-card2-custom-sample.c | ||
audio-graph-card2-custom-sample.dtsi | ||
audio-graph-card2.c | ||
audio-graph-card.c | ||
Kconfig | ||
Makefile | ||
simple-card-utils.c | ||
simple-card.c | ||
test-component.c |