All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "J.A. Magallon" <jamagallon@able.es>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.12-rc3-mm3: ALSA broken ?
Date: Tue, 17 May 2005 14:20:12 +0200	[thread overview]
Message-ID: <s5hll6eoxhf.wl@alsa2.suse.de> (raw)
In-Reply-To: <1116331359l.7364l.0l@werewolf.able.es>

At Tue, 17 May 2005 12:02:39 +0000,
J.A. Magallon wrote:
> 
> 
> On 05.13, Takashi Iwai wrote:
> > At Thu, 12 May 2005 22:27:16 +0000,
> > J.A. Magallon wrote:
> > > 
> > > Just a note: I need also to uncheck the 'Center/LFE jack as mic'
> > > switch.
> > 
> > Oh, it shouldn't be there :)
> > Try the patch below.  I'll commit it to ALSA tree.
> > 
> > 
> > > And a question. The output level depends on the
> > > Line _input_ volume. Higher the volume, lower the output level on
> > > all channels.
> > > This happens only if I 'Spread Front to Sourround and Center/LFE'.
> > > Should not the line volume be useless if the jack is set for output ?
> > > Or does its meaning change then...
> > 
> > Hmm, it's weird.  I don't see the signal routing via line-in control
> > to outputs in AD1985 datasheet...
> > 
> > 
> > Takashi
> > 
> > 
> > --- linux/sound/pci/ac97/ac97_patch.c	11 May 2005 11:00:17 -0000	1.82
> > +++ linux/sound/pci/ac97/ac97_patch.c	13 May 2005 09:35:19 -0000
> > @@ -1598,7 +1598,6 @@
> >  }
> >  
> >  static const snd_kcontrol_new_t snd_ac97_ad1985_controls[] = {
> > -	AC97_SINGLE("Center/LFE Jack as Mic", AC97_AD_SERIAL_CFG, 9, 1, 0),
> >  	AC97_SINGLE("Exchange Center/LFE", AC97_AD_SERIAL_CFG, 3, 1, 0)
> >  };
> >  
> 
> If I apply this, the control disappears, but I can't get any sound in that
> ouput even if I put ALSA in 6ch mode. It seems it defaults to 'on', and
> the mode switch '2ch -> 4ch -> 6ch' does not touch it. So it does not look
> like a redundant control.
> 
> Example: go into 4ch mode. Check this control. Then switch to 6ch mode.
> The Center jack has no sound (it should, shouldn't ?). Check it and voilà.
> It looks that the logic in the channel selection needs to set this flag also...

Yep, you're right.  Try the patch below.


Takashi

--- linux/sound/pci/ac97/ac97_patch.c	13 May 2005 09:58:46 -0000	1.83
+++ linux/sound/pci/ac97/ac97_patch.c	17 May 2005 12:18:24 -0000
@@ -1526,13 +1526,8 @@
 		.get = snd_ac97_ad1888_downmix_get,
 		.put = snd_ac97_ad1888_downmix_put
 	},
-#if 0
-	AC97_SINGLE("Surround Jack as Input", AC97_AD_MISC, 12, 1, 0),
-	AC97_SINGLE("Center/LFE Jack as Input", AC97_AD_MISC, 11, 1, 0),
-#else
 	AC97_SURROUND_JACK_MODE_CTL,
 	AC97_CHANNEL_MODE_CTL,
-#endif
 };
 
 static int patch_ad1888_specific(ac97_t *ac97)
@@ -1601,6 +1596,18 @@
 	AC97_SINGLE("Exchange Center/LFE", AC97_AD_SERIAL_CFG, 3, 1, 0)
 };
 
