From patchwork Mon Apr 16 11:39:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 133451 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp3464364ljb; Mon, 16 Apr 2018 04:39:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/Nr1TPCEOClYhWl0if0mIys/VA8jLmfRwRKrPbhVvh7Igzhsmz9tpqL5mOVRJnNlTFKgS7 X-Received: by 10.28.91.203 with SMTP id p194mr10872615wmb.52.1523878768909; Mon, 16 Apr 2018 04:39:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523878768; cv=none; d=google.com; s=arc-20160816; b=nsYh85JDrPm75Eik+efuFUAwQYd+1ZKF+t63rDEn/2qlVZIiotHbTqUdkvC1UbqWhd 07Fz6oCwHIVQ4bI+V2/SJBTsZ40ySuet3clx3xy2O1JD+7LS0LZqlOYcIhT74yGc/mce rGg70+kDY7XSYfQFmNivFnISXzVOOOWKeYZebdrTQVgncYMP5LZ7TXCzaSzW67ejbB88 lk4YgGNHGxzZJxhzjQAXPJCS1THU9wKFz4rfVWQ+rvVG2BkrVPvgb7BvueKSsu4M3C6o WHE2E6U36yChwGnFEoO7pDKmYhS1s9NOXsT5I0OzDxdrtqgZexLXXLrvs8WzVVPg/Bqq f1Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=ZhHMCHqs8UURLqtpbBrZhXRSbYmso+rsiCgZmZOZQXM=; b=ER9a/wII2m4Ghd6anjRHR8etLc4bisfTfcNVBgYv0Sj4nPSXGVaSeCgHppAChrPALB U1ZQmAyieQiIwVYKH7UxpmmbQJFvA/lvKB63LqYonxiqNUaS8fWE9F4+4XC7NdgblP+H 6Ko7DNnT+m7d2wx8E1CSKIxigeRIDgZMVdyh002XXCFNFJeR+3DeQ0YkGj5DlY9roJTh nC2L5HqxTJd3eqh8O+mcvD65sUMOBfXSleludQ2L2JR3Xwk1cqVqcageuMbWPZLPmZjn ynAGmRCQhUh1POrwRwRtZ99UyK4xWfPstkjH/xqyxiPmgyY8h7m0/8YySFVqqt3Hasr9 jZIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=co952qXg; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id i56si4314301wrf.192.2018.04.16.04.39.28; Mon, 16 Apr 2018 04:39:28 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=co952qXg; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9CABE2673F2; Mon, 16 Apr 2018 13:39:26 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7E1832673C4; Mon, 16 Apr 2018 13:39:24 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id C668E2673C4 for ; Mon, 16 Apr 2018 13:39:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=ns8dBtFNvaRsLBowR4yRaEeuH69+NJ5LW6/QfyrNbxg=; b=co952qXgofDv hEpXYNXC9WnbPBnv463dW1yMTdZK7sSTLuzFJxb6SjTOc5snjfNGQrVxFU6eD35F1B4u8dx+K5sSP ZxVRI8KI/jpIgJK8CRLjBmTtx28+CWA/DFA+gh5R9MAwx6EXz7uQizLfcB+geFjoMsEyODaqIIIpb ak9Vg=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f82Td-0005ce-Av; Mon, 16 Apr 2018 11:39:17 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1f82Tc-0007V0-T0; Mon, 16 Apr 2018 12:39:16 +0100 From: Mark Brown To: Agrawal@sirena.org.uk, Akshu In-Reply-To: <1523527031-6132-1-git-send-email-akshu.agrawal@amd.com> Message-Id: Date: Mon, 16 Apr 2018 12:39:16 +0100 Cc: alsa-devel@alsa-project.org, tiwai@suse.de, lgirdwood@gmail.com, djkurtz@chromium.org, akshu.agrawal@amd.com, broonie@kernel.org, Alexander.Deucher@amd.com Subject: [alsa-devel] Applied "ASoC: AMD: Support headset button on Stoney DA7219" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: AMD: Support headset button on Stoney DA7219 has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 923859e3f6b281cc280214854a44dfd04cb7f65d Mon Sep 17 00:00:00 2001 From: "Agrawal, Akshu" Date: Thu, 12 Apr 2018 17:57:11 +0800 Subject: [PATCH] ASoC: AMD: Support headset button on Stoney DA7219 Adds headset button support. TEST=Tested Volume UP/Down, Play/Pause functionality Signed-off-by: Akshu Agrawal Reviewed-by: Daniel Kurtz Signed-off-by: Mark Brown --- sound/soc/amd/acp-da7219-max98357a.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.17.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index b205c782e494..d281c227d64c 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include "../codecs/da7219.h" @@ -80,6 +81,11 @@ static int cz_da7219_init(struct snd_soc_pcm_runtime *rtd) return ret; } + snd_jack_set_key(cz_jack.jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); + snd_jack_set_key(cz_jack.jack, SND_JACK_BTN_1, KEY_VOLUMEUP); + snd_jack_set_key(cz_jack.jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN); + snd_jack_set_key(cz_jack.jack, SND_JACK_BTN_3, KEY_VOICECOMMAND); + da7219_aad_jack_det(component, &cz_jack); return 0;