Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170337
b: refs/heads/master
c: 9bb1fe3
h: refs/heads/master
i:
  170335: 561b4c2
v: v3
  • Loading branch information
Takashi Iwai committed Nov 16, 2009
1 parent a064a10 commit 8a1f0f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d5191e50b251594bdde10d4839a952ff1646ef62
refs/heads/master: 9bb1fe390de3e1def0dd162dbdaf62e0981105fa
4 changes: 3 additions & 1 deletion trunk/sound/pci/hda/hda_beep.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
struct hda_beep *beep;

if (!snd_hda_get_bool_hint(codec, "beep"))
return 0; /* disabled explicitly */
return 0; /* disabled explicitly by hints */
if (codec->beep_mode == HDA_BEEP_MODE_OFF)
return 0; /* disabled by module option */

beep = kzalloc(sizeof(*beep), GFP_KERNEL);
if (beep == NULL)
Expand Down
4 changes: 2 additions & 2 deletions trunk/sound/pci/hda/hda_beep.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8a1f0f1

Please sign in to comment.