All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andrey Liakhovets" <liakh@dol.ru>
To: alsa-devel@lists.sourceforge.net
Subject: Re: [Openchrome-users] via epia boards sound quality
Date: Sat, 19 Aug 2006 01:02:09 +0400	[thread overview]
Message-ID: <web-171065599@cgp.dol.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 1772 bytes --]

This letter is continuation of the thread in Openchrome-users:
http://wiki.openchrome.org/pipermail/openchrome-users/2006-May/001193.html
http://wiki.openchrome.org/pipermail/openchrome-users/2006-May/001199.html
http://wiki.openchrome.org/pipermail/openchrome-users/2006-May/001247.html
http://wiki.openchrome.org/pipermail/openchrome-users/2006-July/001456.html

I am sorry for continuing this thread but there is good news.

In short, the attached 1-line patch against alsa 1.0.11 solves the problem
(for our VIA EPIA SP8000).

Further details:
1) in our lab, we failed in getting bad sound on a running system,
       despite a long and intensive heating;
2) we have succeded in reproducing the problem at the system start (with a
       probability of about 2/3) with a pre-cooled sound codec chip;
3) we have succeded in reproducing the problem on the system running Linux
       by cutting analog power supply from the codec, cooling the codec and
       reattaching analog power;
4) on wire, the problem looks like undervoltage of codec analog power
       (2V or less instead of 5V): meanwhile the codec tries to consume
       about 200mA (instead of <40mA), and the voltage regulator chip begins
       (from 100mA) reducing the voltage;
5) analysis of the situation with WinXP shows that the WinXP sound driver loading
       brings the codec analog voltage (and sound) to norm, and this state
       is tolerant to actions described under (3);
6) analysis of the WinXP sound driver loading allowed us to detect that very bit,
       the set of which normalizes the codec's analog power consumption;
7) a check with Linux has confirmed this.

If necessary, I can give more details or upload them on our ftp.

Andrey Liakhovets

[-- Attachment #2: alsa-kernel-1.0.11-rover-ac97-vt1617a.patch --]
[-- Type: application/octet-stream, Size: 536 bytes --]

diff -Naur a/pci/ac97/ac97_patch.c b/pci/ac97/ac97_patch.c
--- a/pci/ac97/ac97_patch.c	2006-04-12 00:46:47 +0400
+++ b/pci/ac97/ac97_patch.c	2006-07-26 10:15:58 +0400
@@ -2742,6 +2742,7 @@
  */
 int patch_vt1617a(struct snd_ac97 * ac97)
 {
+	snd_ac97_write_cache(ac97, 0x5c, 0x20);	/* bring analog power consumption to normal, like WinXP driver for EPIA SP */
 	ac97->ext_id |= AC97_EI_SPDIF;	/* force the detection of spdif */
 	ac97->rates[AC97_RATES_SPDIF] = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000;
 	return 0;




[-- Attachment #3: Type: text/plain, Size: 373 bytes --]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #4: Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel

             reply	other threads:[~2006-08-18 21:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-18 21:02 Andrey Liakhovets [this message]
2006-08-19 12:24 ` [Openchrome-users] via epia boards sound quality James Courtier-Dutton
  -- strict thread matches above, loose matches on Subject: below --
2006-08-20  8:02 Andrey Liakhovets
2006-08-20 12:14 ` James Courtier-Dutton
2006-08-28 14:38   ` Thierry Vignaud
2006-08-28 14:51     ` Takashi Iwai
2006-08-29 11:39       ` James Courtier-Dutton
2006-08-29 11:51         ` Jaroslav Kysela
2006-08-29 12:17       ` James Courtier-Dutton
2006-08-29 13:23         ` Takashi Iwai
2006-08-20 20:15 Andrey Liakhovets

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=web-171065599@cgp.dol.ru \
    --to=liakh@dol.ru \
    --cc=alsa-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.