From: Takashi Iwai Subject: Re: [PATCH] ucm: allow multiple devices in JackHWMute Date: Mon, 18 May 2015 10:43:44 +0200 Message-ID: References: <1430755838-16445-1-git-send-email-tanu.kaskinen@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 8C52C2604F0 for ; Mon, 18 May 2015 10:43:45 +0200 (CEST) In-Reply-To: <1430755838-16445-1-git-send-email-tanu.kaskinen@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Tanu Kaskinen Cc: Liam Girdwood , alsa-devel@alsa-project.org, Mark Brown , Arun Raghavan , David Henningsson List-Id: alsa-devel@alsa-project.org At Mon, 4 May 2015 19:10:38 +0300, Tanu Kaskinen wrote: > > 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 > Acked-by: Liam Girdwood > Acked-by: Mark Brown Applied, thanks. Takashi > --- > include/use-case.h | 17 +++++++++-------- > 1 file changed, 9 insertions(+), 8 deletions(-) > > > Changes in v2: > - Fixed the typo that Arun pointed out. > - Send to alsa-devel (v1 was accidentally not sent to the list). > > > diff --git a/include/use-case.h b/include/use-case.h > index e3308b1..c7789c0 100644 > --- a/include/use-case.h > +++ b/include/use-case.h > @@ -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. > * > * If **JackHWMute** is set, it indicates that when the jack is plugged > - * in, the hardware automatically mutes some other device. The > - * JackHWMute value is the name of the muted device. Note that > - * JackHWMute should be used only when the hardware enforces the > - * automatic muting. If the hardware doesn't enforce any muting, it may > - * still be tempting to set JackHWMute to trick upper software layers to > - * e.g. automatically mute speakers when headphones are plugged in, but > - * that's application policy configuration that doesn't belong to UCM > - * configuration files. > + * in, the hardware automatically mutes some other device(s). The > + * JackHWMute value is a space-separated list of device names (this > + * isn't compatible with device names with spaces in them, so don't use > + * such device names!). Note that JackHWMute should be used only when > + * the hardware enforces the automatic muting. If the hardware doesn't > + * enforce any muting, it may still be tempting to set JackHWMute to > + * trick upper software layers to e.g. automatically mute speakers when > + * 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, > const char *identifier, > -- > 1.9.3 >