From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752481AbdLFRra (ORCPT ); Wed, 6 Dec 2017 12:47:30 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:25959 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbdLFRrZ (ORCPT ); Wed, 6 Dec 2017 12:47:25 -0500 Subject: Re: [PATCH v2 18/19] ASoC: tlv320aic31xx: Add headphone/headset detection To: Mark Brown CC: Liam Girdwood , Rob Herring , Mark Rutland , =?UTF-8?Q?Beno=c3=aet_Cousson?= , Tony Lindgren , , , References: <20171129213300.20021-1-afd@ti.com> <20171129213300.20021-19-afd@ti.com> <20171201134127.2msgmjrfj47ypl3w@sirena.org.uk> <20171206173215.bitae546h2ibedhz@sirena.org.uk> From: "Andrew F. Davis" Message-ID: <8e52d973-2335-e3c5-5e57-15621819cf45@ti.com> Date: Wed, 6 Dec 2017 11:47:14 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171206173215.bitae546h2ibedhz@sirena.org.uk> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/06/2017 11:32 AM, Mark Brown wrote: > On Wed, Dec 06, 2017 at 11:25:15AM -0600, Andrew F. Davis wrote: >> On 12/01/2017 07:41 AM, Mark Brown wrote: > >>> This only does half the job, there's no way for anything to specify a >>> jack here. > >> Other CODECs drivers expose some kind of platform/machine specific >> function(s) to send the jack definition to the CODEC, we seem to be > > Your driver doesn't do that. > Right, I don't have a specific machine in mind so didn't wan to do it that way. >> missing a generic way to report jack information up to the machine layer >> driver. > > snd_soc_codec_set_jack() > Hmm, this looks close to what I was thinking (I was wanting to go the other direction and have the codec report what jacks it supports, this could allow for more than one jack), I'll see if I can make it work.