On Fri, 7 Dec 2001, Jack Moffitt wrote:
> > Use some file in native hardware format.
>
> aplay: set_params:724: Channels count non available
>
> Is what i get for a mono file.
I found the bug. It was in an incorrect setup in alsa-lib:
Index: pcm_plug.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/pcm/pcm_plug.c,v
retrieving revision 1.105
diff -u -r1.105 pcm_plug.c
--- pcm_plug.c 2001/11/27 14:24:44 1.105
+++ pcm_plug.c 2001/12/08 09:31:26
@@ -320,9 +320,8 @@
ttable[k] = 0;
if (rpolicy == PLUG_ROUTE_POLICY_DEFAULT) {
rpolicy = PLUG_ROUTE_POLICY_COPY;
- if (pcm->stream == SND_PCM_STREAM_CAPTURE && clt->channels ==
1)
- rpolicy = PLUG_ROUTE_POLICY_AVERAGE;
- if (pcm->stream == SND_PCM_STREAM_PLAYBACK && slv->channels ==
1)
+ /* it's hack for mono conversion */
+ if (clt->channels == 1 || slv->channels == 1)
rpolicy = PLUG_ROUTE_POLICY_AVERAGE;
}
switch (rpolicy) {
Jaroslav
-----
Jaroslav Kysela <[EMAIL PROTECTED]>
SuSE Linux http://www.suse.com
ALSA Project http://www.alsa-project.org
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel