* Bug in rme9652 or snd_pcm_hw_params_set_rate_near()? (slave clock stuff)
@ 2003-11-24 20:42 Anders Torger
2003-11-25 13:01 ` Paul Davis
0 siblings, 1 reply; 2+ messages in thread
From: Anders Torger @ 2003-11-24 20:42 UTC (permalink / raw)
To: alsa-devel
If my hammerfall (rme9652) sound card is locked slave to 48 kHz, and I put
44.1 kHz into snd_pcm_hw_params_set_rate_near for playback it accepts it,
should it really be that way? I expected that it would set the rate to 48kHz,
since the card does not change the sample rate to 44.1 kHz (looking in
/proc), when I start playing the rate is indeed 48kHz.
My idea of how things should work here is that if the sound card is in slave
mode, it should only report the current clock as the only available (I think
I wrote the rme96 driver along these lines). If that is not how it is
supposed to work, I need to know another way of finding out what the current
slave clock is...
Also, if it should be possible to set any rate among what the card can handle
with its own clock in this situation, the card should automatically change to
master mode on the output. As it is now, the actual sample rate does not
match what is allowed to set.
lib is 0.9.8, driver is what is found in 2.6.0-test10
I'm writing an application that is quite dependent on consistent behaviour
when it comes to how slave clocks are handled. Are there any guidelines on
how it should work? My guess is that currently the driver authors' have made
the implementation along their own ideas of how things should be, and
therefore can differ quite much.
/Anders Torger
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug in rme9652 or snd_pcm_hw_params_set_rate_near()? (slave clock stuff)
2003-11-24 20:42 Bug in rme9652 or snd_pcm_hw_params_set_rate_near()? (slave clock stuff) Anders Torger
@ 2003-11-25 13:01 ` Paul Davis
0 siblings, 0 replies; 2+ messages in thread
From: Paul Davis @ 2003-11-25 13:01 UTC (permalink / raw)
To: Anders Torger; +Cc: alsa-devel
>
>If my hammerfall (rme9652) sound card is locked slave to 48 kHz, and I put
>44.1 kHz into snd_pcm_hw_params_set_rate_near for playback it accepts it,
>should it really be that way? I expected that it would set the rate to 48kHz,
>since the card does not change the sample rate to 44.1 kHz (looking in
>/proc), when I start playing the rate is indeed 48kHz.
the 9652 driver needs revamping to match the behaviour of the
hdsp. thomas did great work on this, and the model for how it works is
much better than the 9652 driver. put simply, the 9652 driver really
doesn't this "properly".
the hdsp driver works, IIRC, pretty much as you suggest. if its in
master mode, you can set the rate, if its slaved, you cannot.
--p
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-11-25 13:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-24 20:42 Bug in rme9652 or snd_pcm_hw_params_set_rate_near()? (slave clock stuff) Anders Torger
2003-11-25 13:01 ` Paul Davis
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.