Skip to contentSkip to conversation

No line in 2 or aux 2 for emu10k1

DISCUSSION Gary Jones 2 participants 3 messages Mar 25, 2005 – Mar 26, 2005 1 message not in the archive

lore
Share & tools
lore

Gary Jones

author
#0 lore raw

With the latest build of the alsa drivers using the cvs on March 25, 2005 I can no longer get access to the line in 2 or aux 2. When I activate ld10k1 I can access it but, line in 1 and aux 1 vanishes. The 2 on the livedrive however, becomes very silent. I can hear noise but I can't adjust the volume on them. Well I mean I can move sliders on mixers but it does nothing for the volume. I have an audigy1.

Thanks

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw
Quoted 6 lines · Gary Jones

With the latest build of the alsa drivers using the cvs on March 25, 2005 I can no longer get access to the line in 2 or aux 2. When I activate ld10k1 I can access it but, line in 1 and aux 1 vanishes. The 2 on the livedrive however, becomes very silent. I can hear noise but I can't adjust the volume on them. Well I mean I can move sliders on mixers but it does nothing for the volume. I have an audigy1.

It works for me. What exactly is your test procedure?

Please try to establish when this stopped working. You can build ALSA CVS from Feb 1, 2005 with "cvs update -D 2005-02-01" for example.

Lee

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 16 lines · Gary Jones
Quoted 8 lines · you
Quoted 6 lines · Gary Jones

With the latest build of the alsa drivers using the cvs on March 25, 2005 I can no longer get access to the line in 2 or aux 2. When I activate ld10k1 I can access it but, line in 1 and aux 1 vanishes. The 2 on the livedrive however, becomes very silent. I can hear noise but I can't adjust the volume on them. Well I mean I can move sliders on mixers but it does nothing for the volume. I have an audigy1.

Quoted 6 lines

It works for me. What exactly is your test procedure?

Please try to establish when this stopped working. You can build ALSA CVS from Feb 1, 2005 with "cvs update -D 2005-02-01" for example.

Lee

Quoted 11 lines

So far, this is what I have. I went back to March 20, 2005 and started from there. All showed up and worked as it should. All inputs were visible and worked fine. The 22nd, the same, it too, worked. The 23rd, total lock up of the machine. Then finally, the 24th of March was a no show on the livedrive inputs. So the 22nd was the last date that everything worked correctly for me.
The kernel I am currently using is 2.6.12-rc1 vanilla. Distro is Slackware 10.1 but compiled from source.
As far as a test procedure, I don't really have one of those. I just update the cvs branch daily and compile all from driver to utilities and all in between. Again, all worked up to the 22nd of March 2005.

OK. I looked at the diff, and it's 700+ lines for alsa-kernel/pci/emu10k1/*.

The changes are the patches to improve the detection of card capabilities from James, and the patches to reduce stack usage and fix the bugs I introduced in the voice allocator from Takashi.

I have attached the diff from 2005-03-22 to 2005-03-24 for reference. The obvious suspect is the card capabilities patch. James, any ideas?

Lee

? alsa-kernel/pci/emu10k1/alsafoo.patch
Index: README.CVS
===================================================================
RCS file: /cvsroot/alsa/README.CVS,v
retrieving revision 1.4
retrieving revision 1.5

README.CVS +6 -3
diff -u -r1.4 -r1.5
@@ -13,13 +13,16 @@
 
 Additions:
 
-Patch-level: [Low],[High]
+Patch-level: [Low],[High],[Merged]
   - when patch level is High, the changeset is propagated to ALSA BK tree
-    immediately; use this with caution - only small bugfixes should have
-    this line
+    immediately; use this with caution - only small urgent bugfixes should
+    have this line
   - when patch level is Low, the changeset is propagated to ALSA BK tree
     in next "development" round of Linux kernel (one or two rc versions);
     it's default (thus it might be ommited)
+  - when patch level is Merged, the changeset contains changes from
+    the mainstream kernel tree (and should not be propagated to ALSA BK
+    tree again)
 
 Exceptions:
 -----------

Index: alsa-kernel/pci/emu10k1/emu10k1.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emu10k1.c,v retrieving revision 1.33
retrieving revision 1.35

pci/emu10k1/emu10k1.c +5 -17
diff -u -r1.33 -r1.35
@@ -198,23 +198,11 @@
 	}
 #endif
  
