ALSA: snd-aloop - fix the "PCM Playback Channels" kcontrol
Jaroslav Kysela [Wed, 15 Sep 2010 06:01:57 +0000 (08:01 +0200)]
Obvious copy-and-paste error.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

sound/drivers/aloop.c

index 3123a15..f2b8f86 100644 (file)
@@ -809,7 +809,7 @@ static int loopback_channels_get(struct snd_kcontrol *kcontrol,
        
        ucontrol->value.integer.value[0] =
                loopback->setup[kcontrol->id.subdevice]
-                              [kcontrol->id.device].rate;
+                              [kcontrol->id.device].channels;
        return 0;
 }