summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_beep.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-11-16 15:33:49 +0100
committerTakashi Iwai <tiwai@suse.de>2009-11-16 15:33:49 +0100
commit9bb1fe390de3e1def0dd162dbdaf62e0981105fa (patch)
tree6e0ae2081e0125030ead15c8d53b40dc14e93af9 /sound/pci/hda/hda_beep.h
parentALSA: hda - Update / add kerneldoc comments to exported functions (diff)
downloadlinux-9bb1fe390de3e1def0dd162dbdaf62e0981105fa.tar.xz
linux-9bb1fe390de3e1def0dd162dbdaf62e0981105fa.zip
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.h4
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 @@
#include "hda_codec.h"
-#define HDA_BEEP_MODE_ON 0
-#define HDA_BEEP_MODE_OFF 1
+#define HDA_BEEP_MODE_OFF 0
+#define HDA_BEEP_MODE_ON 1
#define HDA_BEEP_MODE_SWREG 2
/* beep information */