All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Ricard Wanderlof <ricard.wanderlof@axis.com>,
	alsa-devel@alsa-project.org
Subject: Re: Softvol only after device has opened
Date: Tue, 09 Jun 2015 13:52:44 +0200	[thread overview]
Message-ID: <5576D38C.4030907@ladisch.de> (raw)
In-Reply-To: <alpine.DEB.2.02.1506091304020.15001@lnxricardw1.se.axis.com>

Ricard Wanderlof wrote:
> One thing though, the 'softvol' plugin very correctly creates a mixer
> control and it all works fine, but only after the device has been opened.
> Before that the mixer control doesn't seem to exist, which means that we
> cannot adjust the gain until the device is opened by some application.

Before a device using a plugin is opened, no code from that plugin is
run.

Anyway, softvol mixer controls can be saved and restored with the usual
"alsactl store" and "alsactl restore" mechanism.  If you do not want to
save all mixer controls, or if your system does not have nonvolatile
storage, create a file containing only that control and tell alsactl to
restore from it.


Regards,
Clemens

  reply	other threads:[~2015-06-09 11:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09 11:08 Softvol only after device has opened Ricard Wanderlof
2015-06-09 11:52 ` Clemens Ladisch [this message]
2015-06-09 12:19   ` Ricard Wanderlof
2015-06-09 12:21     ` Clemens Ladisch
2015-06-09 12:32       ` Ricard Wanderlof
2015-06-09 12:39         ` Clemens Ladisch
2015-06-09 14:32           ` Ricard Wanderlof
2015-06-09 14:38             ` Takashi Iwai
2015-06-09 14:45               ` Ricard Wanderlof
2015-06-09 14:51                 ` Takashi Iwai
2015-06-09 15:53                   ` Ricard Wanderlof

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=5576D38C.4030907@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=ricard.wanderlof@axis.com \
    /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.