Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp121406ybj; Fri, 8 May 2020 07:54:10 -0700 (PDT) X-Google-Smtp-Source: APiQypJaBSfVmcGuEPCxnBSPoU5pgnKLSTIn6i+gZvKRd5rVHqqVUE1YkFw3Pk6qwx/kIxegMjvo X-Received: by 2002:aa7:c5cf:: with SMTP id h15mr2501237eds.213.1588949650863; Fri, 08 May 2020 07:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588949650; cv=none; d=google.com; s=arc-20160816; b=aOvkl3BgvgCEqljsqfdfkfnqufK7hzeKzTq7JykE+HPJs4PKNrsdqVbKr2KNdTciBf CDf1XrtiZNAfB9xS0S9cHKaTAN6pRUsO0NcZaLheGrzOOc1iRTgRdcjVJVCiyI1Z6u/B g4HkCZzH30yZw41mMteX/L2ARjVKgmvonY+0aNpEc/PQjtWRHcJSiahIoPgRsHUb8l7d ks3xSxYb/GjSUaIwjqUWCmYXecnQYb5nVuTV/YhmLuErzKhzL3kl12IDva1UV7Th/B4I rc8CXzxYmxWylCINrmBHkvCQgqgIAq0oqrEE8W78Vx1tY1VBHpa5DBhdun/5yixsH9qX iRqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=6AYc+kN/Lp2ZNbed3SFeJe8dn9+yoLze139DKmhnW2E=; b=DZSJ0g0wSrCbrb4V269KHvShShLPvM/0mrzKzfg5HOp8NuFxgrPKWRJ1giFDG9RALq lbGd1N0C9nW860I8M6JqviwVqU7tVN403NJSXC6Z1RvP2jVB9QfIbXxrjqILM92otl0P 2GG9Sm5IRiJXPjwM2o1/UVpvylnp7CComlLfwyq2Erc6lOtrW4iovqtQvS9y9cqIVfLM UsD/U7JguZ7PLlBs8rapi+sOO1ZE4HtF7W81PQE+Wrms2SoDxL2tHXFZWUYhtzIdiEqr pvII/9UsraL/hi13jMDoOCrT2h7Y8LnsVfhelhA6mvqBrfsLd/uqTqWrWOk7s1AN5VIL X7jQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si1074197edb.234.2020.05.08.07.53.48; Fri, 08 May 2020 07:54:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727893AbgEHOuS (ORCPT + 99 others); Fri, 8 May 2020 10:50:18 -0400 Received: from mga11.intel.com ([192.55.52.93]:54546 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726913AbgEHOuS (ORCPT ); Fri, 8 May 2020 10:50:18 -0400 IronPort-SDR: qHXIFd5na43IW3Wt8mTzKyOpucPbM1rDWcYz0L/11DuoVT5o5iJBsP9k9HLlhgd+DONgrNq7I8 EikTUwWZ20lg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2020 07:50:17 -0700 IronPort-SDR: XN15M4RZFAHyjTWmo7AtUbiSDyZx81DyK5bKtQiRsCXpzx/sNnNOgIdU1OG0jfg4rvR24YVvk2 JtBq1K2Ceo0g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,367,1583222400"; d="scan'208";a="462307831" Received: from cstrong-mobl6.amr.corp.intel.com (HELO [10.254.74.61]) ([10.254.74.61]) by fmsmga005.fm.intel.com with ESMTP; 08 May 2020 07:50:16 -0700 Subject: Re: [PATCH] ASoC: Intel: Boards: Support headset button function for nau88l25max and nau88l25ssm To: Radoslaw Biernacki , Liam Girdwood , Jie Yang , Jaroslav Kysela , Takashi Iwai Cc: Chinyue Chen , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Ben Zhang , Marcin Wojtas , Benson Leung , Alex Levin References: <20200507220332.24686-1-rad@semihalf.com> From: Pierre-Louis Bossart Message-ID: <39aed974-ee2c-a0e7-9228-304cce275289@linux.intel.com> Date: Fri, 8 May 2020 09:45:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200507220332.24686-1-rad@semihalf.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/7/20 5:03 PM, Radoslaw Biernacki wrote: > Map the buttons from the Android reference headset to > KEY_PLAYPAUSE, KEY_VOICECOMMAND, KEY_VOLUMEUP, and KEY_VOLUMEDOWN. > KEY_PLAYPAUSE is used instead of KEY_MEDIA for BTN_0 as it is more > logical and have much broader userspace support. Like Chrome OS > use it to play/pause of video and audio. KEY_PLAYPAUSE is also > supported by Android (USB headset spec requires KEY_PLAYPAUSE > for BTN_0.) > https://source.android.com/devices/accessories/headset/usb-headset-spec > > Signed-off-by: Chinyue Chen > Signed-off-by: Benson Leung > Signed-off-by: Radoslaw Biernacki Acked-by: Pierre-Louis Bossart