From: Takashi Iwai Subject: Re: No sound on ATI IXP with Realtek ALC655 rev0 (MSI Megabook S270) Date: Fri, 02 Sep 2005 12:04:28 +0200 Message-ID: References: <200508301149.46320.rene@exactcode.de> <20050830122423.GC4295@rama.de.gnumonks.org> <20050830130652.GI4295@rama.de.gnumonks.org> <20050830135940.GA4221@rama.de.gnumonks.org> <20050830143635.GH4221@rama.de.gnumonks.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20050830143635.GH4221@rama.de.gnumonks.org> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Harald Welte Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 30 Aug 2005 16:36:36 +0200, Harald Welte wrote: > > On Tue, Aug 30, 2005 at 04:12:41PM +0200, Takashi Iwai wrote: > > At Tue, 30 Aug 2005 15:59:40 +0200, > > Harald Welte wrote: > > > > > > > Could you try to tune this manually by writing like > > > > # echo 7a 40b2 > /proc/asound/card0/codec97#0/ac97#0-0+regs > > > > as root? > > > > > > done. doesn't change anything. I again re-tried with EA on/off and > > > headphones plugged in and not plugged in. It still behaves exactly like > > > the original kernel. > > > > It's a pity. Just to be sure, compare the value of 0x7a in > > /proc/asound/card0/codec97#0/ac97#0-0+regs file after the procedure > > above. > > yes, I did that. the register has been set to the value I wrote to it. > > > I have no other clue yet... > > No problem, it's not all that important... I didn't buy the device > because of it's lousy notebook speakers anyway ;) Yesterday there was a bugreport, possibly about the same device as you have. Could you try the patch below? The point of the patch is to turn on reg 0x74 0x0800. Takashi Index: alsa-kernel/pci/ac97/ac97_codec.c =================================================================== RCS file: /home/tiwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v retrieving revision 1.185 diff -u -r1.185 ac97_codec.c --- alsa-kernel/pci/ac97/ac97_codec.c 16 Aug 2005 16:02:14 -0000 1.185 +++ alsa-kernel/pci/ac97/ac97_codec.c 1 Sep 2005 20:01:38 -0000 @@ -112,6 +112,7 @@ { 0x414c4723, 0xffffffff, "ALC650F", NULL, NULL }, /* already patched */ { 0x414c4720, 0xfffffff0, "ALC650", patch_alc650, NULL }, { 0x414c4760, 0xfffffff0, "ALC655", patch_alc655, NULL }, +{ 0x414c4781, 0xffffffff, "ALC658D", NULL, NULL }, /* already patched */ { 0x414c4780, 0xfffffff0, "ALC658", patch_alc655, NULL }, { 0x414c4790, 0xfffffff0, "ALC850", patch_alc850, NULL }, { 0x414c4730, 0xffffffff, "ALC101", NULL, NULL }, Index: alsa-kernel/pci/ac97/ac97_id.h =================================================================== RCS file: /home/tiwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_id.h,v retrieving revision 1.12 diff -u -r1.12 ac97_id.h --- alsa-kernel/pci/ac97/ac97_id.h 3 Jan 2005 22:02:45 -0000 1.12 +++ alsa-kernel/pci/ac97/ac97_id.h 1 Sep 2005 20:06:26 -0000 @@ -52,6 +52,7 @@ #define AC97_ID_ALC650F 0x414c4723 #define AC97_ID_ALC655 0x414c4760 #define AC97_ID_ALC658 0x414c4780 +#define AC97_ID_ALC658D 0x414c4781 #define AC97_ID_ALC850 0x414c4790 #define AC97_ID_YMF753 0x594d4803 #define AC97_ID_VT1616 0x49434551 Index: alsa-kernel/pci/ac97/ac97_patch.c =================================================================== RCS file: /home/tiwai/cvs/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.94 diff -u -r1.94 ac97_patch.c --- alsa-kernel/pci/ac97/ac97_patch.c 31 Aug 2005 16:29:53 -0000 1.94 +++ alsa-kernel/pci/ac97/ac97_patch.c 1 Sep 2005 20:02:47 -0000 @@ -2134,7 +2134,13 @@ { unsigned int val; - ac97->spec.dev_flags = (ac97->id == 0x414c4780); /* ALC658 */ + if (ac97->id == AC97_ID_ALC658D) { + ac97->spec.dev_flags = 1; /* ALC658 */ + if ((snd_ac97_read(ac97, AC97_ALC650_REVISION) & 0x3f) == 2) { + ac97->id = AC97_ID_ALC658D; + ac97->spec.dev_flags = 2; + } + } ac97->build_ops = &patch_alc655_ops; @@ -2143,7 +2149,7 @@ /* adjust default values */ val = snd_ac97_read(ac97, 0x7a); /* misc control */ - if (ac97->id == 0x414c4780) /* ALC658 */ + if (ac97->spec.dev_flags) /* ALC658 */ val &= ~(1 << 1); /* Pin 47 is spdif input pin */ else { /* ALC655 */ if (ac97->subsystem_vendor == 0x1462 && @@ -2164,6 +2170,11 @@ /* full DAC volume */ snd_ac97_write_cache(ac97, AC97_ALC650_SURR_DAC_VOL, 0x0808); snd_ac97_write_cache(ac97, AC97_ALC650_LFE_DAC_VOL, 0x0808); + + /* update undocumented bit... */ + if (ac97->id == AC97_ID_ALC658D) + snd_ac97_update_bits(ac97, 0x74, 0x0800, 0x0800); + return 0; } ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf