summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/hdac_hda.c
diff options
context:
space:
mode:
authorBard liao <yung-chuan.liao@linux.intel.com>2019-04-27 23:53:39 +0300
committerTakashi Iwai <tiwai@suse.de>2019-04-29 10:11:59 +0300
commit4d95c51776b2edb4d4ebcea00b6e5a1fe538ce66 (patch)
tree40955c2b4596b4a0f62a232189c5867c6c63795d /sound/soc/codecs/hdac_hda.c
parentcb5173594d50c72b7bfa14113dfc5084b4d2f726 (diff)
downloadlinux-4d95c51776b2edb4d4ebcea00b6e5a1fe538ce66.tar.xz
ALSA: hda: fix unregister device twice on ASoC driver
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>
Diffstat (limited to 'sound/soc/codecs/hdac_hda.c')
0 files changed, 0 insertions, 0 deletions