mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
ASoC: SOF: add snd_sof_device_shutdown() helper for shutdown
Add helper snd_sof_device_shutdown() to wrap the platform specific .shutdown callbacks for SOF platforms. Signed-off-by: Keyon Jie <[email protected]> Reviewed-by: Bard Liao <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Signed-off-by: Kai Vehmanen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
@@ -385,6 +385,14 @@ int snd_sof_device_remove(struct device *dev)
|
||||
}
|
||||
EXPORT_SYMBOL(snd_sof_device_remove);
|
||||
|
||||
int snd_sof_device_shutdown(struct device *dev)
|
||||
{
|
||||
struct snd_sof_dev *sdev = dev_get_drvdata(dev);
|
||||
|
||||
return snd_sof_shutdown(sdev);
|
||||
}
|
||||
EXPORT_SYMBOL(snd_sof_device_shutdown);
|
||||
|
||||
MODULE_AUTHOR("Liam Girdwood");
|
||||
MODULE_DESCRIPTION("Sound Open Firmware (SOF) Core");
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
|
||||
Reference in New Issue
Block a user