[alsa-devel] [PATCH 1/9] ARM: DaVinci: ASoC: Adds ASoC driver support for TI DM646X EVM platform

Mark Brown broonie at sirena.org.uk
Mon Mar 16 15:57:00 CET 2009


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.


More information about the Alsa-devel mailing list