Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753157AbaBYDyI (ORCPT ); Mon, 24 Feb 2014 22:54:08 -0500 Received: from mail-vc0-f173.google.com ([209.85.220.173]:49064 "EHLO mail-vc0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752558AbaBYDyG (ORCPT ); Mon, 24 Feb 2014 22:54:06 -0500 MIME-Version: 1.0 In-Reply-To: <20140225034635.GB7343@MrMyself> References: <1393224929-7555-1-git-send-email-Guangyu.Chen@freescale.com> <20140224113011.GE25940@sirena.org.uk> <20140224160648.GC6132@MrMyself> <20140225000027.GI25940@sirena.org.uk> <20140225023840.GB7229@MrMyself> <20140225030947.GO25940@sirena.org.uk> <20140225031313.GA7343@MrMyself> <20140225033929.GP25940@sirena.org.uk> <20140225034635.GB7343@MrMyself> Date: Tue, 25 Feb 2014 00:54:04 -0300 Message-ID: Subject: Re: [alsa-devel] [PATCH] ASoC: cs42888: Add codec driver support From: Fabio Estevam To: Nicolin Chen Cc: Mark Brown , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "Austin, Brian" , "pawel.moll@arm.com" , "ijc+devicetree@hellion.org.uk" , "linux-doc@vger.kernel.org" , Liam Girdwood , "Handrigan, Paul" , "linux-kernel@vger.kernel.org" , "robh+dt@kernel.org" , "rob@landley.net" , "galak@codeaurora.org" , "grant.likely@linaro.org" , "alsa-devel@alsa-project.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolin, On Tue, Feb 25, 2014 at 12:46 AM, Nicolin Chen wrote: >> So register it from the ESAI driver then. > > Then I think I need to find a way to pass the clock to CODEC driver... Does this example from mxs-saif help? commit 7c9e6150f2e7cbd60e0bc9a19118ca1dc97d2780 Author: Shawn Guo Date: Mon Jul 1 16:16:10 2013 +0800 ASoC: mxs: register saif mclk to clock framework Mostly the mxs system design uses saif0 mclk output as the clock source of codec. Since the mclk is implemented as a general divider with the saif clk as the parent clock, let's register the mclk as a basic clk-divider to common clock framework. Then with it being a clock provdier, clk_get() call in codec driver probe function will just work. Signed-off-by: Shawn Guo Signed-off-by: Mark Brown -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/