forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/sound/pci/hda/hda_bind.c
....@@ -143,6 +143,7 @@
143143
144144 error:
145145 snd_hda_codec_cleanup_for_unbind(codec);
146
+ codec->preset = NULL;
146147 return err;
147148 }
148149
....@@ -159,6 +160,7 @@
159160 if (codec->patch_ops.free)
160161 codec->patch_ops.free(codec);
161162 snd_hda_codec_cleanup_for_unbind(codec);
163
+ codec->preset = NULL;
162164 module_put(dev->driver->owner);
163165 return 0;
164166 }