+static void ad1985_update_jacks(ac97_t *ac97)
+{
+	/* shared Line-In */
+	snd_ac97_update_bits(ac97, AC97_AD_MISC, 1 << 12,
+			     is_shared_linein(ac97) ? 0 : 1 << 12);
+	/* shared Mic */
+	snd_ac97_update_bits(ac97, AC97_AD_MISC, 1 << 11,
+			     is_shared_micin(ac97) ? 0 : 1 << 11);
+	snd_ac97_update_bits(ac97, AC97_AD_SERIAL_CFG, 9 << 11,
+			     is_shared_micin(ac97) ? 0 : 9 << 11);
+}
+
 static int patch_ad1985_specific(ac97_t *ac97)
 {
 	int err;
@@ -1616,7 +1623,7 @@
 #ifdef CONFIG_PM
 	.resume = ad18xx_resume,
 #endif
-	.update_jacks = ad1888_update_jacks,
+	.update_jacks = ad1985_update_jacks,
 };
 
 int patch_ad1985(ac97_t * ac97)

  reply	other threads:[~2005-05-17 12:20 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-05  5:10 2.6.12-rc3-mm3 Andrew Morton
2005-05-05  7:08 ` 2.6.12-rc3-mm3 Richard A Nelson
2005-05-05 11:55 ` 2.6.12-rc3-mm3 Francois Romieu
2005-05-05 18:00   ` 2.6.12-rc3-mm3 Andrew Morton
2005-05-05 22:56     ` [patch linux-2.6.12-rc3-mm3 1/7] r8169: de-obfuscate supported PCI ID Francois Romieu
     [not found]       ` <20050505225905.GA18393@electric-eye.fr.zoreil.com>
     [not found]         ` <20050505230016.GB18393@electric-eye.fr.zoreil.com>
     [not found]           ` <20050505230154.GC18393@electric-eye.fr.zoreil.com>
     [not found]             ` <20050505230313.GD18393@electric-eye.fr.zoreil.com>
     [not found]               ` <20050505230418.GE18393@electric-eye.fr.zoreil.com>
2005-05-05 23:06                 ` [patch linux-2.6.12-rc3-mm3 7/7] r8169: cleanup (function args) Francois Romieu
2005-05-06 16:03       ` [patch linux-2.6.12-rc3-mm3 1/7] r8169: de-obfuscate supported PCI ID Jon Mason
2005-05-06 16:37         ` Francois Romieu
2005-05-15 22:14       ` Jeff Garzik
2005-05-17 20:48         ` Francois Romieu
2005-05-05 12:39 ` 2.6.12-rc3-mm3 Rafael J. Wysocki
2005-05-05 12:58 ` 2.6.12-rc3-mm3 Rafael J. Wysocki
2005-05-05 22:47   ` 2.6.12-rc3-mm3: Kernel BUG at "mm/slab.c":1219 Rafael J. Wysocki
2005-05-05 14:57 ` 2.6.12-rc3-mm3 Valdis.Kletnieks
2005-05-05 15:22   ` 2.6.12-rc3-mm3 Adrian Bunk
2005-05-05 15:49     ` 2.6.12-rc3-mm3 Valdis.Kletnieks
2005-05-05 16:44       ` 2.6.12-rc3-mm3 Adrian Bunk
2005-05-05 14:59 ` 2.6.12-rc3-mm3 Borislav Petkov
2005-05-08  0:07 ` 2.6.12-rc3-mm3: ALSA broken ? J.A. Magallon
2005-05-08 23:24   ` J.A. Magallon
2005-05-11 14:23     ` Takashi Iwai
2005-05-12 22:27       ` J.A. Magallon
2005-05-13  9:57         ` Takashi Iwai
2005-05-17 12:02           ` J.A. Magallon
2005-05-17 12:20             ` Takashi Iwai [this message]
2005-05-17 22:39               ` J.A. Magallon
2005-05-18 13:39                 ` Takashi Iwai
2005-05-26 23:51                   ` J.A. Magallon
2005-05-27  9:41                     ` Takashi Iwai
2005-05-27 21:18                       ` J.A. Magallon
2005-05-30 13:37                         ` Takashi Iwai
2005-05-30 14:30                           ` J.A. Magallon
2005-05-30 15:21                             ` Takashi Iwai
2005-05-30 17:58                           ` Takashi Iwai
2005-05-27 14:52                     ` Lee Revell
2005-05-28  0:11                       ` J.A. Magallon
2005-05-30 13:26                         ` Takashi Iwai
2005-05-26  7:18     ` Andrew Morton
2005-05-26 15:55       ` Lee Revell
2005-05-27  6:54       ` J.A. Magallon

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=s5hll6eoxhf.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=jamagallon@able.es \
    --cc=linux-kernel@vger.kernel.org \
    /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.