From: Clemens Ladisch <clemens@ladisch.de>
To: Anders Gnistrup <agn@datarespons.dk>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: What is wrong in this code.
Date: Tue, 18 Oct 2011 17:11:50 +0200 [thread overview]
Message-ID: <4E9D9736.5070801@ladisch.de> (raw)
In-Reply-To: <C516192DA6D2B74F8192CDC209D958FD5830652574@dr-mail>
Anders Gnistrup wrote:
> The code works just as expected when using the:
> snd_ctl_elem_id_set_name(id, "PCM Playback Volume");
> But when I use the snd_ctl_elem_id_set_numid(id, numid); (with numid=23) it fails.
> ...
> snd_ctl_elem_id_set_interface(id, SND_CTL_ELEM_IFACE_MIXER);
>
> //snd_ctl_elem_id_set_numid(id, numid);
> snd_ctl_elem_id_set_name(id, "PCM Playback Volume");
When using the numid to access elements, it must be the only field
that is set in the elem id.
Regards,
Clemens
next prev parent reply other threads:[~2011-10-18 15:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-18 13:18 What is wrong in this code Anders Gnistrup
2011-10-18 15:11 ` Clemens Ladisch [this message]
2011-10-19 7:05 ` Anders Gnistrup
2011-10-19 7:41 ` 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=4E9D9736.5070801@ladisch.de \
--to=clemens@ladisch.de \
--cc=agn@datarespons.dk \
--cc=alsa-devel@alsa-project.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