-	if (emu->audigy && (emu->serial == 0x10011102) ) {
-		strcpy(card->driver, "Audigy2");
-		strcpy(card->shortname, "Sound Blaster Audigy2_Value");
-	} else if (emu->audigy && (emu->revision == 4) ) {
-		strcpy(card->driver, "Audigy2");
-		strcpy(card->shortname, "Sound Blaster Audigy2");
-	} else if (emu->audigy) {
-		strcpy(card->driver, "Audigy");
-		strcpy(card->shortname, "Sound Blaster Audigy");
-	} else if (emu->APS) {
-		strcpy(card->driver, "E-mu APS");
-		strcpy(card->shortname, "E-mu APS");
-	} else {
-		strcpy(card->driver, "EMU10K1");
-		strcpy(card->shortname, "Sound Blaster Live!");
-	}
-	sprintf(card->longname, "%s (rev.%d, serial:0x%x) at 0x%lx, irq %i", card->shortname, emu->revision, emu->serial, emu->port, emu->irq);
+	strcpy(card->driver, emu->card_capabilities->driver);
+	strcpy(card->shortname, emu->card_capabilities->name);
+	snprintf(card->longname, sizeof(card->longname),
+		 "%s (rev.%d, serial:0x%x) at 0x%lx, irq %i",
+		 card->shortname, emu->revision, emu->serial, emu->port, emu->irq);
 
 	if ((err = snd_card_register(card)) < 0) {
 		snd_card_free(card);

Index: alsa-kernel/pci/emu10k1/emu10k1_main.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emu10k1_main.c,v retrieving revision 1.45
retrieving revision 1.47

pci/emu10k1/emu10k1_main.c +122 -33

196 lines not on this page · raw message

Index: alsa-kernel/pci/emu10k1/emu10k1x.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emu10k1x.c,v retrieving revision 1.7
retrieving revision 1.8

pci/emu10k1/emu10k1x.c +1 -0
diff -u -r1.7 -r1.8
@@ -749,6 +749,7 @@
 
 	memset(&ac97, 0, sizeof(ac97));
 	ac97.private_data = chip;
+	ac97.scaps = AC97_SCAP_NO_SPDIF;
 	return snd_ac97_mixer(pbus, &ac97, &chip->ac97);
 }
 

Index: alsa-kernel/pci/emu10k1/emufx.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emufx.c,v retrieving revision 1.70
retrieving revision 1.73

pci/emu10k1/emufx.c +96 -58

252 lines not on this page · raw message

Index: alsa-kernel/pci/emu10k1/emumixer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emumixer.c,v retrieving revision 1.33
retrieving revision 1.34

pci/emu10k1/emumixer.c +1 -5
diff -u -r1.33 -r1.34
@@ -806,6 +806,7 @@
 		memset(&ac97, 0, sizeof(ac97));
 		ac97.private_data = emu;
 		ac97.private_free = snd_emu10k1_mixer_free_ac97;
+		ac97.scaps = AC97_SCAP_NO_SPDIF;
 		if ((err = snd_ac97_mixer(pbus, &ac97, &emu->ac97)) < 0)
 			return err;
 		if (emu->audigy) {
@@ -923,11 +924,6 @@
 			return -ENOMEM;
 		if ((err = snd_ctl_add(card, kctl)))
 			return err;
-		if ((kctl = ctl_find(card, SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT))) != NULL) {
-			/* already defined by ac97, remove it */
-			/* FIXME: or do we need both controls? */
-			remove_ctl(card, SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT));
-		}
 		if ((kctl = snd_ctl_new1(&snd_emu10k1_spdif_control, emu)) == NULL)
 			return -ENOMEM;
 		if ((err = snd_ctl_add(card, kctl)))

Index: alsa-kernel/pci/emu10k1/emupcm.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/emupcm.c,v retrieving revision 1.45
retrieving revision 1.46

pci/emu10k1/emupcm.c +33 -33

151 lines not on this page · raw message

Index: alsa-kernel/pci/emu10k1/voice.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/voice.c,v retrieving revision 1.8
retrieving revision 1.9

pci/emu10k1/voice.c +3 -5
diff -u -r1.8 -r1.9
@@ -62,15 +62,13 @@
 			continue;
 		}
 			
-		/* make sure the block of voices does not cross the 32 voice boundary */
-		//if (((i % 32) + number) > 32)
-		//	continue;
-
 		skip = 0;
 		for (k = 0; k < number; k++) {
 			voice = &emu->voices[(i+k) % NUM_G];
-			if (voice->use)
+			if (voice->use) {
 				skip = 1;
+				break;
+			}
 		}
 		if (!skip) {
 			// printk("allocated voice %d\n", i);

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click