]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda: Ignore unsol events for cards being shut down
authorCezary Rojewski <cezary.rojewski@intel.com>
Fri, 30 May 2025 14:13:09 +0000 (16:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 13:57:34 +0000 (15:57 +0200)
commit44aa0cdaed5f95668577023a0f6fb107e8e2fa09
tree812a287359d458826537254d801e83cfa2419f15
parent56846793f105cf2b39ecbde4f3ae86342091f6fc
ALSA: hda: Ignore unsol events for cards being shut down

[ Upstream commit 3f100f524e75586537e337b34d18c8d604b398e7 ]

For the classic snd_hda_intel driver, codec->card and bus->card point to
the exact same thing. When snd_card_diconnect() fires, bus->shutdown is
set thanks to azx_dev_disconnect(). card->shutdown is already set when
that happens but both provide basically the same functionality.

For the DSP snd_soc_avs driver where multiple codecs are located on
multiple cards, bus->shutdown 'shortcut' is not sufficient. One codec
card may be unregistered while other codecs are still operational.
Proper check in form of card->shutdown must be used to verify whether
the codec's card is being shut down.

Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250530141309.2943404-1-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/hda_bind.c