From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [patch 1/3] ASoC: add support for alc562[123] codecs Date: Wed, 13 Oct 2010 19:03:56 +0100 Message-ID: <20101013180355.GA16978@rakim.wolfsonmicro.main> References: <20101012094453.660938870@rtp-net.org> <20101012100036.605541759@rtp-net.org> <20101012171602.GG30933@rakim.wolfsonmicro.main> <871v7ux9ec.fsf@lechat.rtp-net.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource2.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id C04671038BA for ; Wed, 13 Oct 2010 20:03:57 +0200 (CEST) Content-Disposition: inline In-Reply-To: <871v7ux9ec.fsf@lechat.rtp-net.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Arnaud Patard Cc: alsa-devel@alsa-project.org, Saeed Bishara , Martin Michlmayr , Liam Girdwood List-Id: alsa-devel@alsa-project.org On Wed, Oct 13, 2010 at 07:58:03PM +0200, Arnaud Patard wrote: > Mark Brown writes: > >> + switch (level) { > >> + case SND_SOC_BIAS_ON: > >> + enable_power_depop(codec); > >> + break; > > enable_power_depop() takes a rather long time - about 500ms - which is > > surprising for _ON. Are you sure it should be done here? > It was there in the original driver and when working on this driver, I > didn't see any reason for moving it elsewhere. tbh, if I have to move it > elsewhere, I don't know where I'll put it. Normally _PREPARE if you must do it whenever bringing up playback but generally you should try to do anything really slow when bringing the biases up to standby. Bear in mind that I've no idea what's actually being done here...