[alsa-devel] How to name controls
Trent Piepho
xyzzy at speakeasy.org
Thu Sep 6 18:42:02 CEST 2007
On Wed, 5 Sep 2007, Takashi Iwai wrote:
> At Mon, 3 Sep 2007 14:46:11 -0700 (PDT),
> Trent Piepho wrote:
> > Basically, there is an analog input (from the TV tuner), and a line out.
> > The analog input goes through ADC -> DAC steps and then to the line out.
> > There are three controls, one volume and two mute switches. One switch
> > causes the source to be muted, the other only mutes the line out. The
> > volume only controls the line out.
> >
> > So what should I call these controls? Do I call the volume "Playback
> > Volume"? The chip doesn't support playback, so that seems confusing. It's
> > more like "Pass-through Volume", but that's not an option. And what do I
> > call the source mute switch? "Capture Switch"? That doesn't seem quite
> > right either, since it doesn't just mute capture, but also mutes the
> > pass-through audio.
>
> Basically "Capture" and "Playback" in the control element names just
> indicate the direction rather than the functionality. The analog-loop
> back is handled usually "XXX Playback Volume" in many drivers/codecs.
> Hence I think it's fine with "Playback Volume" in this case.
Ok, thanks. The direction is clear when one has audio going to or from an
ALSA pcm device, but in the case of a pass-through it's not obvious. I see
that the ca0106 driver has a control named "CAPTURE feedback Playback
Volume" that works the same way as the cx88 volume control. Since cx88
only has the one control, I'll just name it "Playback Volume".
More information about the Alsa-devel
mailing list