aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-11-16 09:35:59 -0500
committerTakashi Iwai <tiwai@suse.de>2009-11-16 09:35:59 -0500
commit67d634c07afd8f70973d925463e775fdb89ad536 (patch)
tree21096af1e9253d6143b03fe3049578871059b6b9 /sound/pci/hda/hda_codec.c
parent9bb1fe390de3e1def0dd162dbdaf62e0981105fa (diff)
ALSA: hda - Fix build errors with CONFIG_SND_HDA_INPUT_BEEP=n
Disable beep-related codes when CONFIG_SND_HDA_INPUT_BEEP isn't set. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index e344235da49..2be61b31fb3 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1959,6 +1959,7 @@ int snd_hda_mixer_amp_switch_put(struct snd_kcontrol *kcontrol,
1959} 1959}
1960EXPORT_SYMBOL_HDA(snd_hda_mixer_amp_switch_put); 1960EXPORT_SYMBOL_HDA(snd_hda_mixer_amp_switch_put);
1961 1961
1962#ifdef CONFIG_SND_HDA_INPUT_BEEP
1962/** 1963/**
1963 * snd_hda_mixer_amp_switch_put_beep - Put callback for a beep AMP switch 1964 * snd_hda_mixer_amp_switch_put_beep - Put callback for a beep AMP switch
1964 * 1965 *
@@ -1975,6 +1976,7 @@ int snd_hda_mixer_amp_switch_put_beep(struct snd_kcontrol *kcontrol,
1975 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); 1976 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol);
1976} 1977}
1977EXPORT_SYMBOL_HDA(snd_hda_mixer_amp_switch_put_beep); 1978EXPORT_SYMBOL_HDA(snd_hda_mixer_amp_switch_put_beep);
1979#endif /* CONFIG_SND_HDA_INPUT_BEEP */
1978 1980
1979/* 1981/*
1980 * bound volume controls 1982 * bound volume controls