On Wed, 4 Feb 2009 12:00:52 +0000 Mark Brown broonie@sirena.org.uk wrote:
On Wed, Feb 04, 2009 at 12:48:34PM +0100, Hans-Christian Egtvedt 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.
Signed-off-by: Hans-Christian Egtvedt hans-christian.egtvedt@atmel.com
Just glancing over the code here this looks very like the code for the AT91 AC97 controller which Sedji (CCed) has posted in the past. Is it possible to share the same driver for both chips, like we're doing with the ASoC drivers for the two architectures? It'd make life easier if that were possible and I know there's a lot of people interested in the AT91 support for mainline.
Yes, it should be possible to share the AC97C driver between AT91 and AVR32. Although this AC97C driver uses the DesignWare DMAC controller (drivers/dma/dw_dmac.c).
I do not remember which DMA interface AT91 devices uses.
Should the driver go into sound/drivers then? And renamed to atmel-ac97c.{c,h} for example.