Skip to contentSkip to conversation

snd-emu10k1x samplerate capabilities

DISCUSSION Daniel Svensson 2 participants 4 messages Dec 27, 2004 – Dec 29, 2004

lore
Share & tools
lore
#0 lore raw

The snd-emu10k1x driver accepts samplerates that the hardware is not capable of handling.

rate = 44100;
err = snd_pcm_hw_params_set_rate_near (pcm, hwparams, &rate, NULL);

err should be less than zero if the requested rate is 44100, or the rate should be set to 48000. As it's handled now when that line is executed the samplerate is set to 44100 and sound is broken.

-- Daniel Svensson

-------------------------------------------------------
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://productguide.itmanagersjournal.com/

#1 lore raw

At Mon, 27 Dec 2004 20:47:58 +0000,

Quoted 10 lines · Daniel Svensson

The snd-emu10k1x driver accepts samplerates that the hardware is not capable of handling.

rate = 44100;
err = snd_pcm_hw_params_set_rate_near (pcm, hwparams, &rate, NULL);

err should be less than zero if the requested rate is 44100, or the rate should be set to 48000. As it's handled now when that line is executed the samplerate is set to 44100 and sound is broken.

I still don't find out the bug in emu10k1x.c.
Which version? Which PCM name did you use?

Takashi

-------------------------------------------------------
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://productguide.itmanagersjournal.com/

#2 lore raw
Quoted 9 lines · Takashi Iwai

At Mon, 27 Dec 2004 20:47:58 +0000,

Quoted 7 lines · Daniel Svensson

The snd-emu10k1x driver accepts samplerates that the hardware is not capable of handling.

rate = 44100;
err = snd_pcm_hw_params_set_rate_near (pcm, hwparams, &rate, NULL);

Quoted 6 lines
Quoted 3 lines

err should be less than zero if the requested rate is 44100, or the rate should be set to 48000. As it's handled now when that line is executed the samplerate is set to 44100 and sound is broken.

I still don't find out the bug in emu10k1x.c.
Which version? Which PCM name did you use?

Well, I used latest from CVS the 29:th of december. This problem
existed 6 months ago but of some reason I didn't repport it then. I'm not very familiar with alsas huge codebase so I haven't had a look at it.

-- Daniel Svensson

-------------------------------------------------------
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://productguide.itmanagersjournal.com/

#3 lore raw

At Wed, 29 Dec 2004 13:49:21 +0100,

Quoted 18 lines · Daniel Svensson
Quoted 14 lines · Takashi Iwai

At Mon, 27 Dec 2004 20:47:58 +0000,

Quoted 11 lines · Daniel Svensson

The snd-emu10k1x driver accepts samplerates that the hardware is not capable of handling.

rate = 44100;
err = snd_pcm_hw_params_set_rate_near (pcm, hwparams, &rate, NULL);

err should be less than zero if the requested rate is 44100, or the rate
should be set to 48000. As it's handled now when that line is executed the samplerate is set to 44100 and sound is broken.

Quoted 6 lines
Quoted 2 lines

I still don't find out the bug in emu10k1x.c.
Which version? Which PCM name did you use?

Well, I used latest from CVS the 29:th of december. This problem
existed 6 months ago but of some reason I didn't repport it then. I'm not very familiar with alsas huge codebase so I haven't had a look at it.

OK the version look fairly new.

Could you check /proc/asound/card0/pcm0p/sub0/hw_params (and other files there) during playback? This will show the real setting currently running. If it shows 44.1kHz, there must be a bug in the driver side...

Takashi

-------------------------------------------------------
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://productguide.itmanagersjournal.com/