* snd-emu10k1x samplerate capabilities
@ 2004-12-27 20:47 Daniel Svensson
2004-12-29 12:16 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Svensson @ 2004-12-27 20:47 UTC (permalink / raw)
To: alsa-devel
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: snd-emu10k1x samplerate capabilities
2004-12-27 20:47 snd-emu10k1x samplerate capabilities Daniel Svensson
@ 2004-12-29 12:16 ` Takashi Iwai
2004-12-29 12:49 ` Daniel Svensson
0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2004-12-29 12:16 UTC (permalink / raw)
To: Daniel Svensson; +Cc: alsa-devel
At Mon, 27 Dec 2004 20:47:58 +0000,
Daniel Svensson wrote:
>
> 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: snd-emu10k1x samplerate capabilities
2004-12-29 12:16 ` Takashi Iwai
@ 2004-12-29 12:49 ` Daniel Svensson
2004-12-29 13:10 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Svensson @ 2004-12-29 12:49 UTC (permalink / raw)
To: Takashi Iwai; +Cc: alsa-devel
On 2004-12-29, at 13.16, Takashi Iwai wrote:
> At Mon, 27 Dec 2004 20:47:58 +0000,
> Daniel Svensson wrote:
>>
>> 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?
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: snd-emu10k1x samplerate capabilities
2004-12-29 12:49 ` Daniel Svensson
@ 2004-12-29 13:10 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2004-12-29 13:10 UTC (permalink / raw)
To: Daniel Svensson; +Cc: alsa-devel
At Wed, 29 Dec 2004 13:49:21 +0100,
Daniel Svensson wrote:
>
>
> On 2004-12-29, at 13.16, Takashi Iwai wrote:
>
> > At Mon, 27 Dec 2004 20:47:58 +0000,
> > Daniel Svensson wrote:
> >>
> >> 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?
> 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-12-29 13:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-27 20:47 snd-emu10k1x samplerate capabilities Daniel Svensson
2004-12-29 12:16 ` Takashi Iwai
2004-12-29 12:49 ` Daniel Svensson
2004-12-29 13:10 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.