ALSA: hda/tas2781: remove sound controls in unbind
authorGergo Koteles <soyer@irl.hu>
Fri, 22 Dec 2023 00:34:48 +0000 (01:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Dec 2023 12:42:24 +0000 (13:42 +0100)
commit4e7914eb1dae377b8e6de59c96b0653aacb47646
tree1d70ee54292da0e19b36bfc28c96aa4d2f52eab4
parente7aa105657f7f62f54a493480588895cc8a9a1a7
ALSA: hda/tas2781: remove sound controls in unbind

Remove sound controls in hda_unbind to make
module loadable after module unload.

Add a driver specific struct (tas2781_hda) to store
the controls.

This patch depends on patch:
ALSA: hda/tas2781: do not use regcache

Fixes: 5be27f1e3ec9 ("ALSA: hda/tas2781: Add tas2781 HDA driver")
CC: stable@vger.kernel.org
Signed-off-by: Gergo Koteles <soyer@irl.hu>
Link: https://lore.kernel.org/r/362aa3e2f81b9259a3e5222f576bec5debfc5e88.1703204848.git.soyer@irl.hu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/tas2781_hda_i2c.c