diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2022-02-14 13:14:02 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-02-21 12:56:36 +0300 |
commit | 595511a3ab80d9ec6649bbf22a99bee169026fd1 (patch) | |
tree | e5445e0847daf8009f8e4b408326225701c81b3a /include/sound/hda_codec.h | |
parent | fefee95488412796b293d28c948be6fce63d149b (diff) | |
download | linux-595511a3ab80d9ec6649bbf22a99bee169026fd1.tar.xz |
ALSA: hda: Update and expose snd_hda_codec_device_init()
With few changes, snd_hda_codec_device_init() can be re-used by ASoC
drivers. While at it, provide kernel doc for the exposed function.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20220214101404.4074026-3-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/hda_codec.h')
-rw-r--r-- | include/sound/hda_codec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/hda_codec.h b/include/sound/hda_codec.h index 82d9daa17851..5e3cbcca42f0 100644 --- a/include/sound/hda_codec.h +++ b/include/sound/hda_codec.h @@ -306,6 +306,9 @@ struct hda_codec { /* * constructors */ +__printf(3, 4) struct hda_codec * +snd_hda_codec_device_init(struct hda_bus *bus, unsigned int codec_addr, + const char *fmt, ...); int snd_hda_codec_new(struct hda_bus *bus, struct snd_card *card, unsigned int codec_addr, struct hda_codec **codecp); int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card, |