[alsa-devel] snd-aloop PCM Slave Channels

Raymond Yau superquad.vortex2 at gmail.com
Tue Sep 14 15:33:56 CEST 2010


it seem there is a bug in snd-aloop

those IFACE_PCM "PCM Slave Channels" controls return 48000


 static int loopback_channels_get(struct snd_kcontrol *kcontrol,
                                  struct snd_ctl_elem_value *ucontrol)
 {
         struct loopback *loopback = snd_kcontrol_chip(kcontrol);
-         ucontrol->value.integer.value[0]
=loopback->setup[kcontrol->id.subdevice][kcontrol->id.device].rate;
+        ucontrol->value.integer.value[0]
=loopback->setup[kcontrol->id.subdevice][kcontrol->id.device].channels;
         return 0;
 }

BTW , AFAIK dmix/dsnoop only work with subdevice 0 and there are 8
subdevices by default

How can the application access Loopback.pcm.default ?

http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff;h=72c7260ce624adcb40377bc2093cd4d965b9b22e;hp=91c9c8f1b85e69b4bdc94a777d2767c4906c3f47


More information about the Alsa-devel mailing list