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=72c7260ce624adcb4...