Received: by 10.223.164.202 with SMTP id h10csp645393wrb; Wed, 22 Nov 2017 12:59:28 -0800 (PST) X-Google-Smtp-Source: AGs4zMbXsMOMEfV5nOiRCKiZmUcDBvpoQcveoGMwSbi8OusrkkAmzO8rqvBgmKuEh+cZnOx+Nc4h X-Received: by 10.98.36.25 with SMTP id r25mr18561409pfj.72.1511384368497; Wed, 22 Nov 2017 12:59:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511384368; cv=none; d=google.com; s=arc-20160816; b=fkwAY3CWHgjcavussuDBaPBnxIctNH0nE3agy0UGRRNguy2A5u7ocONsWkQBzN+H3C tlkDpz3VIzWl6LICskdfUCCkjN4C74yxKgPD9H1GWO3qaT3TJmeSMoIqs9aPFxdf0uJz 6nnZmlK9Le0fev56QmIbjS21jxy4VcglkwQGRAyRC9L4hyM/gw7eWy+J9pSh2wsxM0wq /WrkH7QRbfw2B2DZkA4O4naaVN8kiM0hGmnZLbbQoNMYV1hpFiq2URXqj5zVGL82NGLf 5UlyyFp2zA7P4Yey41xQaL5N/yrdzXij73X5c2Sq1vHTwz6iX11ZwZv0BR3jNgtzS63i fQQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=6MCGXg0z96v9hUNOZOnAx+llCcCH0vWmXhOb+sjzIXg=; b=zXbwNral6X2nbNYCxB9Ljb9fSq02VVvY/QRzL2ouAgjeMMc8Nno13rHT2/YA82cSvL llWbO+QyBDcU9od5jYo6OCe1Ri2i8FJUcr7CeZnJa3yLOe8Es/MiqyeEUKOUxklW0Bb2 BxCq64FmNgwAqMijXF0lDov/+RxxRO+iOLz6olsYxVehU9gLmEzVL9xqQuhjSVYhI5Fm nhSAWZE2A51LQBc10SZvFJODv7DiNZs1eQFxYA+FXOFqf/ypyxGQiIujdbYVP9ufJCrg xW7aDuP0Uff3fkSgnm3xnYKxGOhQGSl3B3uJEQa3km2OeDol/0ChhYQZ9Q4grH87ou7F guUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Z/Ia3PvK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m72si15831550pfk.242.2017.11.22.12.59.16; Wed, 22 Nov 2017 12:59:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Z/Ia3PvK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751854AbdKVU6C (ORCPT + 77 others); Wed, 22 Nov 2017 15:58:02 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:41558 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751552AbdKVU45 (ORCPT ); Wed, 22 Nov 2017 15:56:57 -0500 Received: by mail-io0-f193.google.com with SMTP id g73so24530489ioj.8 for ; Wed, 22 Nov 2017 12:56:56 -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:in-reply-to:references; bh=6MCGXg0z96v9hUNOZOnAx+llCcCH0vWmXhOb+sjzIXg=; b=Z/Ia3PvKD1hFQGD+oHDdaeASzh6cF6uDjM/LC9GJlPpPq3LdFwEJg72Y/k/oiCAC2j ZwYn8iqf7DwNuHYO6vS7RF/jNZTfoW95Y5fi1dHW+RR0axQCYvh1Kp29PXiBpTa6FC+N aLo2IlUW0w2Fnnb8Snt/38HeFy3k8yPTPTisE= 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; bh=6MCGXg0z96v9hUNOZOnAx+llCcCH0vWmXhOb+sjzIXg=; b=AnSVL2LHrFnx4ggi8rqFf0dv9Nm8lVaFaI99JY0Zfvp44WKdesK0p5b9CtxxJ0unN3 GyaMhKOdx27zJwEy/nPh5D4r6LiWqT81zDwBbl7UFicxB7vubvMcLIcwCcVU6hsvHmi/ w9b87LgCf2PV7Q1LUqGc25Zb9xjj1mvrbYMVRLMU9TkugQuv/WlLJtWktytKotG7Lyw3 Ikewpf9Z7wKfLbmqTM73QUv0DFhB4L3dVVYspBHqhg+wH+R67AhLr7S609MqbUXpjPFS G5ynENQO+7vQ9MGvHHIjsI65Otk+03EUglLNsiRuzzJzGwIx77FEysk/RQlNBMUDZZGa K/JA== X-Gm-Message-State: AJaThX4D+qQKLwFAiW8BydxXTy21AQ2QCNgrr9IqXPBQ5l4VATSxjd05 GOKyIzpzsr5x4EOiuTH62TfOYw== X-Received: by 10.107.10.151 with SMTP id 23mr24562113iok.285.1511384216426; Wed, 22 Nov 2017 12:56:56 -0800 (PST) Received: from decatoncale.mtv.corp.google.com ([172.22.112.13]) by smtp.gmail.com with ESMTPSA id p10sm7217546ioe.19.2017.11.22.12.56.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Nov 2017 12:56:56 -0800 (PST) From: Benson Leung To: broonie@kernel.org, linux-kernel@vger.kernel.org Cc: harshapriya.n@intel.com, naveen.m@intel.com, srinivas.kandagatla@linaro.org, cychiang@chromium.org, dgreid@chromium.org, anatol.pomozov@gmail.com, bleung@chromium.org, bleung@google.com Subject: [PATCH 2/5] ASoC: Intel: kbl_rt5663_max98927: Map BTN_0 to KEY_PLAYPAUSE Date: Wed, 22 Nov 2017 12:56:40 -0800 Message-Id: <20171122205643.99783-3-bleung@chromium.org> X-Mailer: git-send-email 2.15.0.448.gf294e3d99a-goog In-Reply-To: <20171122205643.99783-1-bleung@chromium.org> References: <20171122205643.99783-1-bleung@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Android 3.5mm Headset jack specification mentions that BTN_0 should be mapped to KEY_MEDIA, but this is less logical than KEY_PLAYPAUSE, which has much broader userspace support. For example, the Chrome OS userspace now supports KEY_PLAYPAUSE to toggle play/pause of videos and audio, but does not handle KEY_MEDIA. Furthermore, Android itself now supports KEY_PLAYPAUSE equivalently, as the new USB headset spec requires KEY_PLAYPAUSE for BTN_0. https://source.android.com/devices/accessories/headset/usb-headset-spec Signed-off-by: Benson Leung --- sound/soc/intel/boards/kbl_rt5663_max98927.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/boards/kbl_rt5663_max98927.c b/sound/soc/intel/boards/kbl_rt5663_max98927.c index 6dcad0a8a0d0..bf7014ca486f 100644 --- a/sound/soc/intel/boards/kbl_rt5663_max98927.c +++ b/sound/soc/intel/boards/kbl_rt5663_max98927.c @@ -225,7 +225,7 @@ static int kabylake_rt5663_codec_init(struct snd_soc_pcm_runtime *rtd) } jack = &ctx->kabylake_headset; - snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_MEDIA); + 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); -- 2.15.0.448.gf294e3d99a-goog From 1584717127480386082@xxx Tue Nov 21 22:40:23 +0000 2017 X-GM-THRID: 1584717127480386082 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread