From: Will Wagner <will_wagner@carallon.com>
To: Gustavo da Silva Serra <gustavo.serra@tet.com.br>
Cc: alsa-devel@alsa-project.org
Subject: Re: softvol plugin question
Date: Wed, 07 May 2008 19:25:46 +0100 [thread overview]
Message-ID: <4821F42A.6020601@carallon.com> (raw)
In-Reply-To: <4821E43A.5050402@tet.com.br>
Gustavo da Silva Serra wrote:
> I had this problem with alsamixer itself. It doesn't appear until I call
> "alsactl restore". To automate I added this line to /etc/rc.local.
>
Thanks, that fixed it.
As an aside I had to patch alsa-utils/alsactl/names.c to make it work
with my alsa lib as I have disabled midi & seq support. The patch is
below, the problem with it is that alsa-lib does not expose in a header
anywhere what is enabled/disabled (alsa-lib/include/config.h appears to
be a private header that does not get installed).
--- alsa-utils-1.0.16/alsactl/names.c 2008-05-07 19:03:59.000000000 +0100
+++ alsa-utils-1.0.16/alsactl/names.c.new 2008-05-07 19:03:53.000000000
+0100
@@ -282,6 +282,7 @@ static int probe_pcm(snd_config_t *confi
return 0;
}
+#ifdef BUILD_RAWMIDI
static int probe_rawmidi_virtual(snd_config_t *config,
const char *name, const char *comment)
{
@@ -411,6 +412,7 @@ static int probe_rawmidi(snd_config_t *c
return err;
return 0;
}
+#endif // BUILD_RAWMIDI
static int probe_timers(snd_config_t *config)
{
@@ -473,6 +475,7 @@ static int probe_timer(snd_config_t *con
return 0;
}
+#ifdef BUILD_SEQ
static int probe_seq(snd_config_t *config)
{
int err;
@@ -492,15 +495,20 @@ static int probe_seq(snd_config_t *confi
return err;
return 0;
}
+#endif
typedef int (probe_fcn)(snd_config_t *config);
static probe_fcn * probes[] = {
probe_ctl,
probe_pcm,
+#ifdef BUILD_RAWMIDI
probe_rawmidi,
+#endif
probe_timer,
+#ifdef BUILD_SEQ
probe_seq,
+#endif
NULL
};
--
------------------------------------------------------------------------
Will Wagner will_wagner@carallon.com
Senior Project Engineer Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
next prev parent reply other threads:[~2008-05-07 18:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 13:34 softvol plugin question Will Wagner
2008-05-07 17:17 ` Gustavo da Silva Serra
2008-05-07 18:25 ` Will Wagner [this message]
2008-05-08 16:23 ` Takashi Iwai
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=4821F42A.6020601@carallon.com \
--to=will_wagner@carallon.com \
--cc=alsa-devel@alsa-project.org \
--cc=gustavo.serra@tet.com.br \
/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).