ALSA: hda - Fix digital beep tone calculation
authorTakashi Iwai <tiwai@suse.de>
Tue, 19 May 2009 10:50:04 +0000 (12:50 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 19 May 2009 10:54:55 +0000 (12:54 +0200)
commitfa7979663190240b838ab8c8bad7f59e618bf77c
treee008dbd603562a54300ed8d189bd9bb59b5aa697
parent4abc1cc2f9fe4b6bb3acc1d78e2c15af47b8133d
ALSA: hda - Fix digital beep tone calculation

The digital beep tone is calculated in two different ways depending
on the codec chip.  The standard one is using a divider, and another
one is a linear tone for IDT/STAC codecs.  Currently, only the
latter type is used for all codecs, which resulted in a wrong tone
pitch.

This patch adds the calculation of the standard HD-audio type.
Also clean-up the fields in hda_beep struct.

Reference: bko#13162
http://bugzilla.kernel.org/show_bug.cgi?id=13162

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_beep.c
sound/pci/hda/hda_beep.h
sound/pci/hda/patch_sigmatel.c