diff options
Diffstat (limited to 'sound/pci/hda/hda_generic.c')
-rw-r--r-- | sound/pci/hda/hda_generic.c | 13 |
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 | */ | ||
3904 | int snd_hda_gen_init(struct hda_codec *codec) | 3908 | int 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 | } |
3938 | EXPORT_SYMBOL_HDA(snd_hda_gen_init); | 3942 | EXPORT_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 | */ | ||
3941 | void snd_hda_gen_free(struct hda_codec *codec) | 3948 | void 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) | |||
3947 | EXPORT_SYMBOL_HDA(snd_hda_gen_free); | 3954 | EXPORT_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 | */ | ||
3950 | int snd_hda_gen_check_power_status(struct hda_codec *codec, hda_nid_t nid) | 3961 | int 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; |