alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: "Clemens Ladisch" <cladisch@fastmail.net>
To: Daniel Mack <daniel@caiaq.org>
Cc: alsa-devel@alsa-project.org
Subject: Re: hardware-dependent features
Date: Tue, 13 Nov 2007 08:31:32 +0100	[thread overview]
Message-ID: <1194939092.7896.1220996479@webmail.messagingengine.com> (raw)
In-Reply-To: <30B53B6F-F339-429A-9957-7B130DF0BD4F@caiaq.org>

Daniel Mack wrote:
> On Nov 12, 2007, at 6:26 PM, Clemens Ladisch wrote:
> 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.

The amixer tool can access any control.

> > 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?

The LEDs are part of the device, so it makes sense to use them in some
manner related to audio.

> Is it ok to attach own, device-specific sysfs entries to device
> folders created by ALSA?

It's possible, but so far, it hasn't been necessary.

> This way, we would have those features releated to the audio device
> but wouldn't need to abuse the mixer API.

It's actually called the "control API" because it can be used to
provide controls of all kinds, not only related to mixing.

I'd stronly recommend to use the control API.  While it is possible to
use sysfs for the same purpose, I don't see any advantage over the
control API.


Regards,
Clemens

      parent reply	other threads:[~2007-11-13  7:31 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
2007-11-13  7:31     ` 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=1194939092.7896.1220996479@webmail.messagingengine.com \
    --to=cladisch@fastmail.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).