Skip to contentSkip to conversation

: Cannot listen to line-in and aux at the same time

ALSA - driver 0000410 [email protected] 1 participant 1 message Sep 29, 2004

lore
Share & tools
lore
#0 lore raw

A BUGNOTE has been added to this bug.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000410
======================================================================

Reported By:                skamp
Assigned To:                tiwai
======================================================================
Project:                    ALSA - driver
Bug ID:                     410
Category:                   PCI - ice1724
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     feedback
Distribution:               LFS 5.1.1, BLFS 5.1
Kernel Version:             2.4.26
======================================================================
Date Submitted:             07-27-2004 18:48 CEST
Last Modified:              09-29-2004 07:39 CEST

======================================================================
Summary: Cannot listen to line-in and aux at the same time
Description:
I cannot listen to sound coming from line-in and aux at the same time, since I have to switch between either one of them with the "capture" switch.
I can't listen to both line-in or aux and pcm, for that matter, since I have to switch H/W and H/W 1 from PCM Out to H/W In 0 and vice versa.

I have my TV plugged to line-in, and my DXR3 MPEG2 decoder plugged to aux, and I found it convenient with my former sound card (Sound Blaster Live! with OSS drivers) to be able to listen to either source (TV, DVD or PCM) without unplugging my headphones or triggering any switch.
======================================================================

----------------------------------------------------------------------
tiwai - 07-30-2004 16:51 CEST
----------------------------------------------------------------------
Isn't it a hardware limitation?

----------------------------------------------------------------------
skamp - 08-01-2004 14:29 CEST
----------------------------------------------------------------------
How would I know? I can't believe a €80+ sound card wouldn't provide this feature anyway - if that's the case, then I've been really screwed...

----------------------------------------------------------------------
skamp - 08-01-2004 18:00 CEST
----------------------------------------------------------------------
OK, I just installed Windows Server 2003 in order to test Terratec's official drivers, and I found out what I expected: the drivers and control panel allow me to listen to as well as record from all sources (pcm, line-in, aux...), either each one separately or all of them simultaneously. I can actually select exactly which source(s) I want to listen to or record from. This is the expected feature set, and it works right out of the box.

I would like to know what is needed for bringing full support of this sound card to linux (via alsa, I guess): documentation from the manufacturer? time? motivation? money? more developers? user feedback? testing?

----------------------------------------------------------------------
tiwai - 08-02-2004 18:21 CEST
----------------------------------------------------------------------
AFAIK, some inputs are just a connection from AC97 codec. You can try to adjust Line, Aux, etc playback volumes and choose 'Mix' as the capture source, so that the mixed playback (passthru) signals on that ac97 chip is routed back to the capture.

----------------------------------------------------------------------
ungod - 09-28-2004 22:37 CEST
----------------------------------------------------------------------
This is fixed in the latest CVS (See bugnote 0000510 for details)

----------------------------------------------------------------------
tiwai - 09-28-2004 23:15 CEST
----------------------------------------------------------------------
Ok, then close this bug now.

----------------------------------------------------------------------
skamp - 09-29-2004 02:14 CEST
----------------------------------------------------------------------
I just installed alsa-* from CVS: the bug is NOT fixed. I still can't listen to both line-in AND sound coming from applications (line-out - I'm not talking about optical-out). Besides, line-in is now monophonic, although I can hear the sound in both speakers of my headphones. "amixer cset numid=24 on,off" (that's the "Capture switch") returns "values=off,on", and so does "amixer cset numid=24 off,off". The mixer (or driver, I don't know) is also very buggy (as you predicted); it took me about 15 minutes just to figure out how to hear sound coming from line-in at a reasonable volume.

----------------------------------------------------------------------
ungod - 09-29-2004 04:33 CEST
----------------------------------------------------------------------
Weird.

As far as I know, the Sky, Space and Universe cards ought to be identical at that point. In the latest CVS, the aureon driver should give you mixer control to Line/CD/AUX/Mic/AC97 (AC97 being line/CD/AUX/Mic mixed together) and a Mic boost.
In order to get both line, aux and wave sound; line, aux, ac97 and front should be unmuted and volumes set accordingly, and the H/W and H/W 1 should be PCM Out.

At least on my Space I can hear it all, and the line in sound is perfectly stereo.

But I see that it is actually not possible with the current drivers, to record the AC97 mixed sound without also hearing it on the front channels (the recorded sound should however only be the AC97 sound), but I probably change the way at which the AC97 is muted, so that only playback sound is muted (currently the AC97 chip itself is muted)

