diff options
author | Kai Vehmanen <kai.vehmanen@linux.intel.com> | 2020-07-15 20:45:50 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-16 22:59:12 +0300 |
commit | cc1d0cd817bad5dab50732a6668a87ff3eac3b5c (patch) | |
tree | 9141bb66ba5dc149766b9e2c8119d692486cab0a /include/sound/hda_codec.h | |
parent | a3f6bf8e544ac5fbfe72a331343fb6264373d04d (diff) | |
download | linux-cc1d0cd817bad5dab50732a6668a87ff3eac3b5c.tar.xz |
ALSA: hda: export snd_hda_codec_cleanup_for_unbind()
To avoid duplicated code for cleanup, and match the already exported
snd_hda_codec_pcm_new(), also export snd_hda_codec_cleanup_for_unbind().
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200715174551.3730165-2-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/hda_codec.h')
-rw-r--r-- | include/sound/hda_codec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/hda_codec.h b/include/sound/hda_codec.h index d16a4229209b..e378ed7f4824 100644 --- a/include/sound/hda_codec.h +++ b/include/sound/hda_codec.h @@ -415,6 +415,8 @@ __printf(2, 3) struct hda_pcm *snd_hda_codec_pcm_new(struct hda_codec *codec, const char *fmt, ...); +void snd_hda_codec_cleanup_for_unbind(struct hda_codec *codec); + static inline void snd_hda_codec_pcm_get(struct hda_pcm *pcm) { kref_get(&pcm->kref); |