From patchwork Thu Mar 5 13:44:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 11421845 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 12BBA1580 for ; Thu, 5 Mar 2020 13:46:19 +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 9D618208C3 for ; Thu, 5 Mar 2020 13:46:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="r7r/8ixz"; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cMgpk3pp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9D618208C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.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 D2C80827; Thu, 5 Mar 2020 14:45:32 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D2C80827 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1583415976; bh=xWE+O0nW/2cUBX6HD1hidlw/xsOZ4Dth7pc/BpAIx28=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=r7r/8ixzDy5d429cf3FZvsx2lHSj8A7do45kKaUe68ik1KXXRJ9n1I8NqFcyeNHF5 5tNfDg1YoVHyvTPV09TwfpG23W7HiQVcf+HYlOER2/8vRtTGrrmZeoLb93NU7zQEBa JmWNu+uGbvGIlRFXHZY2P42ZrDL3jZLkeQA6upIg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 40BD4F80271; Thu, 5 Mar 2020 14:44:42 +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 74DB8F80126; Thu, 5 Mar 2020 14:44:40 +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=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (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 83FFAF80126 for ; Thu, 5 Mar 2020 14:44:34 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 83FFAF80126 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cMgpk3pp" Received: by mail-wr1-x42d.google.com with SMTP id v4so7083048wrs.8 for ; Thu, 05 Mar 2020 05:44:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tkkdkuj2nMIqRYSUpJgIISztIjHhGG24T2FE65a4WvI=; b=cMgpk3pps/kLc7FO2rFNJQa09CAaneKjKetzaJa/BuX2MES2mW/d6QS/zXTMyON30D wy0DqGPeYIlBVmFiMDzTf3/KdSqYbrmmh5hGSTeTXy5BqheONbNvb4WOmkOj/6qi2mSe Pog89Cp85VjxFxrADjxjIKl3036gQ1HrZO4bc0px2BFHJvQAoE6kIoxB/ts7SmQpKgjR +iCsrymHUesisHPDfny73L5+k6Lrzh7OQT/ZqOQUZ0PoHL7lhl9rUMZxG3vR63X2y1sF SSnk+aARsQgxWuq/U8Wu3dfXmmBOM4Wbrq11229xE8jLLbpHEyeO/IILeF/OZ2wqVzTn R1eg== 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=tkkdkuj2nMIqRYSUpJgIISztIjHhGG24T2FE65a4WvI=; b=b2NHYxgi9As5NBH2OHL0b8qHPdchJC/aaqBnIBseoSzpxLs4Wf3r2x3KIkh1LCNfWb ss2cn/1TjXZL8rN6ucdpB/XG0w+fcxscdoBpT/Dxvb2H3EjhyUNTDlk3TgBDCWGkQ+qe LNCCCChPk6L9f2uZ76yz2e7CalW5PiNXdI+iWfG24VGN0/qhnr5AnG8mWINR1uXxhba3 hxhDI54EQ9Pp3zdAf+kbkCRCgvtHcumvNaQBybsD5Bn8L6CeU6gvHSQ+Xs8o3PdYMEPm Uuc3BedJHdRlUlkiqQi6JJTe/WrThM/mrsBv3PcURSY702OEoNPAIkhNmUOLZToW6sRH Ch/g== X-Gm-Message-State: ANhLgQ1OYVWMDLx+gPdK5qrA8UQo7oT4VsrjHMOJNvRcTjCM6UW6vdnh L5BLVwjEQIJv3eILYtJG3TPmgA== X-Google-Smtp-Source: ADFU+vuvKskKTBdQ1yL8h+kiMzqWUIvCVnh5PzwGM2oCe76SKtCt9bddLJp0G6cNPoSSziSJqKbsgQ== X-Received: by 2002:adf:e803:: with SMTP id o3mr9965035wrm.110.1583415873508; Thu, 05 Mar 2020 05:44:33 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id o9sm46425385wrw.20.2020.03.05.05.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 05:44:32 -0800 (PST) From: Srinivas Kandagatla To: perex@perex.cz Subject: [PATCH 1/4] ucm2: codecs: wcd934x: Add Codec sequences. Date: Thu, 5 Mar 2020 13:44:01 +0000 Message-Id: <20200305134404.7690-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200305134404.7690-1-srinivas.kandagatla@linaro.org> References: <20200305134404.7690-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla 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" Add WCD934x codec sequences to be used by other platforms like DB845c and Lenovo YOGA C630 Signed-off-by: Srinivas Kandagatla --- ucm2/codecs/wcd934x/DefaultDisableSeq.conf | 5 +++++ ucm2/codecs/wcd934x/DefaultEnableSeq.conf | 14 ++++++++++++++ ucm2/codecs/wcd934x/HeadphoneDisableSeq.conf | 6 ++++++ ucm2/codecs/wcd934x/HeadphoneEnableSeq.conf | 6 ++++++ ucm2/codecs/wcd934x/HeadphoneMicDisableSeq.conf | 2 ++ ucm2/codecs/wcd934x/HeadphoneMicEnableSeq.conf | 3 +++ ucm2/codecs/wcd934x/SpeakerDisableSeq.conf | 4 ++++ ucm2/codecs/wcd934x/SpeakerEnableSeq.conf | 4 ++++ 8 files changed, 44 insertions(+) create mode 100644 ucm2/codecs/wcd934x/DefaultDisableSeq.conf create mode 100644 ucm2/codecs/wcd934x/DefaultEnableSeq.conf create mode 100644 ucm2/codecs/wcd934x/HeadphoneDisableSeq.conf create mode 100644 ucm2/codecs/wcd934x/HeadphoneEnableSeq.conf create mode 100644 ucm2/codecs/wcd934x/HeadphoneMicDisableSeq.conf create mode 100644 ucm2/codecs/wcd934x/HeadphoneMicEnableSeq.conf create mode 100644 ucm2/codecs/wcd934x/SpeakerDisableSeq.conf create mode 100644 ucm2/codecs/wcd934x/SpeakerEnableSeq.conf diff --git a/ucm2/codecs/wcd934x/DefaultDisableSeq.conf b/ucm2/codecs/wcd934x/DefaultDisableSeq.conf new file mode 100644 index 0000000..88d82a3 --- /dev/null +++ b/ucm2/codecs/wcd934x/DefaultDisableSeq.conf @@ -0,0 +1,5 @@ +cset "name='RX INT7_1 MIX1 INP0' ZERO" +cset "name='RX INT8_1 MIX1 INP0' ZERO" +cset "name='RX INT1_2 MUX' ZERO" +cset "name='RX INT2_2 MUX' ZERO" +cset "name='CDC_IF TX0 MUX' ZERO" diff --git a/ucm2/codecs/wcd934x/DefaultEnableSeq.conf b/ucm2/codecs/wcd934x/DefaultEnableSeq.conf new file mode 100644 index 0000000..e5bdbbd --- /dev/null +++ b/ucm2/codecs/wcd934x/DefaultEnableSeq.conf @@ -0,0 +1,14 @@ +cset "name='SLIM RX1 MUX' AIF1_PB" +cset "name='SLIM RX2 MUX' AIF1_PB" +cset "name='SLIM RX6 MUX' ZERO" +cset "name='SLIM RX7 MUX' ZERO" +cset "name='SLIM RX3 MUX' ZERO" +cset "name='SLIM RX4 MUX' ZERO" +cset "name='SLIM RX5 MUX' ZERO" +cset "name='AIF1_CAP Mixer SLIM TX0' 1" + +cset "name='RX INT7_1 MIX1 INP0' RX1" +cset "name='RX INT8_1 MIX1 INP0' RX2" +cset "name='RX INT1_2 MUX' RX1" +cset "name='RX INT2_2 MUX' RX2" +cset "name='CDC_IF TX0 MUX' DEC0" diff --git a/ucm2/codecs/wcd934x/HeadphoneDisableSeq.conf b/ucm2/codecs/wcd934x/HeadphoneDisableSeq.conf new file mode 100644 index 0000000..0206e87 --- /dev/null +++ b/ucm2/codecs/wcd934x/HeadphoneDisableSeq.conf @@ -0,0 +1,6 @@ +cset "name='COMP1 Switch' 0" +cset "name='COMP2 Switch' 0" +cset "name='RX1 Digital Volume' 0" +cset "name='RX2 Digital Volume' 0" +cset "name='RX INT1 DEM MUX' ZERO" +cset "name='RX INT2 DEM MUX' ZERO" diff --git a/ucm2/codecs/wcd934x/HeadphoneEnableSeq.conf b/ucm2/codecs/wcd934x/HeadphoneEnableSeq.conf new file mode 100644 index 0000000..5ce7950 --- /dev/null +++ b/ucm2/codecs/wcd934x/HeadphoneEnableSeq.conf @@ -0,0 +1,6 @@ +cset "name='COMP1 Switch' 1" +cset "name='COMP2 Switch' 1" +cset "name='RX INT1 DEM MUX' CLSH_DSM_OUT" +cset "name='RX INT2 DEM MUX' CLSH_DSM_OUT" +cset "name='RX1 Digital Volume' 68" +cset "name='RX2 Digital Volume' 68" diff --git a/ucm2/codecs/wcd934x/HeadphoneMicDisableSeq.conf b/ucm2/codecs/wcd934x/HeadphoneMicDisableSeq.conf new file mode 100644 index 0000000..5558446 --- /dev/null +++ b/ucm2/codecs/wcd934x/HeadphoneMicDisableSeq.conf @@ -0,0 +1,2 @@ +cset "name='AMIC MUX0' ZERO" +cset "name='ADC2 Volume' 0" diff --git a/ucm2/codecs/wcd934x/HeadphoneMicEnableSeq.conf b/ucm2/codecs/wcd934x/HeadphoneMicEnableSeq.conf new file mode 100644 index 0000000..ad43830 --- /dev/null +++ b/ucm2/codecs/wcd934x/HeadphoneMicEnableSeq.conf @@ -0,0 +1,3 @@ +cset "name='AMIC MUX0' ADC2" +cset "name='ADC2 Volume' 12" +cset "name='ADC MUX0' AMIC" diff --git a/ucm2/codecs/wcd934x/SpeakerDisableSeq.conf b/ucm2/codecs/wcd934x/SpeakerDisableSeq.conf new file mode 100644 index 0000000..3c977c8 --- /dev/null +++ b/ucm2/codecs/wcd934x/SpeakerDisableSeq.conf @@ -0,0 +1,4 @@ +cset "name='RX7 Digital Volume' 0" +cset "name='RX8 Digital Volume' 0" +cset "name='COMP7 Switch' 0" +cset "name='COMP8 Switch' 0" diff --git a/ucm2/codecs/wcd934x/SpeakerEnableSeq.conf b/ucm2/codecs/wcd934x/SpeakerEnableSeq.conf new file mode 100644 index 0000000..2d9a3d8 --- /dev/null +++ b/ucm2/codecs/wcd934x/SpeakerEnableSeq.conf @@ -0,0 +1,4 @@ +cset "name='COMP7 Switch' 1" +cset "name='COMP8 Switch' 1" +cset "name='RX7 Digital Volume' 80" +cset "name='RX8 Digital Volume' 80" From patchwork Thu Mar 5 13:44:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 11421851 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 53428924 for ; Thu, 5 Mar 2020 13:47:41 +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 DEEFF21741 for ; Thu, 5 Mar 2020 13:47:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="hPgz3Lpd"; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T5F5b3Hi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DEEFF21741 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.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 3C99E15F8; Thu, 5 Mar 2020 14:46:55 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3C99E15F8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1583416059; bh=GyQGXTcEnVt8OJkNit7VGUoNcZXl2tfU6IZ2owiidbY=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=hPgz3Lpd56ImxL+HKLn8Yzcyqz30ceQ4jnhq8X8nSuN3vmi5LktjzRFwB49rOJ7RL CnQ8VZIkl2UEEqXvQGxCOE2UMPbss5tsoMK2bWNWxCfM+jxerYssq26ldhtV3CmDOz 7mrRkCWOFHv9w7R6Gv2ZSlAD8dyn2bcsBFm9N4HY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 42AA7F8028F; Thu, 5 Mar 2020 14:44:45 +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 7F752F80126; Thu, 5 Mar 2020 14:44:42 +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=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) (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 21D2DF80245 for ; Thu, 5 Mar 2020 14:44:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 21D2DF80245 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T5F5b3Hi" Received: by mail-wm1-x32b.google.com with SMTP id p9so6383943wmc.2 for ; Thu, 05 Mar 2020 05:44:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dygBM3IDQ/peiC6pjioj9RigGEuEYQO9/0owHDjAWPs=; b=T5F5b3HiKx+y9ClklvqYnZ2nFWcudDtoe5xksEQEima6tkgVl2m20wVzv34hs4q5Px 5GHr4/P8wbuqx59tG2zvMcXjQW3JKgXj/iSmHnqmTbDTFE2tPRrotAKTtPL8ZLxcrtBv B9T5SLa5c+c4lDw6+FEzPmvgDJ6q9x5NSrhlcPscyQGgLzZeY3IFdhuOkguAEpn2wMf8 CrAb+cyv4g/caXiHmtRxFwt8VwHTZoQT4YsvHjKbZJps1IemSRICb7t37J1wTYF99BoN svpCxtQaNd9UqpBGyC2Og7FT2bKQEqd5xSNE/WsfWfpCd0oHg2e8hd4IoHLnXne01WXo 9aZA== 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=dygBM3IDQ/peiC6pjioj9RigGEuEYQO9/0owHDjAWPs=; b=Ey2gSMl6svA11vwGE7M3Z8r36fQMMSB/TX/R5Yp+shk1R9N/H9TdRlL6JiOxuJE3DX pVasUJhmTfMcDNG7cvquVUdniJ3eyp+2w9J1cTW7LrzJQDVsa5A3QOmd+Efm/a0Q/pL5 TT0UPuw8imcXq77ll55GV/VuGog5uj9sNvpGeWMendFJY/2fMXKwurJZy3cjk5dKUGlB vS+sWABQIck+37wmSL90J2Zvjgbyp1SkNWlPZ+x0ZoFosoD/+wztD2JWL8jjVlw6y3sI /M7nD++TZlmPc3THu7fhbazb5E9Bgl/IoSzBdQKxSlNyGudA64Mu5QOiNCMCxUcdBUvl qc6w== X-Gm-Message-State: ANhLgQ3sI/TqawsUEpMMQjR67wkzOQ1KzlZsaHXWsqUvQlY763CL1pxC 3e3yEXOamlAZbNYd8ttt1t9dSQ== X-Google-Smtp-Source: ADFU+vsAIXP78B86ryXOiySfTqSQsvyoXwKCwd3i3WQxdWaNvuzCA0WLXme6LHpYN2Hc4/GmLt8OnA== X-Received: by 2002:a1c:9d85:: with SMTP id g127mr9612269wme.75.1583415874742; Thu, 05 Mar 2020 05:44:34 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id o9sm46425385wrw.20.2020.03.05.05.44.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 05:44:34 -0800 (PST) From: Srinivas Kandagatla To: perex@perex.cz Subject: [PATCH 2/4] ucm2: codecs: wsa881x: add codec sequences Date: Thu, 5 Mar 2020 13:44:02 +0000 Message-Id: <20200305134404.7690-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200305134404.7690-1-srinivas.kandagatla@linaro.org> References: <20200305134404.7690-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla 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" Add default, enable/disable codec sequence for wsa881x codec Signed-off-by: Srinivas Kandagatla --- ucm2/codecs/wsa881x/DefaultEnableSeq.conf | 8 ++++++++ ucm2/codecs/wsa881x/SpeakerDisableSeq.conf | 8 ++++++++ ucm2/codecs/wsa881x/SpeakerEnableSeq.conf | 8 ++++++++ 3 files changed, 24 insertions(+) create mode 100644 ucm2/codecs/wsa881x/DefaultEnableSeq.conf create mode 100644 ucm2/codecs/wsa881x/SpeakerDisableSeq.conf create mode 100644 ucm2/codecs/wsa881x/SpeakerEnableSeq.conf diff --git a/ucm2/codecs/wsa881x/DefaultEnableSeq.conf b/ucm2/codecs/wsa881x/DefaultEnableSeq.conf new file mode 100644 index 0000000..499342b --- /dev/null +++ b/ucm2/codecs/wsa881x/DefaultEnableSeq.conf @@ -0,0 +1,8 @@ +cset "name='SpkrLeft COMP Switch' 1" +cset "name='SpkrLeft BOOST Switch' 1" +cset "name='SpkrLeft DAC Switch' 1" +cset "name='SpkrLeft VISENSE Switch' 0" +cset "name='SpkrRight COMP Switch' 1" +cset "name='SpkrRight BOOST Switch' 1" +cset "name='SpkrRight DAC Switch' 1" +cset "name='SpkrRight VISENSE Switch' 0" diff --git a/ucm2/codecs/wsa881x/SpeakerDisableSeq.conf b/ucm2/codecs/wsa881x/SpeakerDisableSeq.conf new file mode 100644 index 0000000..9614422 --- /dev/null +++ b/ucm2/codecs/wsa881x/SpeakerDisableSeq.conf @@ -0,0 +1,8 @@ +cset "name='SpkrLeft COMP Switch' 0" +cset "name='SpkrLeft BOOST Switch' 0" +cset "name='SpkrLeft DAC Switch' 0" +cset "name='SpkrLeft VISENSE Switch' 0" +cset "name='SpkrRight COMP Switch' 0" +cset "name='SpkrRight BOOST Switch' 0" +cset "name='SpkrRight DAC Switch' 0" +cset "name='SpkrRight VISENSE Switch' 0" diff --git a/ucm2/codecs/wsa881x/SpeakerEnableSeq.conf b/ucm2/codecs/wsa881x/SpeakerEnableSeq.conf new file mode 100644 index 0000000..499342b --- /dev/null +++ b/ucm2/codecs/wsa881x/SpeakerEnableSeq.conf @@ -0,0 +1,8 @@ +cset "name='SpkrLeft COMP Switch' 1" +cset "name='SpkrLeft BOOST Switch' 1" +cset "name='SpkrLeft DAC Switch' 1" +cset "name='SpkrLeft VISENSE Switch' 0" +cset "name='SpkrRight COMP Switch' 1" +cset "name='SpkrRight BOOST Switch' 1" +cset "name='SpkrRight DAC Switch' 1" +cset "name='SpkrRight VISENSE Switch' 0" From patchwork Thu Mar 5 13:44:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 11421849 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 D6A5F924 for ; Thu, 5 Mar 2020 13:47:05 +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 6920B2073D for ; Thu, 5 Mar 2020 13:47:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="OPFY6I2R"; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LFPBXZrN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6920B2073D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.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 C70E7836; Thu, 5 Mar 2020 14:46:19 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C70E7836 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1583416023; bh=L9cAAeP4cp7Nm6mnA9f3Ni9dgYKI8CBCqYZ3lxTc1dk=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=OPFY6I2RJWsT7vJOHrPx3giH4TJ5L3Q3H8DbCbBVk4O3EaZeZftZGixMc5jHourbI G9eIpwYVdEuK3WwKQmXA8XCcJZeiTJmTXICv561xQ5wh+VJHTLelcrl4Fx9VKSQVQU MKu5hEfO1sfjha7vJfqBSdlXgQOR1/C2FDpr7S+c= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 61089F80126; Thu, 5 Mar 2020 14:44:44 +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 16E7EF8027B; Thu, 5 Mar 2020 14:44:42 +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=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,SURBL_BLOCKED,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 C4764F80271 for ; Thu, 5 Mar 2020 14:44:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C4764F80271 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LFPBXZrN" Received: by mail-wr1-x432.google.com with SMTP id n7so7053919wrt.11 for ; Thu, 05 Mar 2020 05:44:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3mtYQ2g0Fwnc43AgEkYTiZNvX6sckY67GLcRYXE9tg8=; b=LFPBXZrNhYnmPvWAg8AAsNmViD7SvtUABwKX33aEiJew9ip6Piqyw7vSm042p1M575 HHdeDc7EL7ygVbK2+u51x3SFw2DeZRbHSbW5ATRvD3QsxuWy1CwtgHhy3Su1qi85P1XG X+GUMz/VyNVX4RUkx6NUgEcNs5gXkfW5kcX385tGFXT0YpPcgFHdGmEY2WZyKNo8tQ6W RZvd1+vB5NLk5g1NKdXXruYw84mup0tXZp2Rz540b9DBj2a+oOsUbj8JcxHQdabFJ7LF 1ivhhDHQlU+Vw+8/L+Hd/8PLJyH6hrr/RZPIA3UOS9a7AHFSamJoWnyZtToImz7zK4eT 2QjQ== 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=3mtYQ2g0Fwnc43AgEkYTiZNvX6sckY67GLcRYXE9tg8=; b=PT3tbBrQF8sPlYOM9h1KRu+hNkGxFju2608yI/d6t3ISs1af8RKBEcw8kzDMY7mYqL 4Xjoa+SRmmMogzn+QbO9med20ZHhoF46n2g9/Yb1VEq5uSfkpm9yfczfk8D59mO5XGjb Ex6QlRsNGTpoztpdmxBp6oAUcrWhYvph8WlQctbb8sa2DB7qqvR8WkN/NyngsT3w0ls7 ACslK8hnqiCo2XWmb6PrWqVubRCMjrhvQMgzViTVGnB2Q0UCGPb7+5aDGwFF3gVjmdRq qNyUf+5DxaTn/9dyEukeLjR1jyhmD/d2zuJoJeJpNOOr6rWFt1bLDSMnY3Wwb5E+AUDl 3JIw== X-Gm-Message-State: ANhLgQ3UAMXjg0Jl1Q8kxHUEN6O5aKiR0BjBjihLld9rtc8cIQqbIuLA WNwK9Nge6HAVVHhxoR99Y9E0bA== X-Google-Smtp-Source: ADFU+vt7T3Yw7yXFICb89dEAPJht12+DUg4qe9Mb5GR5JTE+VVLO/UTTRDuy/awP5YoDHzVJSayeyg== X-Received: by 2002:a5d:534c:: with SMTP id t12mr11002558wrv.105.1583415876233; Thu, 05 Mar 2020 05:44:36 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id o9sm46425385wrw.20.2020.03.05.05.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 05:44:35 -0800 (PST) From: Srinivas Kandagatla To: perex@perex.cz Subject: [PATCH 3/4] ucm2: DB845c: Add ucm for DB845c board Date: Thu, 5 Mar 2020 13:44:03 +0000 Message-Id: <20200305134404.7690-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200305134404.7690-1-srinivas.kandagatla@linaro.org> References: <20200305134404.7690-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla 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" DB845c board by default has two WSA881x speakers and HDMI audio connections. Signed-off-by: Srinivas Kandagatla --- ucm2/DB845c/DB845c.conf | 11 ++++++++++ ucm2/DB845c/HDMI.conf | 33 +++++++++++++++++++++++++++++ ucm2/DB845c/HiFi.conf | 46 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 90 insertions(+) create mode 100644 ucm2/DB845c/DB845c.conf create mode 100644 ucm2/DB845c/HDMI.conf create mode 100644 ucm2/DB845c/HiFi.conf diff --git a/ucm2/DB845c/DB845c.conf b/ucm2/DB845c/DB845c.conf new file mode 100644 index 0000000..bfd1ee5 --- /dev/null +++ b/ucm2/DB845c/DB845c.conf @@ -0,0 +1,11 @@ +Syntax 2 + +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "HiFi quality Music." +} + +SectionUseCase."HDMI" { + File "HDMI.conf" + Comment "HDMI output." +} diff --git a/ucm2/DB845c/HDMI.conf b/ucm2/DB845c/HDMI.conf new file mode 100644 index 0000000..0a17f68 --- /dev/null +++ b/ucm2/DB845c/HDMI.conf @@ -0,0 +1,33 @@ +# Use case configuration for DB845c board. +# Author: Srinivas Kandagatla + +SectionVerb { + EnableSequence [ + cdev "hw:DB845c" + cset "name='QUAT_MI2S_RX Audio Mixer MultiMedia1' 1" + ] + + DisableSequence [ + cdev "hw:DB845c" + cset "name='QUAT_MI2S_RX Audio Mixer MultiMedia1' 0" + ] + Value { + TQ "HiFi" + PlaybackPCM "hw:DB845c,0" + } +} + +SectionDevice."HDMI-stereo" { + #Name "HDMI-stereo" + Comment "HDMI Digital Stereo Output" + + EnableSequence [ + ] + + DisableSequence [ + ] + + Value { + PlaybackChannels "2" + } +} diff --git a/ucm2/DB845c/HiFi.conf b/ucm2/DB845c/HiFi.conf new file mode 100644 index 0000000..a169bfd --- /dev/null +++ b/ucm2/DB845c/HiFi.conf @@ -0,0 +1,46 @@ +# Use case configuration for DB845c. +# Author: Srinivas Kandagatla + +SectionVerb { + + EnableSequence [ + cdev "hw:DB845c" + cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia2' 1" + + + + ] + + DisableSequence [ + cdev "hw:DB845c" + + cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia2' 0" + ] + + Value { + TQ "HiFi" + } +} + +SectionDevice."Speakers" { + Comment "Speakers playback" + + EnableSequence [ + cdev "hw:DB845c" + + + ] + + DisableSequence [ + cdev "hw:DB845c" + + + ] + + Value { + PlaybackPCM "hw:DB845c,1" + PlaybackChannels "2" + PlaybackVolume "RX1 Digital Volume" + PlaybackVolume "RX2 Digital Volume" + } +} From patchwork Thu Mar 5 13:44:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 11421853 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 EF5B2924 for ; Thu, 5 Mar 2020 13:48:09 +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 85186208CD for ; Thu, 5 Mar 2020 13:48:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="iQIorGYN"; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XXe9aI7p" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 85186208CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.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 DBB6C1669; Thu, 5 Mar 2020 14:47:23 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DBB6C1669 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1583416088; bh=UOt1H8NP5MaSY+gRxkB1SPaLZLOOSX8oIjCqzzxqi2I=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=iQIorGYNJmR5+cW2bHFv5llUsAW9ypXPpamP5cZyunekumhUXWF3spWaaYjh25eFT uoJGGjFYB7FXP4/gY0/0jWUi+5uwVddOKkCwCBNYAxz0YnTdQ0XFgwV731JxDhqrex UEI7ZdzT3THsszp+BLhm9v568YitJp4Fo1k9ujXE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BB46EF802A0; Thu, 5 Mar 2020 14:45:32 +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 5E718F802A2; Thu, 5 Mar 2020 14:45:31 +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=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (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 0F586F80279 for ; Thu, 5 Mar 2020 14:44:38 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0F586F80279 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XXe9aI7p" Received: by mail-wr1-x42c.google.com with SMTP id n15so1742746wrw.13 for ; Thu, 05 Mar 2020 05:44:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=of+4vsKlSC3WMQUMuhHUy8sKmlS/zCzuvWW0knTqyT8=; b=XXe9aI7ptbSO+7djeLIawTYhBi42YFggkfumbSiHXdQRRyXt0gyuOPDyxFDlSw5Pp1 OV1aZ4HbYxw+IWfMz653doAl9mMg9Ww5uJPFn+M0mUBHOVlw7HgEtkzpU1zfURY2qR17 UngKpLJoxhqXG0YWTAQkkHdPQ2HAHfCUrfj8m/yPo63avlkBpifdpTZ9xGGO+v2VOgKW UASw5XDVcfBMjYmHBa6REnmFcXtXyIm8PRrNIuYA6Ga15qnc6eXvHinHcEChhS439cQQ VcNjeyUcQZDQ5rk9/7JVn9PoqqQXPOi9L80m/on33RB8AnJyrfkqwRQ7BGoAXy0Iag9W C0Nw== 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=of+4vsKlSC3WMQUMuhHUy8sKmlS/zCzuvWW0knTqyT8=; b=VqtK7SzR6hD5vB/Uwseg/tc62A0CKfe2kPHgdiMgZVURanTtOfS7f52AfDqBKAo1yY 2bCEVsOmx4i77iQ5zH2wxCxNlYyci3U+mZwH7JZKAfcQ9Vs64FprECayrfGotuWHgMRQ 5Q4kFGsrbPdt7+udnPSytRTCLZhN94kB467x1OX13Jz3dteM3HzUi4CTpBsnkMjq7vHB Pk8NzSustdVBOP82Y8o6wpkTLFUP3mUJv2aXHGLRowTnszC1m2tF04Z8xZjUYFhbm63h +1B3c3P5M4hGK59fbWBetsw7VaOLMxJyFBPZyt0HpXpR8yGvh0sViAoca9N5cg45zWyu J7GA== X-Gm-Message-State: ANhLgQ1IdKFIuen9zoCvY4/w5QhaAdvcqMmZbEOD1phsrv5/dmT932L6 B6+iVj10dBdNUD31ggSReNSE8g== X-Google-Smtp-Source: ADFU+vs6VRfk4TRx90SLc4pDewsuplLBJ5mvgzuzT7Bz0mt/SBhqj3eIiKoq53mIImFBidKDp4trKQ== X-Received: by 2002:a05:6000:1046:: with SMTP id c6mr10219033wrx.411.1583415877370; Thu, 05 Mar 2020 05:44:37 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id o9sm46425385wrw.20.2020.03.05.05.44.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 05:44:36 -0800 (PST) From: Srinivas Kandagatla To: perex@perex.cz Subject: [PATCH 4/4] ucm2: Add ucm for Lenovo-YOGA-C630-13Q50 laptop Date: Thu, 5 Mar 2020 13:44:04 +0000 Message-Id: <20200305134404.7690-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200305134404.7690-1-srinivas.kandagatla@linaro.org> References: <20200305134404.7690-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, Srinivas Kandagatla 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" This laptop has by 2 WSA Smart speakers over Soundwire and 3.5mm headset audio connection. Signed-off-by: Srinivas Kandagatla --- ucm2/Lenovo-YOGA-C630-13Q50/HiFi.conf | 98 +++++++++++++++++++ .../Lenovo-YOGA-C630-13Q50.conf | 6 ++ 2 files changed, 104 insertions(+) create mode 100644 ucm2/Lenovo-YOGA-C630-13Q50/HiFi.conf create mode 100644 ucm2/Lenovo-YOGA-C630-13Q50/Lenovo-YOGA-C630-13Q50.conf diff --git a/ucm2/Lenovo-YOGA-C630-13Q50/HiFi.conf b/ucm2/Lenovo-YOGA-C630-13Q50/HiFi.conf new file mode 100644 index 0000000..bc4f914 --- /dev/null +++ b/ucm2/Lenovo-YOGA-C630-13Q50/HiFi.conf @@ -0,0 +1,98 @@ +# Use case configuration for LenovoYOGAC6301. +# Author: Srinivas Kandagatla + +SectionVerb { + + EnableSequence [ + cdev "hw:LenovoYOGAC6301" + cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 1" + cset "name='MultiMedia2 Mixer SLIMBUS_0_TX' 1" + + + + ] + + DisableSequence [ + cdev "hw:LenovoYOGAC6301" + + cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0" + cset "name='MultiMedia2 Mixer SLIMBUS_0_TX' 0" + ] + + Value { + TQ "HiFi" + } +} + +SectionDevice."Speakers" { + Comment "Speakers playback" + + ConflictingDevice [ + "HeadPhones" + ] + + + EnableSequence [ + cdev "hw:LenovoYOGAC6301" + + + ] + + DisableSequence [ + cdev "hw:LenovoYOGAC6301" + + + ] + + Value { + PlaybackPCM "hw:LenovoYOGAC6301,0" + PlaybackChannels "2" + PlaybackVolume "RX1 Digital Volume" + PlaybackVolume "RX2 Digital Volume" + } +} + +SectionDevice."HeadPhones" { + Comment "HeadPhones playback" + + ConflictingDevice [ + "Speakers" + ] + + EnableSequence [ + cdev "hw:LenovoYOGAC6301" + + ] + + DisableSequence [ + cdev "hw:LenovoYOGAC6301" + + ] + + Value { + PlaybackPCM "hw:LenovoYOGAC6301,0" + PlaybackChannels "2" + PlaybackVolume "RX1 Digital Volume" + PlaybackVolume "RX2 Digital Volume" + } +} + +SectionDevice."HeadPhonesMic" { + Comment "HeadPhones Mic" + + EnableSequence [ + + ] + + DisableSequence [ + + cset "name='AMIC MUX0' ZERO" + cset "name='ADC2 Volume' 0" + ] + + Value { + CapturePCM "hw:LenovoYOGAC6301,1" + CaptureChannels "2" + CaptureVolume "ADC2 Volume" + } +} diff --git a/ucm2/Lenovo-YOGA-C630-13Q50/Lenovo-YOGA-C630-13Q50.conf b/ucm2/Lenovo-YOGA-C630-13Q50/Lenovo-YOGA-C630-13Q50.conf new file mode 100644 index 0000000..114466a --- /dev/null +++ b/ucm2/Lenovo-YOGA-C630-13Q50/Lenovo-YOGA-C630-13Q50.conf @@ -0,0 +1,6 @@ +Syntax 2 + +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "HiFi Music." +}