From patchwork Thu Jun 13 23:53:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Curtis Malainey X-Patchwork-Id: 10993875 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 466CE13AF for ; Thu, 13 Jun 2019 23:54:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C84926E76 for ; Thu, 13 Jun 2019 23:54:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2086B271E6; Thu, 13 Jun 2019 23:54:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 11F9526E76 for ; Thu, 13 Jun 2019 23:54:28 +0000 (UTC) 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 DAEC61841; Fri, 14 Jun 2019 01:53:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DAEC61841 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1560470066; bh=VtaM16AZ2XsLuU49uzROGxT5io9WqwX0CwEF7OXx/0Q=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=WfLOypKPYmWwYMUsu9BqD0O8PGk9mD1ERRB8JJfwanha6zvwRNLF1/5Gh537uGAvT uhRzUs59XiwO5V2mkNryqdU5ADTlNMuMLnka4+YyzLotqLW8yG6Ax8kQnKE9U3gceg XGSNH5IVHESWXGubNnAaLv0FrMxL/hjG4dL6Hx5o= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5345EF896F1; Fri, 14 Jun 2019 01:53:36 +0200 (CEST) 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 4BF47F89703; Fri, 14 Jun 2019 01:53:34 +0200 (CEST) Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (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 234CDF80791 for ; Fri, 14 Jun 2019 01:53:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 234CDF80791 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="ZR2Wh0zA" Received: by mail-pf1-x442.google.com with SMTP id p184so222499pfp.7 for ; Thu, 13 Jun 2019 16:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qzgfRdKzrvRWEDduo5eDlErYQ+U9vO+5gDU2YPpPd1k=; b=ZR2Wh0zAMZ0GS3LZcX1vCy0QGo6mwfTNqj/CVA8tOstBkOM3yd3yCyYV+pTSdqVIQG 3yp11zaCq2FqPPdUexuB2Tlj8jWEr0TrMasjbF1jfmH5liyAJa1Qc6fqmocgkjnZLGFV xbWFqDOEUZUn2SjO0B1m+ZwuUdN+h81HJjE3w= 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:mime-version :content-transfer-encoding; bh=qzgfRdKzrvRWEDduo5eDlErYQ+U9vO+5gDU2YPpPd1k=; b=j1vf9vv9mhTOPe+Pf5ycDcPeRFwnrqTQZ7dfYhQNOOP3QRIfHiz3YAv12gjK/nTRVM Y4UQslqvWjYY5R4YB6H0OjXGbtvPB1WBKxBdlOEGIh7IE8vP8mTVountfL572M4/g6GW OfKf8BuNcqYARY+zxZYvqVtjmyuQwAdmlA1/pfbGMdLK/v62ibvhusErobJPlLGRUEOB wBNE9L63HR8bJQ4xJUHj2ZbYtoXB4ETL8EHkh27FyDPF430/y7/hsBMLTiJ4kge+DOaJ LKOCn0nC3Cb2PcrojOa663eNbmvS7RfPh5+lCBsnKmOWtRv8iO9ThkRStfkKOKQnHGW/ h2Qw== X-Gm-Message-State: APjAAAUsV09x9gpb/h5BvGj4SMmdwnRHLlWxv04cj+ohDFIexsdwaxZt HxdcTOMutI7+lgiudiJvIadk6PncWg== X-Google-Smtp-Source: APXvYqw+RYxwwChioYjTAbIZBoS5StQ3gjTUYu0I8PFqRGTAOULlmb7m6uoz3nCqrJp4VdIdMWGXjA== X-Received: by 2002:a62:874f:: with SMTP id i76mr12537297pfe.118.1560470008312; Thu, 13 Jun 2019 16:53:28 -0700 (PDT) Received: from localhost ([2620:15c:202:201:c87a:31ae:9107:f63d]) by smtp.gmail.com with ESMTPSA id g71sm878304pgc.41.2019.06.13.16.53.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 16:53:27 -0700 (PDT) From: Curtis Malainey To: alsa-devel@alsa-project.org Date: Thu, 13 Jun 2019 16:53:09 -0700 Message-Id: <20190613235309.30984-1-cujomalainey@chromium.org> X-Mailer: git-send-email 2.22.0.rc2.383.gf4fbbf30c2-goog MIME-Version: 1.0 Cc: Curtis Malainey , Crag Wang , Dylan Reid Subject: [alsa-devel] [PATCH] ucm: Dell WD15 set lineout controls 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" X-Virus-Scanned: ClamAV using ClamSMTP The lineout playback switch should be enabled and disabled when enabling and disabling the device. This commit needs to be tested by dell. Signed-off-by: Curtis Malainey Cc: Dylan Reid Cc: Crag Wang --- src/conf/ucm/Dell-WD15-Dock/HiFi.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/conf/ucm/Dell-WD15-Dock/HiFi.conf b/src/conf/ucm/Dell-WD15-Dock/HiFi.conf index 1b6bd212..cab13c5d 100644 --- a/src/conf/ucm/Dell-WD15-Dock/HiFi.conf +++ b/src/conf/ucm/Dell-WD15-Dock/HiFi.conf @@ -1,3 +1,11 @@ +SectionVerb { + EnableSequence [ + cdev "hw:Dock" + ] + DisableSequence [ + ] +} + SectionDevice."Headphone" { Comment "Headphone" @@ -14,6 +22,14 @@ SectionDevice."LineOut" { PlaybackChannels "2" PlaybackPCM "hw:Dock,1" } + EnableSequence [ + cdev "hw:Dock" + cset "name='Line Playback Switch' on" + ] + DisableSequence [ + cdev "hw:Dock" + cset "name='Line Playback Switch' off" + ] } SectionDevice."Mic" {