From: Clemens Ladisch <clemens@ladisch.de>
To: Juergen Beisert <jbe@pengutronix.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Question about "control names"
Date: Fri, 23 May 2008 14:02:42 +0200 [thread overview]
Message-ID: <4836B262.30108@ladisch.de> (raw)
In-Reply-To: <200805231201.41820.jbe@pengutronix.de>
Juergen Beisert wrote:
> On Friday 23 May 2008 11:36, Clemens Ladisch wrote:
> > Juergen Beisert wrote:
> > > I'm playing with the control names of my "snd_kcontrol_new" controls.
> > > When I'm using "PCM Playback Switch" and "PCM Playback Volume" alsamixer
> > > shows me a slider with a switch at its bottom. That's what I expected.
> > > But when I'm using a second set ("line in" to "line out" bypass), with
> > > "Line Bypass Capture Switch" and "Line Bypass Capture Volume" control
> > > names, its confusing (BTW: "Line Bypass Capture Volume" is of type
> > > SNDRV_CTL_ELEM_TYPE_ENUMERATED).
> >
> > This may be caused by the control type. Why is the volume "enumerated"?
>
> Its not linear.
The only requirement for volume slider is that they are somewhat
monotonic.
An enumerated control won't be considered a volume slider.
> Its defined in dB and has some "holes" in it.
This doesn't matter; this can described, too.
What is the exact mapping?
> When I change it to SNDRV_CTL_ELEM_TYPE_INTEGER I see the slider in the
> [Capture] screen, and also something at its bottom, but I can't switch
> anything:
>
>
> │▒▒│
> │▒▒│
> └──┘
> ------
> 7
> <Line Byp>
The "------" indicates that this can be enabled for recording.
Doesn't the space key work?
Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
prev parent reply other threads:[~2008-05-23 12:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-23 8:28 Question about "control names" Juergen Beisert
[not found] ` <4836902D.7000408@alsa-project.org>
2008-05-23 10:01 ` Juergen Beisert
2008-05-23 10:49 ` Mark Brown
2008-05-23 12:02 ` Clemens Ladisch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4836B262.30108@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=jbe@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.