* Re: 2.6.12-rc3-mm3: ALSA broken ?
[not found] ` <1115594680l.7540l.0l@werewolf.able.es>
@ 2005-05-26 7:18 ` Andrew Morton
2005-05-26 15:55 ` Lee Revell
2005-05-27 6:54 ` J.A. Magallon
0 siblings, 2 replies; 3+ messages in thread
From: Andrew Morton @ 2005-05-26 7:18 UTC (permalink / raw)
To: J.A. Magallon; +Cc: alsa-devel
"J.A. Magallon" <jamagallon@able.es> wrote:
>
>
> On 05.08, J.A. Magallon wrote:
> >
> > On 05.05, Andrew Morton wrote:
> > >
> > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.12-rc3/2.6.12-rc3-mm3/
> > >
> > > - device mapper updates
> > >
> > > - more UML updates
> > >
> > > - -mm seems unusually stable at present.
> > >
> >
> > Ehem, is ALSA broken ?
> >
> > I can't spread stereo output to 4 channel. More specific, I can't switch
> > one of my female jacks between in and out.
> >
> > Long explanation: I have an
> >
> > 00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
> >
> > It has three outputs. One is always output, for normal stereo or front in 4
> > channel. One other is LineIn/Back-for-4-channel. And the third is
> > Mic/Bass-Center.
> >
> > In 2.6.11 I have two
> > toggles in ALSA: 'Spread front to center...' and 'surround jack as input'
> > Adjusting both I could get to duplicate the output in the Back jack.
> > In 2.6.12-rc3-mm3 there is no way to get this working.
> >
>
> I have just tested in 2.6.12-rc4 and works fine. I even feed the stereo
> signal to the 6 channels, so 4 go to my desktop speaker system and one
> other pair to may home stereo.
>
> Something is broken in -mm wrt ALSA. If you need me to test some specific
> version, pleas just ask.
>
> Side note: trying to load settings from rc4 in -mm says:
>
> alsactl: set_control:930: warning: name mismatch (Surround Jack as Input/Surround Jack Mode) for control #42
> alsactl: set_control:932: warning: index mismatch (0/0) for control #42
> alsactl: set_control:1030: bad control.42.value type
>
Could we have an update on this please? Do these problems persist in
2.6.12-rc5 and/or 2.6.12-rc5-mm1?
Thanks.
-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Re: 2.6.12-rc3-mm3: ALSA broken ?
2005-05-26 7:18 ` 2.6.12-rc3-mm3: ALSA broken ? Andrew Morton
@ 2005-05-26 15:55 ` Lee Revell
2005-05-27 6:54 ` J.A. Magallon
1 sibling, 0 replies; 3+ messages in thread
From: Lee Revell @ 2005-05-26 15:55 UTC (permalink / raw)
To: Andrew Morton; +Cc: J.A. Magallon, alsa-devel
On Thu, 2005-05-26 at 00:18 -0700, Andrew Morton wrote:
> "J.A. Magallon" <jamagallon@able.es> wrote:
>
> > > Ehem, is ALSA broken ?
> > >
> > > I can't spread stereo output to 4 channel. More specific, I can't switch
> > > one of my female jacks between in and out.
> > >
You are using alsamixer and not some GUI mixer, right? There were
recently some changes to the ALSA mixer API and AFAIK none of the GUI
mixers have caught up yet.
> > Side note: trying to load settings from rc4 in -mm says:
> >
> > alsactl: set_control:930: warning: name mismatch (Surround Jack as Input/Surround Jack Mode) for control #42
> > alsactl: set_control:932: warning: index mismatch (0/0) for control #42
> > alsactl: set_control:1030: bad control.42.value type
> >
These are harmless, it's just telling you that because control #42 was
renamed from "Surround Jack as Input" to "Surround Jack Mode". Looks
like it was changed from a boolean to an enumerated control.
Lee
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.6.12-rc3-mm3: ALSA broken ?
2005-05-26 7:18 ` 2.6.12-rc3-mm3: ALSA broken ? Andrew Morton
2005-05-26 15:55 ` Lee Revell
@ 2005-05-27 6:54 ` J.A. Magallon
1 sibling, 0 replies; 3+ messages in thread
From: J.A. Magallon @ 2005-05-27 6:54 UTC (permalink / raw)
To: Andrew Morton; +Cc: alsa-devel, Lista Linux-Kernel
On 05.26, Andrew Morton wrote:
> "J.A. Magallon" <jamagallon@able.es> wrote:
> >
> >
> > On 05.08, J.A. Magallon wrote:
> > >
> > > On 05.05, Andrew Morton wrote:
> > > >
> > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.12-rc3/2.6.12-rc3-mm3/
> > > >
> > > > - device mapper updates
> > > >
> > > > - more UML updates
> > > >
> > > > - -mm seems unusually stable at present.
> > > >
> > >
> > > Ehem, is ALSA broken ?
> > >
> > > I can't spread stereo output to 4 channel. More specific, I can't switch
> > > one of my female jacks between in and out.
> > >
> > > Long explanation: I have an
> > >
> > > 00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
> > >
> > > It has three outputs. One is always output, for normal stereo or front in 4
> > > channel. One other is LineIn/Back-for-4-channel. And the third is
> > > Mic/Bass-Center.
> > >
> > > In 2.6.11 I have two
> > > toggles in ALSA: 'Spread front to center...' and 'surround jack as input'
> > > Adjusting both I could get to duplicate the output in the Back jack.
> > > In 2.6.12-rc3-mm3 there is no way to get this working.
> > >
> >
>
> Could we have an update on this please? Do these problems persist in
> 2.6.12-rc5 and/or 2.6.12-rc5-mm1?
>
Finally I got it. There was a buglet in original patch. Working patch follows.
Verified in... just my box (intel onboard sound). Against rc5-mm1.
--- 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
@@ -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)
@@ -1598,10 +1598,21 @@
}
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)
};
+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, 1 << 9,
+ is_shared_micin(ac97) ? 0 : 1 << 9);
+}
+
static int patch_ad1985_specific(ac97_t *ac97)
{
int err;
@@ -1617,7 +1624,7 @@
#ifdef CONFIG_PM
.resume = ad18xx_resume,
#endif
- .update_jacks = ad1888_update_jacks,
+ .update_jacks = ad1985_update_jacks,
};
int patch_ad1985(ac97_t * ac97)
--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
werewolf!able!es \ It's better when it's free
Mandriva Linux release 2006.0 (Cooker) for i586
Linux 2.6.11-jam20 (gcc 4.0.0 (4.0.0-3mdk for Mandriva Linux release 2006.0))
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-27 6:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20050504221057.1e02a402.akpm@osdl.org>
[not found] ` <1115510869l.7472l.0l@werewolf.able.es>
[not found] ` <1115594680l.7540l.0l@werewolf.able.es>
2005-05-26 7:18 ` 2.6.12-rc3-mm3: ALSA broken ? Andrew Morton
2005-05-26 15:55 ` Lee Revell
2005-05-27 6:54 ` J.A. Magallon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox