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: 193400 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDF2DC3F2CD for ; Thu, 5 Mar 2020 13:47:11 +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 7666E2073D for ; Thu, 5 Mar 2020 13:47:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="uxo/L+Nl"; 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 7666E2073D 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 CEA8F1674; Thu, 5 Mar 2020 14:46:19 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz CEA8F1674 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1583416029; 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=uxo/L+NlWeAVyR/UvFpSUBrp8aJqJ4XXz/lMznjjCQdtbti8sQsZrimLjWhtBY1ew 4A+gFgQBxtvTLohc29hzAvo0tTlthdSPhn0sC4robRTfmwBLor5WW+H6c7HF1W6LS4 gbJxtTb6HZeEtj4yf5y3Zp6HdOJdeVYdi59rHTyg= 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) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 16E7EF8027B; Thu, 5 Mar 2020 14:44:42 +0100 (CET) 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: 193399 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A041C3F2CD for ; Thu, 5 Mar 2020 13:48:15 +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 147632073D for ; Thu, 5 Mar 2020 13:48:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="HlOhsE4x"; 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 147632073D 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 6AECD1686; Thu, 5 Mar 2020 14:47:23 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6AECD1686 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1583416093; 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=HlOhsE4xy/5V7bu+8C4hmNz4H2M8Vpq8haWH5CK9cbyWcfHiB5n9vFYfE+AxsBXaN UZ2zHvcXrB9Cx4zbqCb0itrZKKrh2raIIvet55d0e4bVuHzxtH+QIX8flBrGAyUvXd 4+dumh5JSDZFn4BovXp5FOkTNjLbFujeksqdYS18= 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) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5E718F802A2; Thu, 5 Mar 2020 14:45:31 +0100 (CET) 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." +}