From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752912AbdLAO4p (ORCPT ); Fri, 1 Dec 2017 09:56:45 -0500 Received: from lelnx194.ext.ti.com ([198.47.27.80]:14665 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752634AbdLAO4o (ORCPT ); Fri, 1 Dec 2017 09:56:44 -0500 Subject: Re: [PATCH v2 10/19] ASoC: tlv320aic31xx: Add MICBIAS off setting 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-11-afd@ti.com> <20171201133028.svemo5qedyfqrt7y@sirena.org.uk> From: "Andrew F. Davis" Message-ID: Date: Fri, 1 Dec 2017 08:56:31 -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: <20171201133028.svemo5qedyfqrt7y@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/01/2017 07:30 AM, Mark Brown wrote: > On Wed, Nov 29, 2017 at 03:32:51PM -0600, Andrew F. Davis wrote: >> Leaving microphone bias off is a valid setting and even used in the DT >> binding document example. Add this setting here and document the same. > >> - ai31xx-micbias-vg - MicBias Voltage setting >> + 0 or MICBIAS_OFF - MICBIAS output is powered off >> 1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V >> 2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V >> 3 or MICBIAS_AVDD - MICBIAS output is connected to AVDD > > This doesn't make much sense. If we enable the microphone with a > voltage of 0V that's not going to work terribly well - I'd expect this > property to control the voltage set when it's enabled, not if it's > enabled. > I agree about this not making much sense, but I'm not sure the right way forward here. Personally I wouldn't have put MicBias voltage in DT to begin with, it is runtime configurable and depends on user runtime inserted microphone, not really a hardware description :/ The enable/disable is controlled by a DAPM and should be wired to enable whenever we are recording from the related microphone pin. So then without MICBIAS_OFF the user is forced to select from the above voltages whenever recording, which may not be correct if they are using a mic that doesn't need bias. The best option I think would be to drop this from DT, but I don't feel like fighting that battle right now.