diff options
| author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2026-08-05 13:42:03 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-08-06 13:41:38 +0100 |
| commit | df1fd5d8ab403c264b364abe187ce94b2fa7b96f (patch) | |
| tree | 381a2d6d827f51e814b389a682c6fabca72465d2 /include | |
| parent | 01dba3e93486d333c2a192b5250c1ed4dbb3093b (diff) | |
ASoC: SDCA: Add missing destroy for HID device
The SDCA code is currently missing a cleanup for HID devices when the
drivers are unbound. Add the missing HID cleanup as part of the IRQ
cleanup to mirror when the HID device is created.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20260805124205.4152543-7-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/sdca_hid.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/sdca_hid.h b/include/sound/sdca_hid.h index 83d1c7768133..848081df3e4e 100644 --- a/include/sound/sdca_hid.h +++ b/include/sound/sdca_hid.h @@ -17,6 +17,7 @@ struct sdca_interrupt; #if IS_ENABLED(CONFIG_SND_SOC_SDCA_HID) int sdca_add_hid_device(struct sdca_interrupt *interrupt); +void sdca_destroy_hid_device(struct sdca_interrupt *interrupt); int sdca_hid_process_report(struct sdca_interrupt *interrupt); #else @@ -26,6 +27,10 @@ static inline int sdca_add_hid_device(struct sdca_interrupt *interrupt) return 0; } +static inline void sdca_destroy_hid_device(struct sdca_interrupt *interrupt) +{ +} + static inline int sdca_hid_process_report(struct sdca_interrupt *interrupt) { return 0; |
