diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-27 06:40:13 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-27 06:40:13 -0500 |
commit | 986862bdf17655d012f9b0654925dccdcc4183c9 (patch) | |
tree | 804ec0d54b5da3da0d6edde0bae2e03bba64b57a /sound/pci/hda/hda_codec.h | |
parent | 4f199629b0fba95fd5caecbf35ed68417d9a9b7a (diff) |
ALSA: hda - make some functions static
Minor clean ups: move snd_hda_codecs_inuse() into hda_intel.c and
make static. Also, make snd_hda_query_supported_pcm() static
as it's used only in hda_codec.c.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index a70b181bbace..e1077df5e882 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h | |||
@@ -852,8 +852,6 @@ unsigned int snd_hda_calc_stream_format(unsigned int rate, | |||
852 | unsigned int channels, | 852 | unsigned int channels, |
853 | unsigned int format, | 853 | unsigned int format, |
854 | unsigned int maxbps); | 854 | unsigned int maxbps); |
855 | int snd_hda_query_supported_pcm(struct hda_codec *codec, hda_nid_t nid, | ||
856 | u32 *ratesp, u64 *formatsp, unsigned int *bpsp); | ||
857 | int snd_hda_is_supported_format(struct hda_codec *codec, hda_nid_t nid, | 855 | int snd_hda_is_supported_format(struct hda_codec *codec, hda_nid_t nid, |
858 | unsigned int format); | 856 | unsigned int format); |
859 | 857 | ||
@@ -884,12 +882,10 @@ const char *snd_hda_get_jack_location(u32 cfg); | |||
884 | void snd_hda_power_up(struct hda_codec *codec); | 882 | void snd_hda_power_up(struct hda_codec *codec); |
885 | void snd_hda_power_down(struct hda_codec *codec); | 883 | void snd_hda_power_down(struct hda_codec *codec); |
886 | #define snd_hda_codec_needs_resume(codec) codec->power_count | 884 | #define snd_hda_codec_needs_resume(codec) codec->power_count |
887 | int snd_hda_codecs_inuse(struct hda_bus *bus); | ||
888 | #else | 885 | #else |
889 | static inline void snd_hda_power_up(struct hda_codec *codec) {} | 886 | static inline void snd_hda_power_up(struct hda_codec *codec) {} |
890 | static inline void snd_hda_power_down(struct hda_codec *codec) {} | 887 | static inline void snd_hda_power_down(struct hda_codec *codec) {} |
891 | #define snd_hda_codec_needs_resume(codec) 1 | 888 | #define snd_hda_codec_needs_resume(codec) 1 |
892 | #define snd_hda_codecs_inuse(bus) 1 | ||
893 | #endif | 889 | #endif |
894 | 890 | ||
895 | #endif /* __SOUND_HDA_CODEC_H */ | 891 | #endif /* __SOUND_HDA_CODEC_H */ |