public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PC Beeps not working with HDA Intel module
@ 2010-06-26 11:25 Shérab
  2010-07-05  6:11 ` Takashi Iwai
  0 siblings, 1 reply; 12+ messages in thread
From: Shérab @ 2010-06-26 11:25 UTC (permalink / raw)
  To: Matthew Ranostay, Takashi Iwai, PeiSen Hou, matt.jared, andy.kopp,
	dan.d.kogan, Jaroslav Kysela, Wu Fengguang, Daniel T Chen,
	Lydia Wang, alsa-devel
  Cc: linux-kernel

Dear all,

The problem is on a computer with an HDA Intel sound card, Intel G45
DEVCTG chip and appears will all version s of the kernel.

Running e.g.
beep 440
produces a beep whose audible frequency is very low, definitely not 440
Hz.

However, it is worth notiing that grub is able to produce a beep of the
right frequency at boot time.

Can this problem be fixed ?

Should you need any additional bit of information or testing, please ask.

Many thanks in advance for your help,
Shérab.

^ permalink raw reply	[flat|nested] 12+ messages in thread
* re: PC Beeps not working with HDA Intel module
@ 2010-07-05 11:20 Daniel J Blueman
  2010-08-02 18:14 ` Shérab
  0 siblings, 1 reply; 12+ messages in thread
From: Daniel J Blueman @ 2010-07-05 11:20 UTC (permalink / raw)
  To: Shérab; +Cc: Linux Kernel, Takashi Iwai

On Jun 26, 12:40 pm, Shérab <Sebastien.Hinderer@ens-lyon.org> wrote:
> Dear all,
>
> The problem is on a computer with an HDA Intel sound card, Intel G45
> DEVCTG chip and appears will all version s of the kernel.
>
> Running e.g.
> beep 440
> produces a beep whose audible frequency is very low, definitely not 440
> Hz.
>
> However, it is worth notiing that grub is able to produce a beep of the
> right frequency at boot time.
>
> Can this problem be fixed ?
>
> Should you need any additional bit of information or testing, please ask.

I was finding the same with my Dell Studio 1557.

It may be worth using some printk calls [1] showing what frequency
value is sent to the codec, then checking with the codec datasheet -
we'll need to know which one, eg from 'dmesg' or 'alsa-info.sh' (from
http://www.alsa-project.org/alsa-info.sh).

We'll probably need to check the configuration registers of the beep
widget to check what divider it's using...

Thanks,
  Daniel

--- [1]

diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c
index 29714c8..98d0d6c 100644
--- a/sound/pci/hda/hda_beep.c
+++ b/sound/pci/hda/hda_beep.c
@@ -69,6 +69,7 @@ static int beep_linear_tone(struct hda_beep *beep, int hz)
 		hz /= DIGBEEP_HZ_STEP;
 		hz = 255 - hz;
 	}
+	printk(KERN_ERR "HDA beep: linear value %d\n", hz);
 	return hz;
 }

@@ -87,6 +88,7 @@ static int beep_standard_tone(struct hda_beep *beep, int hz)
 		return 0xff;
 	if (hz <= 0)
 		return 1;
+	printk(KERN_ERR "HDA beep: standard value %d\n", hz);
 	return hz;
 }

-- 
Daniel J Blueman

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-08-03 11:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-26 11:25 PC Beeps not working with HDA Intel module Shérab
2010-07-05  6:11 ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2010-07-05 11:20 Daniel J Blueman
2010-08-02 18:14 ` Shérab
2010-08-02 21:41   ` Daniel J Blueman
2010-08-02 21:44     ` Takashi Iwai
2010-08-03  8:17     ` Shérab
2010-08-03  9:02       ` Daniel J Blueman
2010-08-03 10:09         ` Daniel J Blueman
2010-08-03 10:59           ` Takashi Iwai
2010-08-03 11:42             ` Shérab
2010-08-03 11:40           ` Shérab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox