ucm: allow multiple devices in JackHWMute

One jack may mute multiple devices, so let's make JackHWMute a list of
device names instead of just a single device name.

Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Tanu Kaskinen 2015-05-04 19:10:38 +03:00 committed by Takashi Iwai
parent 404951da5e
commit b4222f3fdc

View file

@ -311,14 +311,15 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
* applications are likely to support only one or the other. * applications are likely to support only one or the other.
* *
* If **JackHWMute** is set, it indicates that when the jack is plugged * If **JackHWMute** is set, it indicates that when the jack is plugged
* in, the hardware automatically mutes some other device. The * in, the hardware automatically mutes some other device(s). The
* JackHWMute value is the name of the muted device. Note that * JackHWMute value is a space-separated list of device names (this
* JackHWMute should be used only when the hardware enforces the * isn't compatible with device names with spaces in them, so don't use
* automatic muting. If the hardware doesn't enforce any muting, it may * such device names!). Note that JackHWMute should be used only when
* still be tempting to set JackHWMute to trick upper software layers to * the hardware enforces the automatic muting. If the hardware doesn't
* e.g. automatically mute speakers when headphones are plugged in, but * enforce any muting, it may still be tempting to set JackHWMute to
* that's application policy configuration that doesn't belong to UCM * trick upper software layers to e.g. automatically mute speakers when
* configuration files. * headphones are plugged in, but that's application policy
* configuration that doesn't belong to UCM configuration files.
*/ */
int snd_use_case_get(snd_use_case_mgr_t *uc_mgr, int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
const char *identifier, const char *identifier,