From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: "Koul, Vinod" <vinod.koul@intel.com>
Cc: alsa <alsa-devel@alsa-project.org>, Liam <lrg@slimlogic.co.uk>
Subject: Re: SND_SOC_DAPM_VIRT_MUX question
Date: Mon, 11 Apr 2011 13:27:54 -0700 [thread overview]
Message-ID: <20110411202753.GE29405@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1302168008.27103.21.camel@vkoul-udesk3>
On Thu, Apr 07, 2011 at 02:50:08PM +0530, Koul, Vinod wrote:
> But the problem is that the this VIRT mux is not allowing me to change
> values :(, set to to 1.
> I remember that code checks if the path should be allowed for MUX and
> implements only if its allowed, but in virtual mix case it should not do
> so... or I am missing something?
It should be possible to set the mux to any value, the routes will only
be created if they exist but that shouldn't affect the control itself.
The only check _put_enum_virt() does is if the value is greater than the
number of elements in the enumeration.
However...
| static const char *sn95031_decoder_text[] = {"None", "Speaker",
| "Headset"};
| static const struct soc_enum sn95031_decoder_enum =
| SOC_ENUM_SINGLE(SND_SOC_NOPM, 0, 3, sn95031_decoder_text);
| static const struct snd_kcontrol_new sn95031_decoder_control =
| SOC_DAPM_ENUM("Route", sn95031_decoder_enum);
...I think you want to be using an ENUM_VIRT here?
prev parent reply other threads:[~2011-04-11 20:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-07 9:20 SND_SOC_DAPM_VIRT_MUX question Koul, Vinod
2011-04-11 20:27 ` Mark Brown [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=20110411202753.GE29405@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=alsa-devel@alsa-project.org \
--cc=lrg@slimlogic.co.uk \
--cc=vinod.koul@intel.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.