From patchwork Thu Jun 26 10:30:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanu Kaskinen X-Patchwork-Id: 4426951 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C5EA6BEEAA for ; Thu, 26 Jun 2014 10:31:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4855B201ED for ; Thu, 26 Jun 2014 10:31:07 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id EDC2F2038D for ; Thu, 26 Jun 2014 10:31:02 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9CEB2264EAA; Thu, 26 Jun 2014 12:31:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id A7238261691; Thu, 26 Jun 2014 12:30:50 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A9E0A261734; Thu, 26 Jun 2014 12:30:49 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by alsa0.perex.cz (Postfix) with ESMTP id 086B82610C1 for ; Thu, 26 Jun 2014 12:30:40 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 26 Jun 2014 03:30:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,552,1400050800"; d="scan'208";a="534425452" Received: from cpcarrag-mobl1.ger.corp.intel.com (HELO tkkaskin-mobl3.ger.corp.intel.com.ger.corp.intel.com) ([10.252.121.55]) by orsmga001.jf.intel.com with ESMTP; 26 Jun 2014 03:30:27 -0700 From: Tanu Kaskinen To: alsa-devel@alsa-project.org Date: Thu, 26 Jun 2014 13:30:25 +0300 Message-Id: <1403778625-4608-1-git-send-email-tanu.kaskinen@linux.intel.com> X-Mailer: git-send-email 1.9.3 Cc: Mark Brown , Felipe Tonello , Liam Girdwood Subject: [alsa-devel] [PATCH] ucm: Document PlaybackPCMIsDummy and CapturePCMIsDummy values X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP At least PulseAudio needs special handling for dummy devices. To allow that to happen automatically, the UCM configuration should contain the information about which PCMs are dummy. Signed-off-by: Tanu Kaskinen Acked-by: Liam Girdwood --- include/use-case.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/use-case.h b/include/use-case.h index 4e13249..f30168f 100644 --- a/include/use-case.h +++ b/include/use-case.h @@ -258,7 +258,17 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, * Recommended names for values: * TQ - Tone Quality * PlaybackPCM - full PCM playback device name + * PlaybackPCMIsDummy - Valid values: "yes" and "no". If set to "yes", the + * PCM named by the PlaybackPCM value is a dummy device, + * meaning that opening it enables an audio path in the + * hardware, but writing to the PCM device has no + * effect. * CapturePCM - full PCM capture device name + * CapturePCMIsDummy - Valid values: "yes" and "no". If set to "yes", the + * PCM named by the CapturePCM value is a dummy device, + * meaning that opening it enables an audio path in the + * hardware, but reading from the PCM device has no + * effect. * PlaybackRate - playback device sample rate * PlaybackChannels - playback device channel count * PlaybackCTL - playback control device name