[alsa-devel] [PATCH 1/5] UCM: Deprecate index on Section{Device, Modifier}

Liam Girdwood lrg at ti.com
Mon Jun 6 11:48:14 CEST 2011


On 03/06/11 21:56, Stephen Warren wrote:
> The previous supported "legacy" syntax was:
> 
> SectionDevice."Speaker".0 {
> SectionModifier."Capture Voice".0 {
> 
> This change supports new syntax:
> 
> SectionDevice."Speaker" {
> SectionModifier."Capture Voice" {
> 
> ... but also allows the old syntax, iff the index is exactly "0". If an
> index is present, but not exactly "0", parsing will appear to succeed,
> but produce an empty device or modifier.
> 
> When naming devices and modifiers, even if the legacy format is used,
> any index is not included in the name; i.e. both sets of syntax above
> name the device just "Speaker".
> 
> The SupportedDevice list syntax still also accepts either "x" or "x.0",
> but internally strips ".0" from the tail of any device name. Any other
> name including "." is disallowed.
> 
> Finally, when comparing device or modifier names, a simple exact string
> compare is now used, since no index data is ever present in device or
> modifier names.
> 
> The one functional change introduced here is that a SupportedDevice
> entry of just "x" will now only ever match a single device. It previously
> acted as a wildcard for any device named "x.foo".
> 
> Signed-off-by: Stephen Warren <swarren at nvidia.com>

All

Acked-by: Liam Girdwood <lrg at ti.com>


More information about the Alsa-devel mailing list