From patchwork Mon Apr 16 12:00:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 133457 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp3481691ljb; Mon, 16 Apr 2018 05:00:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx49QopCKp8T4BiUZhAeR6ZfQDJTE6PNQYPprAQEL1AuU64bS9y3oUur8TiaPKmrtiVzARw7O X-Received: by 10.28.3.8 with SMTP id 8mr953098wmd.77.1523880021993; Mon, 16 Apr 2018 05:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523880021; cv=none; d=google.com; s=arc-20160816; b=fJ7VSOTaiy7hO8EFrrczhcdOcRgFUo2Q3UBkwR5uGEB16niAc1aoKI1nkSUzQ0HM8b 1Lo+tVeXJs6nuE4Tdv47KJCWoW7Izel/iUUSn0f5a9zDmuWiYqxkcTBI1p3OHbVRThCU 1EfleP3Yt4ZAqClA8xF5C41pKxjgaUKGY9/A6XsyPgb8xiREBYO1i30IItOnrC6dhx9m KMDRqrQafRRiP/Ppgb+VnVcxOEs8L1aAkNsl21AgkOssuLEOkrUmttwCo6IDhXO7H021 fKHWloyI2sTOV1EpGX3PICZtn2gLzFhCeOp18tedSRzd+R9ikZRvoGOJ5wvQmUvYWbdY HsPQ== 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=BrHvA2A0QFeauyWlKkUwkgQJmt+GN5TEygWm0KR8gh+jZE4G9f3nGYYnl6oJBncXQt 5aZeG9xUi5+W/R1kW/kZx06pOJUBOBAy4uai0PbjjgVda0StErMym06DwR8io1moNuoY hPHcbikFyj+w/x7cAExXWcLdx3qUrcBgpRSteAbtN8fE5pMqiFQFgLBtZEBj5fen6n2H AKBqjsMX7Xq5GILmQ0V/R056XLC7XZj9vtZEar1XkYkjNvUaDwFJiStRnJIrnD8MrfdS eRjYinAFG4RRTJ1pyToy4uxrBf9Upxx57LzKxiGdDKzD0qFxaUzKQnKb2XUTfVakgJSp QuTQ== 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=BZWa7KTt; 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 s4si8360586wrg.348.2018.04.16.05.00.21; Mon, 16 Apr 2018 05:00:21 -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=BZWa7KTt; 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 7A64A2673F6; Mon, 16 Apr 2018 14:00:20 +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 EC68E267412; Mon, 16 Apr 2018 14:00:17 +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 0762E2673F2 for ; Mon, 16 Apr 2018 14:00:15 +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=BZWa7KTta0y2 63GxVJpibPGFQHQMI3c2EkIPOK/RCyR5uKi1qT93QC0hwwmy9NC9zrKi95Mk0tHWKMaGMs75IjC+7 BU6ltH5TwfnWvrmxr0staZsmu2oefdA9G+LS3LpAPvlxjG7i/WZgABpZLLRW5uR9ZQ9btnK6Xm256 UNolA=; 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 1f82ns-0005el-BS; Mon, 16 Apr 2018 12:00:12 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1f82nr-00008V-TO; Mon, 16 Apr 2018 13:00:11 +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 13:00:11 +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;