[alsa-devel] [PATCH 4/4] snd-usb-6fire: add analog input volume control
Takashi Iwai
tiwai at suse.de
Thu Jan 12 10:28:01 CET 2012
At Thu, 12 Jan 2012 10:17:24 +0100,
Torsten Schenk wrote:
>
> > > static struct __devinitdata snd_kcontrol_new elements[] = {
> > > @@ -442,6 +497,15 @@
> > > .get = usb6fire_control_digital_thru_get,
> > > .put = usb6fire_control_digital_thru_put
> > > },
> > > + {
> > > + .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
> > > + .name = "Input 1/2 Capture Volume",
> > > + .index = 0,
> >
> > If this is the only volume element, you don't need to add "1/2", no?
>
> The problem is, that there is only an input control for 2 out of 4
> analog input channels since channel 3 and 4 use a different ADC and
> there doesn't seem to be a volume control on that chip. Since this
> control only changes volume of channel 1 and 2, I wanted to have an
> indication about that.
Well, then the question is whether you need to give a stereo control
there. If all I/O are supposed to be individual mono streams, it'd be
natural to provide a mono volume control with a proper index number
corresponding to each stream.
Takashi
More information about the Alsa-devel
mailing list