]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - fix beep tone calculation for IDT/STAC codecs
authorPaul Vojta <vojta@math.berkeley.edu>
Thu, 9 Jul 2009 06:57:46 +0000 (23:57 -0700)
committerTakashi Iwai <tiwai@suse.de>
Thu, 9 Jul 2009 07:14:29 +0000 (09:14 +0200)
commit15ff864195d2671471e1c1d789e500def4ecc1fb
tree87450e074cdc85babc8665077b416bc3d560b6ef
parent50284a0e1d67b72010fb8cf5a27e54db5c05a18b
ALSA: hda - fix beep tone calculation for IDT/STAC codecs

In the beep tone calculation for IDT/STAC codecs, lower numbers correspond
to higher frequencies and vice versa.  The current code has this backwards,
resulting in beep frequencies which are way too high (and sound bad on
tinny laptop speakers, resulting in complaints).

[Also added hz <= 0 check by tiwai]

Signed-off-by: Paul Vojta <vojta@math.berkeley.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_beep.c