diff options
author | Cezary Rojewski <[email protected]> | 2022-07-06 14:02:24 +0200 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2022-07-09 18:37:25 +0200 |
commit | 9c76958b396a1342f08f205c350447b4bb54b26a (patch) | |
tree | ae1e24b7fef5c26ebd89e7c694a1e1ecec19d39c /lib/mpi/mpi-add.c | |
parent | 0fcc43e2e159f2f609686a5339093177f019ae26 (diff) |
ALSA: hda: Make device usage_count consistent across subsequent probing
AVS HDAudio bus driver does not tie with codec drivers tighly and
snd_hda_codec_device_new() can be called after codec's module reload. In
such case, rpm is forbidden and invoking pm_runtime_forbid()
unconditionally causes device's usage_count to become unbalanced. This
is later caught by WARN_ON() found in sound/soc/hda.c. Detect such
circumstance and bump the usage_count instead.
Signed-off-by: Cezary Rojewski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions