public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: Mark Canter <marcus@vfxcomputing.com>
Cc: Takashi Iwai <tiwai@suse.de>,
	Pierre Ossman <drzeus-list@drzeus.cx>,
	Andrew Morton <akpm@osdl.org>,
	nish.aravamudan@gmail.com, linux-kernel@vger.kernel.org,
	alsa-devel@lists.sourceforge.net
Subject: Re: [Alsa-devel] Re: intel 8x0 went silent in 2.6.11
Date: Tue, 08 Mar 2005 22:02:52 -0500	[thread overview]
Message-ID: <1110337373.7123.4.camel@mindpipe> (raw)
In-Reply-To: <Pine.LNX.4.62.0503082050270.3821@krusty.vfxcomputing.com>

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

On Tue, 2005-03-08 at 20:53 -0500, Mark Canter wrote:
> I think I've gone through every possible value here from asound.state to 
> each setting in KDE itself.  Still, the only sound that works is the one 
> coming from line-out, without the port replicator, no sound exists 
> whatsoever.  Both of the below controls are set to false in asound.state 
> and cooresponding KDE settings in kmix.
> 
> I think the concern becomes though, regardless of what kde was doing after 
> the fact, this condition didn't exits in <= 2.6.10 when no other 
> applications where changed around it.

If you revert both the attached patches, does it work?

They are against alsa CVS, so to back these patches out from your 2.6.11
tree do this:

  cd linux-2.6.11/sound/pci/ac97
  patch -p0 -R < ac97-2.patch
  patch -p0 -R < ac97.patch

Lee





[-- Attachment #2: ac97-2.patch --]
[-- Type: text/x-patch, Size: 579 bytes --]

Index: ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- ac97_patch.c	17 Jan 2005 13:47:20 -0000	1.69
+++ ac97_patch.c	20 Jan 2005 11:43:19 -0000	1.70
@@ -1113,6 +1113,7 @@
 	switch (subid) {
 	case 0x103c0890: /* HP nc6000 */
 	case 0x103c006d: /* HP nx9105 */
+	case 0x17340088: /* FSC Scenic-W */
 		/* enable headphone jack sense */
 		snd_ac97_update_bits(ac97, AC97_AD_JACK_SPDIF, 1<<11, 1<<11);
 		break;

[-- Attachment #3: ac97.patch --]
[-- Type: text/x-patch, Size: 1379 bytes --]

Index: ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- ac97_patch.c	11 Jan 2005 15:57:20 -0000	1.68
+++ ac97_patch.c	17 Jan 2005 13:47:20 -0000	1.69
@@ -1107,13 +1107,25 @@
 #endif
 };
 
+static void check_ad1981_hp_jack_sense(ac97_t *ac97)
+{
+	u32 subid = ((u32)ac97->subsystem_vendor << 16) | ac97->subsystem_device;
+	switch (subid) {
+	case 0x103c0890: /* HP nc6000 */
+	case 0x103c006d: /* HP nx9105 */
+		/* enable headphone jack sense */
+		snd_ac97_update_bits(ac97, AC97_AD_JACK_SPDIF, 1<<11, 1<<11);
+		break;
+	}
+}
+
 int patch_ad1981a(ac97_t *ac97)
 {
 	patch_ad1881(ac97);
 	ac97->build_ops = &patch_ad1981a_build_ops;
 	snd_ac97_update_bits(ac97, AC97_AD_MISC, AC97_AD198X_MSPLT, AC97_AD198X_MSPLT);
 	ac97->flags |= AC97_STEREO_MUTES;
-	snd_ac97_update_bits(ac97, AC97_AD_JACK_SPDIF, 1<<11, 1<<11); /* HP jack sense */
+	check_ad1981_hp_jack_sense(ac97);
 	return 0;
 }
 
@@ -1144,7 +1156,7 @@
 	ac97->build_ops = &patch_ad1981b_build_ops;
 	snd_ac97_update_bits(ac97, AC97_AD_MISC, AC97_AD198X_MSPLT, AC97_AD198X_MSPLT);
 	ac97->flags |= AC97_STEREO_MUTES;
-	snd_ac97_update_bits(ac97, AC97_AD_JACK_SPDIF, 1<<11, 1<<11); /* HP jack sense */
+	check_ad1981_hp_jack_sense(ac97);
 	return 0;
 }

  reply	other threads:[~2005-03-09  3:03 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-03 12:51 intel 8x0 went silent in 2.6.11 Pierre Ossman
2005-03-03 17:45 ` Nish Aravamudan
2005-03-03 18:46   ` Mark Canter
2005-03-03 18:52     ` [Alsa-devel] " Lee Revell
2005-03-03 19:06       ` Mark Canter
2005-03-03 19:09         ` Lee Revell
     [not found]           ` <Pine.LNX.4.62.0503031410450.19015@krusty.vfxcomputing.com>
2005-03-03 19:22             ` Lee Revell
     [not found]             ` <29495f1d050303114379ab96b5@mail.gmail.com>
2005-03-03 19:47               ` Lee Revell
2005-03-03 20:33           ` Mark Canter
2005-03-03 23:49             ` Andrew Morton
2005-03-04  0:37               ` Pierre Ossman
2005-03-04 21:16                 ` Pierre Ossman
2005-03-05 19:00                   ` Lee Revell
2005-03-07 20:13                     ` Pierre Ossman
2005-03-07 20:26                       ` Takashi Iwai
2005-03-07 13:50                   ` Takashi Iwai
2005-03-07 20:16                     ` Pierre Ossman
2005-03-07 20:21                       ` Takashi Iwai
2005-03-08  1:10                         ` Pierre Ossman
2005-03-08 11:53                           ` Takashi Iwai
2005-03-08 12:46                             ` Pierre Ossman
2005-03-09  1:53                             ` Mark Canter
2005-03-09  3:02                               ` Lee Revell [this message]
2005-03-04  2:50               ` Mark Canter
2005-03-04  5:13           ` Jeff Garzik
2005-03-04 18:02             ` Lee Revell
2005-03-03 19:42         ` Nish Aravamudan
2005-03-04 20:40       ` Bill Davidsen
2005-03-04 20:44         ` Lee Revell
2005-03-04 20:44         ` Mark Canter
2005-03-04  0:36   ` Pierre Ossman
2005-03-04 20:36   ` Bill Davidsen
2005-03-04 21:06     ` Lee Revell

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=1110337373.7123.4.camel@mindpipe \
    --to=rlrevell@joe-job.com \
    --cc=akpm@osdl.org \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=drzeus-list@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcus@vfxcomputing.com \
    --cc=nish.aravamudan@gmail.com \
    --cc=tiwai@suse.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox