aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-07 06:52:16 -0500
committerTakashi Iwai <tiwai@suse.de>2013-01-12 02:43:59 -0500
commit5187ac168d6552ca10a95869c1fd33c256e7746a (patch)
tree14779109a5ee8fe6b034c7dc9c7535f9366f38a7
parentdd5e72030429edfcdee7c0fcdce702ecc81a739e (diff)
ALSA: hda - Add brief comments to exported snd_hda_gen_*_() functions
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/hda/hda_generic.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c
index c20df5753cda..11436c115953 100644
--- a/sound/pci/hda/hda_generic.c
+++ b/sound/pci/hda/hda_generic.c
@@ -3901,6 +3901,10 @@ static void clear_unsol_on_unused_pins(struct hda_codec *codec)
3901 } 3901 }
3902} 3902}
3903 3903
3904/*
3905 * initialize the generic spec;
3906 * this can be put as patch_ops.init function
3907 */
3904int snd_hda_gen_init(struct hda_codec *codec) 3908int snd_hda_gen_init(struct hda_codec *codec)
3905{ 3909{
3906 struct hda_gen_spec *spec = codec->spec; 3910 struct hda_gen_spec *spec = codec->spec;
@@ -3937,7 +3941,10 @@ int snd_hda_gen_init(struct hda_codec *codec)
3937} 3941}
3938EXPORT_SYMBOL_HDA(snd_hda_gen_init); 3942EXPORT_SYMBOL_HDA(snd_hda_gen_init);
3939 3943
3940 3944/*
3945 * free the generic spec;
3946 * this can be put as patch_ops.free function
3947 */
3941void snd_hda_gen_free(struct hda_codec *codec) 3948void snd_hda_gen_free(struct hda_codec *codec)
3942{ 3949{
3943 snd_hda_gen_spec_free(codec->spec); 3950 snd_hda_gen_spec_free(codec->spec);
@@ -3947,6 +3954,10 @@ void snd_hda_gen_free(struct hda_codec *codec)
3947EXPORT_SYMBOL_HDA(snd_hda_gen_free); 3954EXPORT_SYMBOL_HDA(snd_hda_gen_free);
3948 3955
3949#ifdef CONFIG_PM 3956#ifdef CONFIG_PM
3957/*
3958 * check the loopback power save state;
3959 * this can be put as patch_ops.check_power_status function
3960 */
3950int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid) 3961int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid)
3951{ 3962{
3952 struct hda_gen_spec *spec = codec->spec; 3963 struct hda_gen_spec *spec = codec->spec;