diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-01-27 12:53:22 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-01-27 12:54:10 +0100 |
commit | 5801f992276366cd6a4f1f9939a4c9da33d499ee (patch) | |
tree | f914e4d0b5989e502097bd6626d394245c4a19f9 /sound/pci/hda/patch_conexant.c | |
parent | aa9d823bb347fb66cb07f98c686be8bb85cb6a74 (diff) | |
download | blackbird-op-linux-5801f992276366cd6a4f1f9939a4c9da33d499ee.tar.gz blackbird-op-linux-5801f992276366cd6a4f1f9939a4c9da33d499ee.zip |
ALSA: hda - Fix compile warning with CONFIG_SND_JACK=n
sound/pci/hda/patch_conexant.c:352: warning: 'conexant_add_jack' defined but not used
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_conexant.c')
-rw-r--r-- | sound/pci/hda/patch_conexant.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index 9ae72b803f2d..0177ef8f4c9e 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c @@ -347,6 +347,7 @@ static int conexant_mux_enum_put(struct snd_kcontrol *kcontrol, &spec->cur_mux[adc_idx]); } +#ifdef CONFIG_SND_JACK static int conexant_add_jack(struct hda_codec *codec, hda_nid_t nid, int type) { @@ -394,7 +395,6 @@ static void conexant_report_jack(struct hda_codec *codec, hda_nid_t nid) static int conexant_init_jacks(struct hda_codec *codec) { -#ifdef CONFIG_SND_JACK struct conexant_spec *spec = codec->spec; int i; @@ -422,10 +422,19 @@ static int conexant_init_jacks(struct hda_codec *codec) ++hv; } } -#endif return 0; } +#else +static inline void conexant_report_jack(struct hda_codec *codec, hda_nid_t nid) +{ +} + +static inline int conexant_init_jacks(struct hda_codec *codec) +{ + return 0; +} +#endif static int conexant_init(struct hda_codec *codec) { |