All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liam Girdwood <lrg@ti.com>
To: Stephen Warren <swarren@nvidia.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"Mark Brown (broonie@opensource.wolfsonmicro.com)"
	<broonie@opensource.wolfsonmicro.com>
Subject: Re: UCM: Possible snd_use_case_get enhancements
Date: Mon, 6 Jun 2011 10:58:15 +0100	[thread overview]
Message-ID: <4DECA4B7.90208@ti.com> (raw)
In-Reply-To: <74CDBE0F657A3D45AFBB94109FB122FF0498E1C866@HQMAIL01.nvidia.com>

On 03/06/11 22:11, Stephen Warren wrote:
> Liam,
> 
> The recent patches I posted allow querying a modifier/device's supported/
> conflicting device list from a modifier/device either within the
> currently active verb (if any) or an explicitly defined verb.
> 
> I figured a similar enhancement to snd_use_case_get might be useful; i.e.
> to allow querying within a specific verb, and also to indicate that one
> shouldn't fall back to a verb, or overall values. I'd propose something
> like this:
> 
> NAME[[=]/<modifier>|<device>[/[=]<verb>]]
> 
> The "=" would prevent fallback to a "higher" object if present. So for
> example:
> 
> Current verb, not from device or modifier, with fallback to verb and
> ValueDefaults:
> 
> PlaybackVolume
> 
> Current verb, from device/modifier with fallback to verb and
> ValueDefaults:
> 
> PlaybackVolume/Play Music
> 
> Current verb, from dev/mod without fallback to verb or ValueDefaults:
> 
> PlaybackVolume/=Play Music
> 
> Specify a verb and dev/mod, but allow fallback to verb or ValueDefaults:
> 
> PlaybackVolume/Play Music/HiFi
> 
> Specify a verb and dev/mod, but no fallback to verb or ValueDefaults:
> 
> PlaybackVolume/=Play Music/=HiFi
> 
> One can also query from just a verb, with/without fallback:
> 
> PlaybackVolume//HiFi
> PlaybackVolume//=HiFi
> 
> Or current verb with no fallback:
> 
> PlaybackVolume//=
> 
> Does this seem useful, and a sane query string syntax?
> 

Sounds fine to me.

> An alternative would be to drop the added "=" stuff, and never auto-
> fallback. However, that'd be a regression relative to current
> functionality, force clients to implement fallback themselves, and make
> querying ValueDefaults hard.
> 

Thanks

Liam

      reply	other threads:[~2011-06-06  9:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-03 21:11 UCM: Possible snd_use_case_get enhancements Stephen Warren
2011-06-06  9:58 ` Liam Girdwood [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=4DECA4B7.90208@ti.com \
    --to=lrg@ti.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=swarren@nvidia.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.