From patchwork Fri Dec 7 09:05:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhuohao Lee X-Patchwork-Id: 10719205 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 52F14112E for ; Sat, 8 Dec 2018 08:05:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 426B02C8BE for ; Sat, 8 Dec 2018 08:05:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 364782C8C9; Sat, 8 Dec 2018 08:05:12 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FE162C8BE for ; Sat, 8 Dec 2018 08:05:11 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id DB8CA267CE1; Sat, 8 Dec 2018 09:04:48 +0100 (CET) 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 8DDF9267CCE; Fri, 7 Dec 2018 10:06:08 +0100 (CET) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by alsa0.perex.cz (Postfix) with ESMTP id B642F267BB1 for ; Fri, 7 Dec 2018 10:06:03 +0100 (CET) Received: by mail-pg1-f196.google.com with SMTP id 70so1444096pgh.8 for ; Fri, 07 Dec 2018 01:06:03 -0800 (PST) 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=I0iDGOJbCZroxMtJ3hiLe5dpdBlJPtu8jhQdax+5mZw=; b=Vlhhll3HUEjel2bZ/kA6HMS7iv5xfhXaJJlflmsCmEsZ/UE0tajv6js2eUx30KNNYM ixDOb5bdpR96+AUb7eX1apStawqJqtwnfOrMQ04S5D37Gvs2HluUQnifDWYBHZVeXuEC f9lyJdi4+n7/QnH5LznpRDlawHnQQZAj6pAOg= 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=I0iDGOJbCZroxMtJ3hiLe5dpdBlJPtu8jhQdax+5mZw=; b=KPEcdPdDVwGBqm7FqBarSRwlu4rm7G8FcttsdJRuVMMRb+Gugb0gao67iBIYGCfFXX bN/0J1sD346DWeQqgMytC8CKXhCWy/Zd7WL2ibo0EZT5L9gkQqLGq97xt2I7Y4/2Bhhm pe+3wa8arvMFACSGELp4GMWCmKfwMbqbxO+sdk+3b5yTe0tqPr5zQVPD2I46bMa+gyQR PRs9lBGgnYhN6E6sFnV4ps41WrsOggw4P3YGVqMDosWyBDCtxNbpCyNHJEYUQO1cEo88 lCvxAxYKdj7euG7pHcthncKW/PDeMr0MIVeaX5jR9FAPZp6xZSxlXZJ0lEffocJLzcPO onOA== X-Gm-Message-State: AA+aEWYZK860VT7WqW9hpEknJ/f4ctgvTCSDkHmMw3sI0yHiG2rGoZGo LgtdpZCaftE1sB8fgO0MJBfF+lo4TLcfoOGQ X-Google-Smtp-Source: AFSGD/VGD+WTzPL2uh0Zq4iL+0zcz0WgQvFU/Vj6pnp8mREjEEwA3yUTSm9tvKetklGnvY8jP1W7Tg== X-Received: by 2002:a63:608f:: with SMTP id u137mr1223822pgb.203.1544173561805; Fri, 07 Dec 2018 01:06:01 -0800 (PST) Received: from zhuohao-z440.tpe.corp.google.com ([2401:fa00:1:10:e25c:13cd:9607:cc7f]) by smtp.gmail.com with ESMTPSA id p67sm4542135pfg.44.2018.12.07.01.05.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 01:06:01 -0800 (PST) From: Zhuohao Lee To: alsa-devel@alsa-project.org Date: Fri, 7 Dec 2018 17:05:52 +0800 Message-Id: <20181207090552.105205-1-zhuohao@chromium.org> X-Mailer: git-send-email 2.20.0.rc2.403.gdbc3b29805-goog MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 08 Dec 2018 09:04:40 +0100 Cc: Oder Chiou , Zhuohao Lee , Kuninori Morimoto , linux-kernel@vger.kernel.org, Jie Yang , Takashi Iwai , Pierre-Louis Bossart , Liam Girdwood , Vinod Koul , Mark Brown , Max Chang , Dan Carpenter Subject: [alsa-devel] [PATCH v1] ASoC: Intel: kbl_da7219_max98927: fix the audio jack button remapping 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From the da7219 spec, the button A, B, C and D are remapped to 0, 1, 2 and 3 respectively where button A is KEY_PLAYPAUSE, B is KEY_VOLUMEUP, C is KEY_VOLUMEDOWN and D is KEY_VOICECOMMAND Change-Id: I67f929f226883bd289cb7beb0a7b23f40e7121e2 Signed-off-by: Zhuohao Lee Signed-off-by: Max Chang --- sound/soc/intel/boards/kbl_da7219_max98927.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/intel/boards/kbl_da7219_max98927.c b/sound/soc/intel/boards/kbl_da7219_max98927.c index 3fa1c3ca6d37..d3531f0eb357 100644 --- a/sound/soc/intel/boards/kbl_da7219_max98927.c +++ b/sound/soc/intel/boards/kbl_da7219_max98927.c @@ -262,9 +262,9 @@ static int kabylake_da7219_codec_init(struct snd_soc_pcm_runtime *rtd) jack = &ctx->kabylake_headset; snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); - snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); - snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEUP); - snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); + snd_jack_set_key(jack->jack, SND_JACK_BTN_1, KEY_VOLUMEUP); + snd_jack_set_key(jack->jack, SND_JACK_BTN_2, KEY_VOLUMEDOWN); + snd_jack_set_key(jack->jack, SND_JACK_BTN_3, KEY_VOICECOMMAND); da7219_aad_jack_det(component, &ctx->kabylake_headset);