diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-11-16 09:35:59 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-16 09:35:59 -0500 |
commit | 67d634c07afd8f70973d925463e775fdb89ad536 (patch) | |
tree | 21096af1e9253d6143b03fe3049578871059b6b9 /sound/pci/hda/hda_codec.c | |
parent | 9bb1fe390de3e1def0dd162dbdaf62e0981105fa (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index e344235da491..2be61b31fb3c 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 | } |
1960 | EXPORT_SYMBOL_HDA(snd_hda_mixer_amp_switch_put); | 1960 | EXPORT_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 | } |
1977 | EXPORT_SYMBOL_HDA(snd_hda_mixer_amp_switch_put_beep); | 1978 | EXPORT_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 |