* Strange Problem with snd-hda-intel
@ 2012-05-08 8:41 Frank Maik Kittelmann
0 siblings, 0 replies; 3+ messages in thread
From: Frank Maik Kittelmann @ 2012-05-08 8:41 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 1226 bytes --]
We have some strange behavior in our audio application using the ALC 888
hardware in ubuntu 10.10 with the hda-intel driver . Basically the main
problem seems to be a buffer or memory management issue. Once a playback
is stopped the very last sample is repeated forever, independently from
sampling rate or sound file format. This sample leads to a constant DC
voltage after the DA converters.
We already tried the following steps:
1.) we changed a line in hda_intel.c to reset the fifo
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1797,7 +1797,7 @@ static int azx_pcm_hw_free(struct snd_pcm_substream *substream)
/* reset BDL address */
azx_sd_writel(azx_dev, SD_BDLPL, 0);
azx_sd_writel(azx_dev, SD_BDLPU, 0);
- azx_sd_writel(azx_dev, SD_CTL, 0);
+ azx_stream_reset(chip, azx_dev);
azx_dev->bufsize = 0;
azx_dev->period_bytes = 0;
azx_dev->format_val = 0;
2.) we set 2 parameters in the .config file before kernel compiling
CONFIG_SND_HDA_POWER_SAVE=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
Both solutions didn´t work for us - still same problem. Has anyone
another idea how to solve this?
Would be great if we could fix this.
Frank
[-- Attachment #2: ALC888 Problem.pdf --]
[-- Type: application/pdf, Size: 1400610 bytes --]
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Strange Problem with snd-hda-intel
@ 2012-05-08 10:52 Frank Maik Kittelmann
2012-05-08 14:56 ` Clemens Ladisch
0 siblings, 1 reply; 3+ messages in thread
From: Frank Maik Kittelmann @ 2012-05-08 10:52 UTC (permalink / raw)
To: alsa-devel
We have some strange behavior in our audio application using the Realtek
ALC 888 hardware on a Jetway JNC96FL-525-LF mainboard (Intel Atom
D525+NM10) in ubuntu 10.10 (2.6.35-32-generic-pae) with the hda-intel
driver (ALSA version 1.0.23). Sound output is done by mpd (0.17 alpha)
via hw:0,1 (SPDIF). Basically the main problem seems to be a buffer or
memory management issue. Once a playback is stopped the very last sample
is repeated forever, independently from sampling rate or sound file
format. This sample leads to a constant DC voltage after the DA
converters. If we mute the SPDIF Output using the ALSAMIXER, there is no
S/Pdif signal, hence no DC. By demuting again, the same sample appears
again. The annoying thing is, that this sample always stays for a while
if we play another sound file. If the sample has been at a high value,
this leads to a loud noise in the speaker.
We already tried the following steps to solve the problem:
1.) we changed a line in hda_intel.c to reset the fifo
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1797,7 +1797,7 @@ static int azx_pcm_hw_free(struct
snd_pcm_substream *substream)
/* reset BDL address */
azx_sd_writel(azx_dev, SD_BDLPL, 0);
azx_sd_writel(azx_dev, SD_BDLPU, 0);
- azx_sd_writel(azx_dev, SD_CTL, 0);
+ azx_stream_reset(chip, azx_dev);
azx_dev->bufsize = 0;
azx_dev->period_bytes = 0;
azx_dev->format_val = 0;
2.) we set 2 parameters in the .config file before kernel compiling
CONFIG_SND_HDA_POWER_SAVE=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
Both solutions didn´t work for us - still same problem. Has anyone
another idea how to solve this?
Would be great if we could fix this.
Frank
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Strange Problem with snd-hda-intel
2012-05-08 10:52 Frank Maik Kittelmann
@ 2012-05-08 14:56 ` Clemens Ladisch
0 siblings, 0 replies; 3+ messages in thread
From: Clemens Ladisch @ 2012-05-08 14:56 UTC (permalink / raw)
To: Frank Maik Kittelmann; +Cc: alsa-devel
Frank Maik Kittelmann wrote:
> Once a playback is stopped the very last sample is repeated forever.
> The annoying thing is, that this sample always stays for a while
> if we play another sound file. If the sample has been at a high value,
> this leads to a loud noise in the speaker.
Software cannot output two streams at the same time, so this must be
a hardware problem. If I'd had to guess, I'd point at the NM10. Have
you tested with another mainboard?
Regards,
Clemens
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-08 14:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-08 8:41 Strange Problem with snd-hda-intel Frank Maik Kittelmann
-- strict thread matches above, loose matches on Subject: below --
2012-05-08 10:52 Frank Maik Kittelmann
2012-05-08 14:56 ` Clemens Ladisch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.