Skip to contentSkip to conversation

rme hdsp pcmcia (and probably pci) broken

DISCUSSION Fernando Lopez-Lezcano 4 participants 10 messages Nov 27, 2007 – Dec 7, 2007

lore
Share & tools
lore
#0 lore raw

Hi, anyone has a pcmcia rme card running? And working? With a reasonably recent alsa? (this probably applies also for the regular pci rme cards, I've had reports on the Planet CCRMA list about problems that sound similar to this one).

My test setup is on fc7 running:

alsa-lib 1.0.15
alsa-tools 1.0.15
alsa-firmware 1.0.15

After a sequence of reboots this is what I get:

2.6.22.1-1.rt5.1 + alsa driver modules from
svn 20070702.165519
--> OK

2.6.22.5-1.rt9.2 + alsa driver modules from
hg20070830
--> OK

2.6.22.6-1.rt9.5 + alsa driver modules from
hg20070830
--> OK

2.6.22.10-1.rt9.1 + alsa driver modules from
hg20071012
--> BROKEN

2.6.23.1-1.rt11.1 + alsa drive modules from
hg20071124
--> BROKEN

BROKEN means: after starting hdspmixer I get no sound from the analog outputs (all previous tries play sound correctly with the default preset in hdspmixer). Some channels do appear (using a Digiface II). In the "broken" drivers I can get sound with the default preset if I send a signal to channels 7 and 12, all other stay muted.

Something broke drastically in the driver between 2007.08.30 and 2007.10.12.

Any help appreciated...

-- Fernando

#1 lore raw
Quoted 5 lines · Fernando Lopez-Lezcano

Hi, anyone has a pcmcia rme card running? And working? With a reasonably recent alsa? (this probably applies also for the regular pci rme cards, I've had reports on the Planet CCRMA list about problems that sound similar to this one).

[...]

Quoted 9 lines

BROKEN means: after starting hdspmixer I get no sound from the analog outputs (all previous tries play sound correctly with the default preset in hdspmixer). Some channels do appear (using a Digiface II). In the "broken" drivers I can get sound with the default preset if I send a signal to channels 7 and 12, all other stay muted.

Something broke drastically in the driver between 2007.08.30 and 2007.10.12.

I can confirm this in the way that I had very similar experiences. Although I do not clearly remember the kernel version I was trying to use, it was alsa 1.0.15 with a rme pcmcia digiface I.
No sound was audible, and hdspmixer did not show any signal on the outputs, although (at least in the same configuration with 1.0.14) it was sent to the device.

I just wanted to get some work done, so I did not delve into the problem any deeper. But a fix would certainly be nice.

Regards
Christian

Signature · 8 lines
------------------------------------------------------------------------
Dipl.-Phys. Christian Schumann   |Technische Universitaet Kaiserslautern
Mail: [email protected]  |           Fachbereich Physik
Tel.: 0631/205-4842 (Office)     |     http://www.physik.uni-kl.de 
Tel.: 0631/205-4843 (Lab)        |
Fax.: 0631/205-3902              |    
Post: Erwin-Schroedinger-Strasse, D-67663 Kaiserslautern
-------------------------------------------------------------------------
#2 lore raw
In reply to Fernando Lopez-Lezcano

At Mon, 26 Nov 2007 17:45:03 -0800,

Quoted 22 lines · Fernando Lopez-Lezcano

Hi, anyone has a pcmcia rme card running? And working? With a reasonably recent alsa? (this probably applies also for the regular pci rme cards, I've had reports on the Planet CCRMA list about problems that sound similar to this one).

My test setup is on fc7 running:

alsa-lib 1.0.15
alsa-tools 1.0.15
alsa-firmware 1.0.15

After a sequence of reboots this is what I get:

2.6.22.1-1.rt5.1 + alsa driver modules from
svn 20070702.165519
--> OK

2.6.22.5-1.rt9.2 + alsa driver modules from
hg20070830
--> OK

Quoted 7 lines

2.6.22.6-1.rt9.5 + alsa driver modules from
hg20070830
--> OK

2.6.22.10-1.rt9.1 + alsa driver modules from
hg20071012
--> BROKEN

The only significant change in hdsp.c during this is the patch below. Could you try to revert?

Takashi

# HG changeset patch
# User tiwai
# Date 1188556434 -7200
# Node ID d2e58f75d204bc01677c7f97e08ec067f8026dbc # Parent 56d4c7f294f63f63b93d9d1fbfda5570149500f8 hdsp - Add support for latset RME9632 revisions

added support for the latest revision of the 9632 (and hopefully a few following ones). The DSP matrix was not working because of wrong identification of the card in this part of the code.

pci/rme9652/hdsp.c +12 -12
diff -r 56d4c7f294f6 -r d2e58f75d204 pci/rme9652/hdsp.c
@@ -606,28 +606,28 @@ static void snd_hdsp_9652_enable_mixer (
 
 static int hdsp_playback_to_output_key (struct hdsp *hdsp, int in, int out)
 {
-	switch (hdsp->firmware_rev) {
-	case 0xa:
+	switch (hdsp->io_type) {
+	case Multiface:
+	case Digiface:
+	default:
 		return (64 * out) + (32 + (in));
-	case 0x96:
-	case 0x97:
-	case 0x98:
+	case H9632:
 		return (32 * out) + (16 + (in));
-	default:
+	case H9652:
 		return (52 * out) + (26 + (in));
 	}
 }
 
 static int hdsp_input_to_output_key (struct hdsp *hdsp, int in, int out)
 {
-	switch (hdsp->firmware_rev) {
-	case 0xa:
+	switch (hdsp->io_type) {
+	case Multiface:
+	case Digiface:
+	default:
 		return (64 * out) + in;
-	case 0x96:
-	case 0x97:
-	case 0x98:
+	case H9632:
 		return (32 * out) + in;
-	default:
+	case H9652:
 		return (52 * out) + in;
 	}
 }
#3 lore raw
Quoted 18 lines · Takashi Iwai

At Mon, 26 Nov 2007 17:45:03 -0800,

Quoted 8 lines · Fernando Lopez-Lezcano

Hi, anyone has a pcmcia rme card running? And working? With a reasonably recent alsa? (this probably applies also for the regular pci rme cards, I've had reports on the Planet CCRMA list about problems that sound similar to this one).

My test setup is on fc7 running:

Quoted 7 lines

alsa-lib 1.0.15
alsa-tools 1.0.15
alsa-firmware 1.0.15
[MUNCH]
2.6.22.10-1.rt9.1 + alsa driver modules from
hg20071012
--> BROKEN

Quoted 2 lines

The only significant change in hdsp.c during this is the patch below. Could you try to revert?

Reverting the patch makes the card play sound as before, so the patch is definitely broken. Regretfully hdspmixer seems to no longer display the vu meters and changing the presets does not seem to have an effect, it probably needs something to be reverted as well to match?

-- Fernando

Quoted 57 lines

# HG changeset patch
# User tiwai
# Date 1188556434 -7200
# Node ID d2e58f75d204bc01677c7f97e08ec067f8026dbc # Parent 56d4c7f294f63f63b93d9d1fbfda5570149500f8 hdsp - Add support for latset RME9632 revisions

added support for the latest revision of the 9632 (and hopefully a few following ones). The DSP matrix was not working because of wrong identification of the card in this part of the code.

diff -r 56d4c7f294f6 -r d2e58f75d204 pci/rme9652/hdsp.c

pci/rme9652/hdsp.c +12 -12
@@ -606,28 +606,28 @@ static void snd_hdsp_9652_enable_mixer (
 
 static int hdsp_playback_to_output_key (struct hdsp *hdsp, int in, int out)
 {
-	switch (hdsp->firmware_rev) {
-	case 0xa:
+	switch (hdsp->io_type) {
+	case Multiface:
+	case Digiface:
+	default:
 		return (64 * out) + (32 + (in));
-	case 0x96:
-	case 0x97:
-	case 0x98:
+	case H9632:
 		return (32 * out) + (16 + (in));
-	default:
+	case H9652:
 		return (52 * out) + (26 + (in));
 	}
 }
 
 static int hdsp_input_to_output_key (struct hdsp *hdsp, int in, int out)
 {
-	switch (hdsp->firmware_rev) {
-	case 0xa:
+	switch (hdsp->io_type) {
+	case Multiface:
+	case Digiface:
+	default:
 		return (64 * out) + in;
-	case 0x96:
-	case 0x97:
-	case 0x98:
+	case H9632:
 		return (32 * out) + in;
-	default:
+	case H9652:
 		return (52 * out) + in;
 	}
 }
#4 lore raw
Quoted 19 lines · Fernando Lopez-Lezcano
Quoted 18 lines · Takashi Iwai

At Mon, 26 Nov 2007 17:45:03 -0800,

Quoted 15 lines · Fernando Lopez-Lezcano

Hi, anyone has a pcmcia rme card running? And working? With a reasonably recent alsa? (this probably applies also for the regular pci rme cards, I've had reports on the Planet CCRMA list about problems that sound similar to this one).

My test setup is on fc7 running:

alsa-lib 1.0.15
alsa-tools 1.0.15
alsa-firmware 1.0.15
[MUNCH]
2.6.22.10-1.rt9.1 + alsa driver modules from
hg20071012
--> BROKEN

Quoted 7 lines
Quoted 2 lines

The only significant change in hdsp.c during this is the patch below. Could you try to revert?

Reverting the patch makes the card play sound as before, so the patch is definitely broken. Regretfully hdspmixer seems to no longer display the vu meters and changing the presets does not seem to have an effect, it probably needs something to be reverted as well to match?

Hmmm, I don't know why it was not working. I'm also building a new kernel, so, with 2.6.23.9 + rt11 + alsa kernel drivers hg20071124 it seems to work (hdspmixer displays the vu meters correctly).

But reverting this patch would break the 9652?
-- Fernando

#5 lore raw

At Tue, 27 Nov 2007 16:11:40 -0800,

Quoted 24 lines · Fernando Lopez-Lezcano
Quoted 22 lines · Fernando Lopez-Lezcano
Quoted 20 lines · Takashi Iwai

At Mon, 26 Nov 2007 17:45:03 -0800,

Quoted 8 lines · Fernando Lopez-Lezcano

Hi, anyone has a pcmcia rme card running? And working? With a reasonably recent alsa? (this probably applies also for the regular pci rme cards, I've had reports on the Planet CCRMA list about problems that sound similar to this one).

My test setup is on fc7 running:

Quoted 7 lines

alsa-lib 1.0.15
alsa-tools 1.0.15
alsa-firmware 1.0.15
[MUNCH]
2.6.22.10-1.rt9.1 + alsa driver modules from
hg20071012
--> BROKEN

The only significant change in hdsp.c during this is the patch below. Could you try to revert?

Quoted 8 lines
Quoted 4 lines

Reverting the patch makes the card play sound as before, so the patch is definitely broken. Regretfully hdspmixer seems to no longer display the vu meters and changing the presets does not seem to have an effect, it probably needs something to be reverted as well to match?

Hmmm, I don't know why it was not working. I'm also building a new kernel, so, with 2.6.23.9 + rt11 + alsa kernel drivers hg20071124 it seems to work (hdspmixer displays the vu meters correctly).

Possibly the hdsp-mixer setup got screwed up once due to the wrong number of channels.

If I understand correctly, the latest driver works as is?

What is your hardware actually? Could you check hdsp->io_type and hdsp->firmware_rev?

Quoted 1 line

But reverting this patch would break the 9652?

According to the changelog, it's a fix rather for 9632.

Takashi

#6 lore raw
Quoted 35 lines · Takashi Iwai

At Tue, 27 Nov 2007 16:11:40 -0800,

Quoted 24 lines · Fernando Lopez-Lezcano
Quoted 22 lines · Fernando Lopez-Lezcano
Quoted 20 lines · Takashi Iwai

At Mon, 26 Nov 2007 17:45:03 -0800,

Quoted 8 lines · Fernando Lopez-Lezcano

Hi, anyone has a pcmcia rme card running? And working? With a reasonably recent alsa? (this probably applies also for the regular pci rme cards, I've had reports on the Planet CCRMA list about problems that sound similar to this one).

My test setup is on fc7 running:

Quoted 7 lines

alsa-lib 1.0.15
alsa-tools 1.0.15
alsa-firmware 1.0.15
[MUNCH]
2.6.22.10-1.rt9.1 + alsa driver modules from
hg20071012
--> BROKEN

The only significant change in hdsp.c during this is the patch below. Could you try to revert?

Quoted 8 lines
Quoted 4 lines

Reverting the patch makes the card play sound as before, so the patch is definitely broken. Regretfully hdspmixer seems to no longer display the vu meters and changing the presets does not seem to have an effect, it probably needs something to be reverted as well to match?

Hmmm, I don't know why it was not working. I'm also building a new kernel, so, with 2.6.23.9 + rt11 + alsa kernel drivers hg20071124 it seems to work (hdspmixer displays the vu meters correctly).

Quoted 7 lines

Possibly the hdsp-mixer setup got screwed up once due to the wrong number of channels.

If I understand correctly, the latest driver works as is?

What is your hardware actually? Could you check hdsp->io_type and hdsp->firmware_rev?

Sorry, it was a loaner. I'll get hold of it next week again. It was the hdsp pcmcia card and a digiface II.

-- Fernando

#7 lore raw
In reply to Takashi Iwai

This topic seems to have been abandoned in the last few days, but I'll report on it anyway.

Quoted 31 lines · Takashi Iwai

At Tue, 27 Nov 2007 16:11:40 -0800,

Quoted 29 lines · Fernando Lopez-Lezcano
Quoted 26 lines · Fernando Lopez-Lezcano
Quoted 18 lines · Takashi Iwai

At Mon, 26 Nov 2007 17:45:03 -0800,

Quoted 8 lines · Fernando Lopez-Lezcano

Hi, anyone has a pcmcia rme card running? And working? With a reasonably recent alsa? (this probably applies also for the regular pci rme cards, I've had reports on the Planet CCRMA list about problems that sound similar to this one).

My test setup is on fc7 running:

Quoted 7 lines

alsa-lib 1.0.15
alsa-tools 1.0.15
alsa-firmware 1.0.15
[MUNCH]
2.6.22.10-1.rt9.1 + alsa driver modules from
hg20071012
--> BROKEN

Quoted 2 lines

The only significant change in hdsp.c during this is the patch below. Could you try to revert?

Reverting the patch makes the card play sound as before, so the patch is definitely broken. Regretfully hdspmixer seems to no longer display the vu meters and changing the presets does not seem to have an effect, it probably needs something to be reverted as well to match?

Quoted 8 lines
Quoted 3 lines

Hmmm, I don't know why it was not working. I'm also building a new kernel, so, with 2.6.23.9 + rt11 + alsa kernel drivers hg20071124 it seems to work (hdspmixer displays the vu meters correctly).

Possibly the hdsp-mixer setup got screwed up once due to the wrong number of channels.

If I understand correctly, the latest driver works as is?

I compiled a 2.6.23.9-rt12 yesterday, and with 1.0.14 from the kernel source tree it works, with a hg checkout from yesterday it doesn't. So from my point of view the latest driver is broken.

Quoted 3 lines

What is your hardware actually? Could you check hdsp->io_type and hdsp->firmware_rev?

Digiface I + PCMCIA, will check on firmwire version tonight.

Regards
Christian

Signature · 8 lines
------------------------------------------------------------------------
Dipl.-Phys. Christian Schumann   |Technische Universitaet Kaiserslautern
Mail: [email protected]  |           Fachbereich Physik
Tel.: 0631/205-4842 (Office)     |     http://www.physik.uni-kl.de 
Tel.: 0631/205-4843 (Lab)        |
Fax.: 0631/205-3902              |    
Post: Erwin-Schroedinger-Strasse, D-67663 Kaiserslautern
-------------------------------------------------------------------------
#8 lore raw
In reply to Fernando Lopez-Lezcano
Quoted 5 lines · Fernando Lopez-Lezcano

Hi, anyone has a pcmcia rme card running? And working? With a reasonably recent alsa? (this probably applies also for the regular pci rme cards, I've had reports on the Planet CCRMA list about problems that sound similar to this one).

I have a RME Hammerfall HDSP PCI card with a Multiface unit which was working fine with Fedora 7. When I upgraded to Fedora 8 recently it stopped working properly. I discovered I could get sound out of it using aplay with a mono sound file as it seemed to send the mono input to all outputs but playing a stereo file would not play out the first two analog outputs like it did with Fedora 7(I couldn't tell where the output was going).

Reverting to the stock F7 kernel returned functionality to normal so I downloaded the source packages for the F7 and F8 kernels and had a quick peek. They both seem to be using the same upstream kernel source but with different patch sets applied. The Fedora 8 kernel source contains a ~1MB alsa patch that I imagine has something to do with the breakage.

Tim.

#9 lore raw
Quoted 8 lines · Tim Mayberry
Quoted 5 lines · Fernando Lopez-Lezcano

Hi, anyone has a pcmcia rme card running? And working? With a reasonably recent alsa? (this probably applies also for the regular pci rme cards, I've had reports on the Planet CCRMA list about problems that sound similar to this one).

Quoted 7 lines

I have a RME Hammerfall HDSP PCI card with a Multiface unit which was working fine with Fedora 7. When I upgraded to Fedora 8 recently it stopped working properly. I discovered I could get sound out of it using aplay with a mono sound file as it seemed to send the mono input to all outputs but playing a stereo file would not play out the first two analog outputs like it did with Fedora 7(I couldn't tell where the output was going).

I just released a newer kernel with a patch that (probably) fixes the rme problems. Let me know how it goes!

Enjoy!
-- Fernando