summaryrefslogtreecommitdiff
path: root/scripts/ksymoops
diff options
context:
space:
mode:
authorBard liao2019-04-28 04:53:39 +0800
committerGreg Kroah-Hartman2019-05-31 06:44:58 -0700
commitd58459894de7e689abe5028bbc08751faaa30849 (patch)
tree0ae85fe3c9ed1976310476826b614c11f49793ed /scripts/ksymoops
parentff4e79bbe519f5152200188b664f02ae7b040927 (diff)
ALSA: hda: fix unregister device twice on ASoC driver
[ Upstream commit 4d95c51776b2edb4d4ebcea00b6e5a1fe538ce66 ] snd_hda_codec_device_new() is used by both legacy HDA and ASoC driver. However, we will call snd_hdac_device_unregister() in snd_hdac_ext_bus_device_remove() for ASoC device. This patch uses the type flag in hdac_device struct to determine is it a ASoC device or legacy HDA device and call snd_hdac_device_unregister() in snd_hda_codec_dev_free() only if it is a legacy HDA device. Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/ksymoops')
0 files changed, 0 insertions, 0 deletions