----------------------------------------------------------------------
ungod - 09-29-2004 05:05 CEST
----------------------------------------------------------------------
Well, I've made some changes, so that you may record while not listening. Strangely however, the capture volume for left and right are not identical, although the mixer claims so.

Well, I've uploaded a patch for the AC'97 mute, although I can't imagine this would solve you problem, if indeed it is a driver problem.

Patch description:

Summary: Fix AC97 master mute

Instead of muting the AC97 chip and thus eliminating the possibility of recording, muting is done by setting front playback to DAC only instead of DAC+AUX.

----------------------------------------------------------------------
skamp - 09-29-2004 05:47 CEST
----------------------------------------------------------------------
Still no luck. I've uploaded an updated version of aadebug's output, since I've moved to LFS-6.0 SVN since my first bugnote.

----------------------------------------------------------------------
ungod - 09-29-2004 07:05 CEST
----------------------------------------------------------------------
Strange. I suppose that the mixer actually gives you the possibility of setting the volume for Line in and AC97 etc.?! (you never know what goes wrong)

Maybe the Space and Sky ones just different on the AC97 point.

----------------------------------------------------------------------
skamp - 09-29-2004 07:20 CEST
----------------------------------------------------------------------
Yes, but with no effect.

----------------------------------------------------------------------
ungod - 09-29-2004 07:39 CEST
----------------------------------------------------------------------
Hmmm... Have you tried the commercial drivers from 4Front
(http://www.opensound.com/) - I base lots of my knowledge on how their drivers behave.
Anyway, the set a pin high on the board, I don't know what does, however, just for testing, you may wish to try the following tiny patch:

--- alsa-kernel.old/pci/ice1712/aureon.c 2004-09-29
07:36:38.000000000 +0200
+++ alsa-kernel.new/pci/ice1712/aureon.c 2004-09-29
07:37:17.000000000 +0200
@@ -186,6 +186,10 @@

        snd_ice1712_gpio_write(ice, tmp);
        udelay(3);
+       tmp |= (1 << 13);       /* Set GPIO13 - just for testing */
+       snd_ice1712_gpio_write(ice, tmp);
+       udelay(3);
+
        memset(&ice->spec.stac9744, 0, sizeof(ice->spec.stac9744));
        for (i=0; ac97_defaults[i] != (unsigned short)-1; i+=2)
                ice->spec.stac9744[(ac97_defaults[i]) >> 1] =

ac97_defaults[i+1];

Bug History
Date Modified Username Field Change
======================================================================

07-27-04 18:48 skamp          New Bug                                      
07-27-04 18:48 skamp          File Added: aadebug                          
07-27-04 18:48 skamp          Distribution              => LFS 5.1.1, BLFS 5.1
07-27-04 18:48 skamp          Kernel Version            => 2.4.26          
07-30-04 16:51 tiwai          Bugnote Added: 0001491                       
08-01-04 14:29 skamp          Bugnote Added: 0001515                       
08-01-04 18:00 skamp          Bugnote Added: 0001516                       
08-02-04 18:21 tiwai          Bugnote Added: 0001523                       
09-28-04 22:37 ungod          Bugnote Added: 0001958                       
09-28-04 23:15 tiwai          Bugnote Added: 0001959                       
09-28-04 23:15 tiwai          Assigned To               => tiwai           
09-28-04 23:15 tiwai          Resolution               open => fixed       
09-28-04 23:15 tiwai          Status                   new => resolved     
09-29-04 02:14 skamp          Bugnote Added: 0001963                       
09-29-04 02:14 skamp          Resolution               fixed => reopened   
09-29-04 02:14 skamp          Status                   resolved => feedback
09-29-04 02:15 skamp          Bug Monitored: skamp                         
09-29-04 04:33 ungod          Bugnote Added: 0001964                       
09-29-04 05:05 ungod          Bugnote Added: 0001965                       
09-29-04 05:05 ungod          File Added: aureon-ac97mute.diff                    
09-29-04 05:45 skamp          File Added: aadebug                          
09-29-04 05:47 skamp          Bugnote Added: 0001967                       
09-29-04 07:05 ungod          Bugnote Added: 0001968                       
09-29-04 07:20 skamp          Bugnote Added: 0001969                       
09-29-04 07:39 ungod          Bugnote Added: 0001970                       

======================================================================

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl