From: Mark Brown Subject: Re: ASoC: hook for codec control updates and clock controls Date: Mon, 8 Dec 2008 11:59:01 +0000 Message-ID: <20081208115900.GA8996@sirena.org.uk> References: <20081207173825.GB26551@buzzloop.caiaq.de> <20081207190239.GA4457@sirena.org.uk> <20081208000450.GA30181@buzzloop.caiaq.de> <20081208111138.GB5159@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cassiel.sirena.org.uk (cassiel.sirena.org.uk [80.68.93.111]) by alsa0.perex.cz (Postfix) with ESMTP id 08DFF103830 for ; Mon, 8 Dec 2008 12:59:03 +0100 (CET) Content-Disposition: inline In-Reply-To: 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: Jarkko Nikula Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Mon, Dec 08, 2008 at 01:40:28PM +0200, Jarkko Nikula wrote: > On Mon, Dec 8, 2008 at 1:11 PM, Mark Brown wrote: > > TBH I don't really see any benefit from doing this in the codec driver > > to doing it in the core. > Agree. Also other codecs might use mclk for their internal state machine. > IRCC, TSC2301 had some weird internal states and timeouts when mclk was > required to be on and when it can be shutdown. It's fairly common, but most devices either only really need the clock when they've got active paths or aren't supposed to have the clock removed at all so I'm not sure we need a specific mechanism for this.