[alsa-devel] hardware-dependent features
daniel at caiaq.org
Mon Nov 12 21:39:45 CET 2007
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.,
> LEDs in a row?
Depends. There is one device which has 4 user-assignable LEDs, some
others have up to >35 LEDs which can be dimmed in 64 steps, yet
another one has 7-segment LED displays.
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?
Is it ok to attach own, device-specific sysfs entries to device
folders created by ALSA? I could imagine having a "leds" subdir with
all the possible entries in it. The sysfs layer is easy to handle so
there wouldn't be much overhead. This way, we would have those
features releated to the audio device but wouldn't need to abuse the
mixer API. Or is that a no-go?
More information about the Alsa-devel