From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Brown Subject: Re: [PATCH 1/9] ARM: DaVinci: ASoC: Adds ASoC driver support for TI DM646X EVM platform Date: Mon, 16 Mar 2009 14:57:00 +0000 Message-ID: <20090316145659.GC16539@sirena.org.uk> References: <1237204945-30039-1-git-send-email-naresh@ti.com> 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 6E35D2415C for ; Mon, 16 Mar 2009 15:57:01 +0100 (CET) Content-Disposition: inline In-Reply-To: <1237204945-30039-1-git-send-email-naresh@ti.com> 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: Naresh Medisetty Cc: davinci-linux-open-source@linux.davincidsp.com, alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Mon, Mar 16, 2009 at 08:02:25AM -0400, Naresh Medisetty wrote: > Adds ASoC driver support for TI DM646X EVM platform Your changelog needs to be a bit more verbose here... > +#include "../codecs/codec_stubs.h" Interesting... > +static struct resource dm6467_evm_snd_resources[] = { > + { > + .start = DAVINCI_DM646X_MCASP0_REG_BASE, > + .end = DAVINCI_DM646X_MCASP0_REG_BASE + (SZ_1K << 1) - 1, > + .flags = IORESOURCE_MEM, > + }, Take a look at how the s3c24xx_uda134x driver handles getting platform data for the device. > +static struct evm_snd_platform_data dm6467_evm_snd_data[] = { > + { > + .clk_name = "McASPCLK0", > + .tx_dma_ch = DAVINCI_DM646X_DMA_MCASP0_AXEVT0, > + .rx_dma_ch = DAVINCI_DM646X_DMA_MCASP0_AREVT0, > + .tx_dma_offset = 0x400, > + .rx_dma_offset = 0x400, > + .op_mode = DAVINCI_MCASP_IIS_MODE, > + .num_serializer = 4, > + .tdm_slots = 2, > + .serial_dir = dm6467_iis_serializer_direction, > + .eventq_no = EVENTQ_0, > + .codec_fmt = SND_SOC_DAIFMT_CBM_CFM | SND_SOC_DAIFMT_IB_NF, > + }, Lots of this stuff looks like it ought to be part of the driver for the DAI rather than part of the machine driver. > > - if (machine_is_davinci_evm()) { > + if (cpu_is_davinci_dm644x()) { > davinci_cfg_reg(DM644X_MCBSP); This really should be checking for the machine - presumably it needs to check for both the EVM and the particular CPU variant that's fitted on it.