All of lore.kernel.org
 help / color / mirror / Atom feed
* alsa hw params on SB Pro
@ 2005-02-08  5:36 Ryan Underwood
  2005-02-10 17:17 ` Takashi Iwai
  2005-02-14  9:43 ` Clemens Ladisch
  0 siblings, 2 replies; 5+ messages in thread
From: Ryan Underwood @ 2005-02-08  5:36 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 903 bytes --]


Hi,

I seem to have the following problem.  On snd-sb8 with a SBPro (which is
capable of stereo), the best stereo playback mode is 22KHz - going above
22KHz implies that the output will be only one channel.

If I call snd_pcm_hw_params_set_channels_near with argument of 2
channels, I get 2 channels as requested.  But then I call
snd_pcm_hw_params_set_rate_near with argument of 44100, and have 44100
returned.  Thus I end up with a hwparams that the hardware is not
capable of.

Is there a reason the second call returns 44100 instead of 22050?
Conversely, calling _set_rate_near first and having 44100 returned
should mean that I only get 1 channel returned from _set_channels_near.
Isn't this the point of _near functions after all?

This is with libasound 1.0.8 and drivers version 1.0.8+2 from debian
(kernel 2.4.27).

Thanks,

-- 
Ryan Underwood, <nemesis@icequake.net>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-02-20  7:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-08  5:36 alsa hw params on SB Pro Ryan Underwood
2005-02-10 17:17 ` Takashi Iwai
2005-02-10 17:29   ` Giuliano Pochini
2005-02-14  9:43 ` Clemens Ladisch
2005-02-20  7:19   ` Ryan Underwood

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.