aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/hda_beep.c4
-rw-r--r--sound/pci/hda/hda_beep.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c
index 9e48798b415b..5fe34a8d8c81 100644
--- a/sound/pci/hda/hda_beep.c
+++ b/sound/pci/hda/hda_beep.c
@@ -215,7 +215,9 @@ int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
215 struct hda_beep *beep; 215 struct hda_beep *beep;
216 216
217 if (!snd_hda_get_bool_hint(codec, "beep")) 217 if (!snd_hda_get_bool_hint(codec, "beep"))
218 return 0; /* disabled explicitly */ 218 return 0; /* disabled explicitly by hints */
219 if (codec->beep_mode == HDA_BEEP_MODE_OFF)
220 return 0; /* disabled by module option */
219 221
220 beep = kzalloc(sizeof(*beep), GFP_KERNEL); 222 beep = kzalloc(sizeof(*beep), GFP_KERNEL);
221 if (beep == NULL) 223 if (beep == NULL)
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 */