]> code.delx.au - pulseaudio/commit
alsa: Catch role matched streams to enable/disable modifier
authorFeng Wei <b34248@freescale.com>
Tue, 17 Jul 2012 10:17:21 +0000 (18:17 +0800)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 18 Jul 2012 05:23:29 +0000 (10:53 +0530)
commit3a92bda554c8f8cdd3257f289369e27c276c8801
tree4d2c2dfd67a6b2cd86f33f75576aba8380dbc901
parent801f286dfdf898213a4c6c21eadad55767be6a9c
alsa: Catch role matched streams to enable/disable modifier

In UCM basic functions, we only assign intended roles from modifier
to sink/source, but we don't have a chance to set the ucm modifiers.
Here we amend the functions so that when roled stream starts or
stops, we have the following results:
1. stream will be routed to sink/source specified in modifier by
   module-intended-roles
2. After that, modifier will be enabled or disabled.
3. when multiple streams with matched roles of modifier start, only
   the first one will enable the modifier, and when they end, the
   last one will disable the modifier.

Signed-off-by: Feng Wei <wei.feng@freescale.com>
Signed-off-by: Arun Raghavan <arun.raghavan@collabora.co.uk>
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c
src/modules/alsa/alsa-ucm.c
src/modules/alsa/alsa-ucm.h
src/modules/alsa/module-alsa-card.c