snd-aloop PCM Slave Channels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux