From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre-Louis Bossart Subject: Re: [PATCH 2/4] ASoC: Intel: Add Cherrytrail & Braswell machine driver cht_bsw_max98090 Date: Thu, 30 Apr 2015 13:30:14 -0500 Message-ID: <554274B6.9000104@linux.intel.com> References: <1430358238-74659-1-git-send-email-yang.a.fang@intel.com> <1430358238-74659-2-git-send-email-yang.a.fang@intel.com> <20150430043651.GJ3521@localhost> <20150430062418.GA76535@mocha> <55424CED.1080402@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by alsa0.perex.cz (Postfix) with ESMTP id A9740260423 for ; Thu, 30 Apr 2015 20:30:17 +0200 (CEST) In-Reply-To: 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 To: Dylan Reid Cc: "alsa-devel@alsa-project.org" , Yang Fang , Praveen K Jain , "Diwakar, Praveen" , Liam Girdwood , Denny Iriawan , Mark Brown , kevin.strasser@linux.intel.com, Vinod Koul List-Id: alsa-devel@alsa-project.org On 4/30/15 11:39 AM, Dylan Reid wrote: > On Thu, Apr 30, 2015 at 8:40 AM, Pierre-Louis Bossart > wrote: >> >>>>> + ret = snd_soc_card_jack_new(runtime->card, "Headset Jack", >>>>> + SND_JACK_HEADPHONE | SND_JACK_MICROPHONE >>>>> | >>>>> + SND_JACK_BTN_0 | SND_JACK_BTN_1 | >>>>> + SND_JACK_BTN_2 | SND_JACK_BTN_3, jack, >>>>> NULL, 0); >>>> >>>> Do you really support all those buttons? >>> >>> TI driver supports 4 buttons sound/soc/codecs/ts3a227e.c >>> google made 4 buttons headsets >> >> >> Not every codec is capable of handling 4 buttons. >> That TI codec was made specifically to detect 4 different levels of >> impedance. Looking at the Max98090, I see support for a single button press >> (change in the status of JKSNS). what makes you think you can handle 4 >> buttons in the codec hardware? > > The 98090 isn't involved in the button or jack detection in this case. > The ts3a227e handles all jack and button events and posts them to the > jack. ok, got it. Thanks for the clarification. Maybe the commit message could be state this dependency, it's not like the other machine drivers we've seen so far, there are only 4 lines in the patch where this TI chip is mentioned.