Skip to contentSkip to conversation

hdsp problem

DISCUSSION Tim Blechmann 3 participants 4 messages Jan 13, 2004 – Jan 15, 2004

lore
Share & tools
lore
#0 lore raw

i've got a problem with my hammerfall dsp (multiface + cardbus) ...

it might be an alsa problem: i can load all modules and upload the firmware with hdsploader ... and i can mix the inchannels to the outchannels with hdspmixer ...
but when i start a sound application (jack,oss layer, aplay) everything i get is a distorted sound. i recorded this sound and it seems that there is one block of audio data followed by one block of silence (have a look at it at http://www.volny.cz/guitar_billy/hdsp.screenshot.png,
there might be some errors at the edges of the blocks because of the mp3 compression of the original soundfile, thanks to alex for putting it online!)
then i start any sound application the sound that's routed from the input is being distorted, too, (i suppose every second block is cleared to zero samples)

i used several alsa version, several kernels (2.4, 2.6), changing the pci latency doesn't change anything, either ...

if anyone has an idea, what might be the issue, i'd be interesting to hear...

Tim mailto:[email protected]

                              ICQ: 96771783

--
The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!"
Jack Kerouac

Signature · 18 lines
 Tim                          mailto:[email protected]
                              ICQ: 96771783
--
The only people for me are the mad ones, the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn,
burn, like fabulous yellow roman candles exploding like spiders across
the stars and in the middle you see the blue centerlight pop and
everybody goes "Awww!"
                                                          Jack Kerouac



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
#1 lore raw

Paul Davis experienced this recently with his cardbus/digiface, with both 0.9.8 and 1.0.x. He found that it only does this when the period size is >= 512. At 256 and below, it works fine for
him. Give that a try.......

I need to test my personal system to verify this happens for me too.

jlc

Tim Blechmann wrote on Tue, 13-Jan-2004:

Quoted 16 lines

i've got a problem with my hammerfall dsp (multiface + cardbus) ...

it might be an alsa problem: i can load all modules and upload the firmware with hdsploader ... and i can mix the inchannels to the outchannels with hdspmixer ...
but when i start a sound application (jack,oss layer, aplay) everything i get is a distorted sound. i recorded this sound and it seems that there is one block of audio data followed by one block of silence (have a look at it at http://www.volny.cz/guitar_billy/hdsp.screenshot.png,
there might be some errors at the edges of the blocks because of the mp3 compression of the original soundfile, thanks to alex for putting it online!)
then i start any sound application the sound that's routed from the input is being distorted, too, (i suppose every second block is cleared to zero samples)

Quoted 5 lines

i used several alsa version, several kernels (2.4, 2.6), changing the pci latency doesn't change anything, either ...

if anyone has an idea, what might be the issue, i'd be interesting to hear...

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

#2 lore raw
Quoted 4 lines

Paul Davis experienced this recently with his cardbus/digiface, with both 0.9.8 and 1.0.x. He found that it only does this when the period size is >= 512. At 256 and below, it works fine for
him. Give that a try.......

it's not working on my system (i tried 64, 128, 256) ... but playing with the different settings, i figured out, that i can't change the number of periods in the hardware buffer ... it's always 2 times the number of frames per period ...
jack returns as error message:
ALSA: cannot set number of periods to 1 for capture
ALSA: cannot configure playback channel
cannot load driver module alsa

is it possible that this is the problem? i don't understand how the driver works but if the hardware buffer always gets one block instead of two and plays it back the whole hardware buffer the samples would be late ...
on the other hand the distortion i hear is not related to the block size... (btw, i tried to record a sound ... that works fine ...)

nearly giving up the hope ...

Tim mailto:[email protected]

                              ICQ: 96771783

--
The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!"
Jack Kerouac

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

#3 lore raw
Quoted 1 line

it's not working on my system (i tried 64, 128, 256) ... but playing

then i guess there is more than one problem. i would also recommend checking into whatever is sharing the interrupt that the hdsp is on. on my laptop, way too many things are on IRQ10 (USB, CardBus, Wifi, HDSP). this seems hard to change, but it might have some effect.

Quoted 3 lines

with the different settings, i figured out, that i can't change the number of periods in the hardware buffer ... it's always 2 times the number of frames per period ...

thats the hardware design of all the hammerfall series devices. RME calls its "ASIO in hardware". snicker.

Quoted 2 lines

jack returns as error message:
ALSA: cannot set number of periods to 1 for capture

that would make no sense whatsoever.

Quoted 1 line

nearly giving up the hope ...

never give up. there are lots of people using the h/w you have with 100% success. i have to pack up and run off to NAMM now. sorry i can't be more helpful for now.

--p

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn