[alsa-devel] [PATCH 3/3] Add ALSA driver for Atmel AC97 controller

Hans-Christian Egtvedt hans-christian.egtvedt at atmel.com
Thu Feb 5 08:14:29 CET 2009


On Wed,  4 Feb 2009 12:48:34 +0100
Hans-Christian Egtvedt <hans-christian.egtvedt at atmel.com> wrote:

> This patch adds ALSA support for the AC97 controller found on Atmel
> AVR32 devices.
> 
> Tested on ATSTK1006 + ATSTK1000 with a development board with a AC97
> codec.
> 

<snipp most of patch>

> +static int __devinit atmel_ac97c_pcm_new(struct atmel_ac97c *chip)
> +{
> +	struct snd_pcm *pcm;
> +	int capture = test_bit(DMA_RX_CHAN_PRESENT, &chip->flags);
> +	int playback = test_bit(DMA_TX_CHAN_PRESENT, &chip->flags);
> +	int err;
> +
> +	err = snd_ac97_pcm_assign(chip->ac97_bus,
> +			ARRAY_SIZE(atmel_ac97_pcm_defs),
> +			atmel_ac97_pcm_defs);

Is this call really needed? snd_ac97_pcm_assign() seems to have few
users in ALSA. I do not really get what this does, it is just something
that's always been in the driver.

<snipp>

-- 
Best regards,
Hans-Christian Egtvedt


More information about the Alsa-devel mailing list