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." +}