ALSA: hda - Fix beep_mode option value
authorTakashi Iwai <tiwai@suse.de>
Mon, 16 Nov 2009 14:33:49 +0000 (15:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Nov 2009 14:33:49 +0000 (15:33 +0100)
commit9bb1fe390de3e1def0dd162dbdaf62e0981105fa
tree6e0ae2081e0125030ead15c8d53b40dc14e93af9
parentd5191e50b251594bdde10d4839a952ff1646ef62
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>
sound/pci/hda/hda_beep.c
sound/pci/hda/hda_beep.h