[alsa-devel] rme hdsp pcmcia (and probably pci) broken
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
On Mon, Nov 26, 2007 at 05:45:03PM -0800, Fernando Lopez-Lezcano wrote:
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).
[...]
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
At Mon, 26 Nov 2007 17:45:03 -0800, Fernando Lopez-Lezcano wrote:
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
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.
Signed-off-by: Remy Bruno remy.bruno@trinnov.com
diff -r 56d4c7f294f6 -r d2e58f75d204 pci/rme9652/hdsp.c --- a/pci/rme9652/hdsp.c Fri Aug 31 12:21:08 2007 +0200 +++ b/pci/rme9652/hdsp.c Fri Aug 31 12:33:54 2007 +0200 @@ -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; } }
On Tue, 2007-11-27 at 14:55 +0100, Takashi Iwai wrote:
At Mon, 26 Nov 2007 17:45:03 -0800, Fernando Lopez-Lezcano wrote:
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
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
# 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.
Signed-off-by: Remy Bruno remy.bruno@trinnov.com
diff -r 56d4c7f294f6 -r d2e58f75d204 pci/rme9652/hdsp.c --- a/pci/rme9652/hdsp.c Fri Aug 31 12:21:08 2007 +0200 +++ b/pci/rme9652/hdsp.c Fri Aug 31 12:33:54 2007 +0200 @@ -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; }
}
On Tue, 2007-11-27 at 11:18 -0800, Fernando Lopez-Lezcano wrote:
On Tue, 2007-11-27 at 14:55 +0100, Takashi Iwai wrote:
At Mon, 26 Nov 2007 17:45:03 -0800, Fernando Lopez-Lezcano wrote:
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
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
At Tue, 27 Nov 2007 16:11:40 -0800, Fernando Lopez-Lezcano wrote:
On Tue, 2007-11-27 at 11:18 -0800, Fernando Lopez-Lezcano wrote:
On Tue, 2007-11-27 at 14:55 +0100, Takashi Iwai wrote:
At Mon, 26 Nov 2007 17:45:03 -0800, Fernando Lopez-Lezcano wrote:
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
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).
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?
But reverting this patch would break the 9652?
According to the changelog, it's a fix rather for 9632.
Takashi
On Wed, 2007-11-28 at 10:33 +0100, Takashi Iwai wrote:
At Tue, 27 Nov 2007 16:11:40 -0800, Fernando Lopez-Lezcano wrote:
On Tue, 2007-11-27 at 11:18 -0800, Fernando Lopez-Lezcano wrote:
On Tue, 2007-11-27 at 14:55 +0100, Takashi Iwai wrote:
At Mon, 26 Nov 2007 17:45:03 -0800, Fernando Lopez-Lezcano wrote:
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
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).
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
This topic seems to have been abandoned in the last few days, but I'll report on it anyway.
On Wed, Nov 28, 2007 at 10:33:16AM +0100, Takashi Iwai wrote:
At Tue, 27 Nov 2007 16:11:40 -0800, Fernando Lopez-Lezcano wrote:
On Tue, 2007-11-27 at 11:18 -0800, Fernando Lopez-Lezcano wrote:
On Tue, 2007-11-27 at 14:55 +0100, Takashi Iwai wrote:
At Mon, 26 Nov 2007 17:45:03 -0800, Fernando Lopez-Lezcano wrote:
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
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).
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.
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
On Nov 27, 2007 11:45 AM, Fernando Lopez-Lezcano nando@ccrma.stanford.edu wrote:
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.
On Fri, 2007-12-07 at 09:31 +1000, Tim Mayberry wrote:
On Nov 27, 2007 11:45 AM, Fernando Lopez-Lezcano nando@ccrma.stanford.edu wrote:
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).
I just released a newer kernel with a patch that (probably) fixes the rme problems. Let me know how it goes!
Enjoy! -- Fernando
participants (4)
-
Christian Schumann
-
Fernando Lopez-Lezcano
-
Takashi Iwai
-
Tim Mayberry