From: Tanu Kaskinen Subject: [PATCH v2 2/2] ucm: improve jack configuration documentation Date: Thu, 5 Mar 2015 14:51:58 +0200 Message-ID: <1425559918-23075-3-git-send-email-tanu.kaskinen@linux.intel.com> References: <1425559918-23075-1-git-send-email-tanu.kaskinen@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by alsa0.perex.cz (Postfix) with ESMTP id 70A89265475 for ; Thu, 5 Mar 2015 13:52:05 +0100 (CET) In-Reply-To: <1425559918-23075-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: alsa-devel@alsa-project.org Cc: tiwai@suse.de, liam.r.girdwood@linux.intel.com, han.lu@intel.com List-Id: alsa-devel@alsa-project.org Signed-off-by: Tanu Kaskinen --- include/use-case.h | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/include/use-case.h b/include/use-case.h index d309522..e3308b1 100644 --- a/include/use-case.h +++ b/include/use-case.h @@ -301,12 +301,24 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, * - name of capture mixer * - CaptureMixerID * - mixer capture ID - * - JackDev - * - jack device name - * - JackControl - * - jack control name - * - JackHWMute - * - indicate if the HW mutes a device on jack insertion or not. + * - JackControl, JackDev, JackHWMute + * - Jack information for a device. The jack status can be reported via + * a kcontrol and/or via an input device. **JackControl** is the + * kcontrol name of the jack, and **JackDev** is the input device id of + * the jack (if the full input device path is /dev/input/by-id/foo, the + * JackDev value should be "foo"). UCM configuration files should + * contain both JackControl and JackDev when possible, because + * 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. */ int snd_use_case_get(snd_use_case_mgr_t *uc_mgr, const char *identifier, -- 1.9.3