diff options
author | Mark Brown <broonie@kernel.org> | 2020-07-17 00:51:54 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-17 00:51:54 +0200 |
commit | 94c3a83ad3091a9c9a4da019bd7df6f1dff6a375 (patch) | |
tree | 05e5e1fac7fbe75668a0c2cbcf3d32bc0519ba6c /include/sound | |
parent | Merge series "ASoC: fsl-asoc-card: Support hp and mic detection" from Shengji... (diff) | |
parent | ALSA: hda: fix snd_hda_codec_cleanup() documentation (diff) | |
download | linux-94c3a83ad3091a9c9a4da019bd7df6f1dff6a375.tar.xz linux-94c3a83ad3091a9c9a4da019bd7df6f1dff6a375.zip |
Merge series "ALSA: hda: export snd_hda_codec_cleanup()" from Kai Vehmanen <kai.vehmanen@linux.intel.com>:
Hi,
this small series is preparation for a set of bugfix ASoC patches
addressing a memleak at module unload for the HDA codec wrapper.
Instead of duplicating HDA code in ASoC tree, I chose to export
more functionality from hda_codec.c so it can be (re)used in ASoC's
hdac_hda.c.
Full series:
https://github.com/thesofproject/linux/pull/2252
Takashi and Mark, feedback is welcome on how to best handle this
kind of series where I have dependent patches both in sound/pci/hda
and in ASoC. For this series, I'm sending the patches separately
and when/if first set is merged by Takashi, I'll route the ASoC
patches via our usually SOF set to Mark.
Kai Vehmanen (2):
ALSA: hda: export snd_hda_codec_cleanup_for_unbind()
ALSA: hda: fix snd_hda_codec_cleanup() documentation
include/sound/hda_codec.h | 2 ++
sound/pci/hda/hda_codec.c | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
--
2.27.0
Diffstat (limited to 'include/sound')
-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); |