diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-11-16 09:33:49 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-16 09:33:49 -0500 |
commit | 9bb1fe390de3e1def0dd162dbdaf62e0981105fa (patch) | |
tree | 6e0ae2081e0125030ead15c8d53b40dc14e93af9 /sound/pci/hda/hda_beep.h | |
parent | d5191e50b251594bdde10d4839a952ff1646ef62 (diff) |
ALSA: hda - Fix beep_mode option value
The beep_mode option value was wrongly defined: it must be 0 = off and
1 = on.
Also, evaluate the beep_mode value at snd_hda_attach_beep_device()
properly so that no device is created when beep_mode=0 is given.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_beep.h')
-rw-r--r-- | sound/pci/hda/hda_beep.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_beep.h b/sound/pci/hda/hda_beep.h index 17dd1c325e32..f1de1bac042c 100644 --- a/sound/pci/hda/hda_beep.h +++ b/sound/pci/hda/hda_beep.h | |||
@@ -24,8 +24,8 @@ | |||
24 | 24 | ||
25 | #include "hda_codec.h" | 25 | #include "hda_codec.h" |
26 | 26 | ||
27 | #define HDA_BEEP_MODE_ON 0 | 27 | #define HDA_BEEP_MODE_OFF 0 |
28 | #define HDA_BEEP_MODE_OFF 1 | 28 | #define HDA_BEEP_MODE_ON 1 |
29 | #define HDA_BEEP_MODE_SWREG 2 | 29 | #define HDA_BEEP_MODE_SWREG 2 |
30 | 30 | ||
31 | /* beep information */ | 31 | /* beep information */ |