Received: by 10.223.164.202 with SMTP id h10csp644370wrb; Wed, 22 Nov 2017 12:58:02 -0800 (PST) X-Google-Smtp-Source: AGs4zMYN2mII1zzOT7QTrr9bpjpd4aB44hZ6P9Ps2RKpwUKTypi9AaP4bgtwtZfNr1aaiVqZuWci X-Received: by 10.84.233.131 with SMTP id l3mr22197110plk.295.1511384282532; Wed, 22 Nov 2017 12:58:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511384282; cv=none; d=google.com; s=arc-20160816; b=OROMvhiBMxBNX2z29AC94ZKYDDwSm92GynuVmTgMoEuYQSvrSxPnitWmTOTekmVK7Y x6UajO+Q7fJtZ0smm3uiN5yxBRUTKa2LLlQM+50RDa6YtoHmYJhh18muPfw3Y0RNifH1 YxLBb4ymbYPdTZv4fCaHsYvD3ccvW9GtCt3rqCj4SaJifJeYdmM5ciaaxR1nxZ4eSSkE n69PPv3LUB42gRG2E2QeGCJz9MpNSrf6Dodo6nVUXxcaurRYTnUiGzoCfYayCGwEjrEs E4QY1FXwsZJChb3Lez1w0B60xDxOXCp1czPlp0nGb3QLd+p+b05bZhKNe2gLdptVm5Fi crJg== 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=RYRbRrOfjxMo7lXUejPDELUQnUeLDB/u6MhJjYS+rxE=; b=zQ2pQ5kA4IqoJ4JvZeVB36yvjrc76STlyYl8mDuUggtOKX4gtTy9k28bX/298wvIPV IIjGLv9S4k9tGEOf2lNKH500h9XxbVzYXZkJMT7N0aLMQM4b3GwfBwkUyiJxFvbCMp3c U/2gIEJPlGtf2x8K9IoHdoY2s8socX2Esb1KyrWFbQFfMdysVsJgDeI20+Mlkehh+tFN W539oeprR93VWgU+mXOKMP9y/IvmG2yYURCLvDrIQ9laC++pDkqkU1cfiWZl9FXPOWyk 8D1CPiJhQVD2pQoWsX/uHb40dkzHEJ7/bv+gyAKeumKt8YS4JVlWqoEaSXducueW6aEU is5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dfoRyuSw; 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 p11si15185137pll.96.2017.11.22.12.57.51; Wed, 22 Nov 2017 12:58:02 -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=dfoRyuSw; 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 S1751683AbdKVU5D (ORCPT + 77 others); Wed, 22 Nov 2017 15:57:03 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:42815 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622AbdKVU5A (ORCPT ); Wed, 22 Nov 2017 15:57:00 -0500 Received: by mail-io0-f194.google.com with SMTP id u42so24546739ioi.9 for ; Wed, 22 Nov 2017 12:56:59 -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=RYRbRrOfjxMo7lXUejPDELUQnUeLDB/u6MhJjYS+rxE=; b=dfoRyuSwSx/BGUngABcBRGjY8ICi57LJzElxIX1HiZlBCibHREAiDU4yXTXDsxtw2w 5b3xdKIH9m0kVaGcO9iRcxGP8Anszla+7b5MhCjvlL0SZ03a6KnWk7sw3kICceJeqWrx /ZifMBn3tPy1noAuulgNwldJetMUaklzl2oJQ= 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=RYRbRrOfjxMo7lXUejPDELUQnUeLDB/u6MhJjYS+rxE=; b=ebIhznRMn7owQwMuc3g+TbLPV3umUepMWWMACAhKWwtDmM/E0cJjlMmYHJZ5gZNtQx seRXBkqNTPN0nXolR9SsBUILydjXQUyYT+j26yQ0Yw+uFzXvmGXTklU6hKc6gH49V8RN gpMpCtihLX7lOskMR/5sRj4JNOXbCYPNY1EYBiS0Eb8RijRhy46vh9m0rTHClbXQS8sG uQvIr8mvFdhDthw4AblPdGVjmOpMhS/RgaxjlGcHs+ZPwolEhTnW/JnH80k/G/vHsvzU 0AXqtX5BSdgOb2MkywLMRzwSXGjp/i0Lmv/JxZIrWYWE/8LrG7szvu8X9UKH/IWSXKpz STKA== X-Gm-Message-State: AJaThX46AEFNxKScrnKmisj6emWp8aqsOOy++0ss2vWWjE1fNo4sy5nu 9WiiUZ9Bsh4Uvl2h+QhtZrkYoA== X-Received: by 10.107.183.195 with SMTP id h186mr25890407iof.159.1511384219402; Wed, 22 Nov 2017 12:56:59 -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.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Nov 2017 12:56:59 -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 5/5] ASoC: qcom: apq8016-sbc: Map BTN_0 to KEY_PLAYPAUSE Date: Wed, 22 Nov 2017 12:56:43 -0800 Message-Id: <20171122205643.99783-6-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/qcom/apq8016_sbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/apq8016_sbc.c b/sound/soc/qcom/apq8016_sbc.c index d49adc822a11..03851fedd1e2 100644 --- a/sound/soc/qcom/apq8016_sbc.c +++ b/sound/soc/qcom/apq8016_sbc.c @@ -92,7 +92,7 @@ static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd) jack = pdata->jack.jack; - snd_jack_set_key(jack, SND_JACK_BTN_0, KEY_MEDIA); + snd_jack_set_key(jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); snd_jack_set_key(jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); snd_jack_set_key(jack, SND_JACK_BTN_2, KEY_VOLUMEUP); snd_jack_set_key(jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); -- 2.15.0.448.gf294e3d99a-goog From 1585399154091271883@xxx Wed Nov 29 11:20:54 +0000 2017 X-GM-THRID: 1585399154091271883 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread