From: Eliot Blennerhassett <linux@audioscience.com>
To: Daniel Mack <daniel@caiaq.org>
Cc: ALSA devel <alsa-devel@alsa-project.org>
Subject: Re: hardware-dependent features
Date: Tue, 13 Nov 2007 11:28:12 +1300 [thread overview]
Message-ID: <4738D37C.7070304@audioscience.com> (raw)
In-Reply-To: <30B53B6F-F339-429A-9957-7B130DF0BD4F@caiaq.org>
I would also advocate using controls...
Daniel Mack wrote:
> Hi Clemens,
>
> On Nov 12, 2007, at 6:26 PM, Clemens Ladisch wrote:
>
>> I've used three 'mixer' controls for the three LEDs of the SB Audigy 2
>> NX. Whether this is a good idea depends on how many LEDs there
>> are, and
>> how one might want to use them. Are there LED displays, i.e.,
>> multiple
>> LEDs in a row?
>
> Depends. There is one device which has 4 user-assignable LEDs,
4 boolean controls
$ amixer cset 'Led 3' on
some
> others have up to >35 LEDs which can be dimmed in 64 steps, yet
Is that 64 steps each, or all together?
(i.e one dim control + 35 booleans, or 35 dim controls)
> another one has 7-segment LED displays.
integer or enumerated control.
> What I would like to achieve is a conventient way of accessing them,
> probably from the command line via some procfs or sysfs manner so
> users can even use scripts to switch them on and off if they like.
>
>> I think the displays could by controlled by mixer controls of type
>> "bytes". Usual mixer applications can't handle those, but this is
>> quite hardware dependent anway ...
>
> But is that really where it belongs to? I would think that LEDs and
> input functions are not related to audio and thus should be handled
> by some other, more appropriate or maybe even proprietary subsystem.
> There are some features which have influcence on the audio
> behaviour since they affect the way the signal is processed, but
> LEDs are certainly not, are they?
I would think of them as "controls" on the device rather than "mixer".
you have options of enumerated, integer, boolean, (or bytes)
In addition you can specify an index as well as a name.
"Led", index=23
or "Led 23"
I'm not sure if you can add controls to an "interface" other than
"MIXER" (ie. "CARD")
Other ALSA devs please answer...
--
Eliot
next prev parent reply other threads:[~2007-11-12 22:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-12 13:13 hardware-dependent features Daniel Mack
2007-11-12 16:56 ` Lee Revell
2007-11-12 17:26 ` Clemens Ladisch
2007-11-12 20:39 ` Daniel Mack
2007-11-12 22:28 ` Eliot Blennerhassett [this message]
2007-11-13 7:31 ` Clemens Ladisch
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=4738D37C.7070304@audioscience.com \
--to=linux@audioscience.com \
--cc=alsa-devel@alsa-project.org \
--cc=daniel@caiaq.org \
/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.