From patchwork Thu Nov 7 01:58:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Curtis Malainey X-Patchwork-Id: 11231637 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2365615AB for ; Thu, 7 Nov 2019 02:06:30 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A61FC2187F for ; Thu, 7 Nov 2019 02:06:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="gsG+x5kZ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ElLE5SmO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A61FC2187F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id DFBC316A1; Thu, 7 Nov 2019 03:05:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DFBC316A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1573092388; bh=Z0/ywSmaeXyTwP4FSJAjJ+rQNe4jvXXvCf+ECcwXeOc=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=gsG+x5kZBMkzUvnN5XbCAJtr+n76UcuhhtehqvTur9tWFg05lQNnAG12ECMp+XvmX ZavDKw/cc/O5I6ju1Fx3JFLUAdsOGTIs9GTbhcglcv+9CCd4+12Vuf3S+yVefLQq3P 8yppOw1U7Zg2+a+wHKJ4BZ2lRe22IY0t/gpXpjuE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id F0E91F806FA; Thu, 7 Nov 2019 02:58:52 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1ADFCF8064C; Thu, 7 Nov 2019 02:58:47 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS,SURBL_BLOCKED,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E1DC2F8060F for ; Thu, 7 Nov 2019 02:58:43 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E1DC2F8060F Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ElLE5SmO" Received: by mail-pg1-x543.google.com with SMTP id 15so716318pgt.7 for ; Wed, 06 Nov 2019 17:58:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ox0AO9kWgLrhLk18Ku0peTzE0vVN9WNb0eNmf4Xm75Y=; b=ElLE5SmOCXH03H0i0V6LdXEQOdrOzxB8GZglJhPjJujcjQBM8Zt7WX+DmEsOgpqZEB BVgyN0yDQgLIWnApYqvjJVvyD41msn52iQb2LqoSZQI918HgePH8tFnQVvxl0MifgHGr snOMDjKB+yALeUejXTT+N+im5Xszt9gg+45aQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ox0AO9kWgLrhLk18Ku0peTzE0vVN9WNb0eNmf4Xm75Y=; b=oIWjwuSZSL7VJrtaTs7AjSWPiFMx6Pi+31O1LgUs+hNuQdXOf/4oXh9dfBo3njJdzO wIk8xAmPyrnTb8fo9RNE8kkDZ26hyeMQX+pUkK7Wn6G/vmKHncT5k85K4Op0riGjPHOT ekN/vdj0sPbKBl/jHaQUz4M0rRA/2fEH8zSL8VFJmcT1FphzDXkS1d16TvbSJDb4wthn bre9XR1nq3EpuRs4jS3kn8TjRdrIrQdRApNHWjEBBY+hl2XPCFPNOnPG+gGgoZaWmjmj FrKJvR7Dh/YT0c0KHz+NrEUVlCkioclQQA3vfyegGhKuq6scLGKHN/8xmyESd9aqOqwi yBsg== X-Gm-Message-State: APjAAAVoMwso7QXIKlK4HRDQ4WX5cL3AevvNMBB9exDVXiEmjnqRz3NJ fBzlsFZyW0OGwE9Wp2+8oCva+9HBdoZj X-Google-Smtp-Source: APXvYqyqJpjd23xYJtB0fhy2gtuWL4CCkndVDu4c0bssy+EKWYItYc/yjZikeaQAFU6YjOtP5A46Gg== X-Received: by 2002:a17:90a:fd88:: with SMTP id cx8mr1524712pjb.88.1573091921997; Wed, 06 Nov 2019 17:58:41 -0800 (PST) Received: from localhost ([2620:15c:202:201:c87a:31ae:9107:f63d]) by smtp.gmail.com with ESMTPSA id p16sm296682pfn.171.2019.11.06.17.58.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Nov 2019 17:58:41 -0800 (PST) From: Curtis Malainey To: alsa-devel@alsa-project.org Date: Wed, 6 Nov 2019 17:58:08 -0800 Message-Id: <20191107015808.26844-11-cujomalainey@chromium.org> X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-goog In-Reply-To: <20191107015808.26844-1-cujomalainey@chromium.org> References: <20191107015808.26844-1-cujomalainey@chromium.org> MIME-Version: 1.0 Cc: Curtis Malainey , broonie@kernel.org Subject: [alsa-devel] [PATCH 11/11] ucm: docs: Add DefaultNodeGain X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Allow ucm to specify a default hardware gain to overide on the respective node. Signed-off-by: Curtis Malainey --- include/use-case.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/use-case.h b/include/use-case.h index ee6ee5e0..d0e821d5 100644 --- a/include/use-case.h +++ b/include/use-case.h @@ -347,6 +347,8 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, * - SoftwareGain * - Specify the software gain in 0.01dB. E.g. "20" means there will be * 0.2 dB software gain on this node. + * - DefaultNodeGain + * - Change the default node gain. E.g: “-700” to set -7 dB on this node * - DisableSoftwareVolume * - Set to "1" to force userspace to use hardware volume controls */