Re: AC97 atmel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 11 Jun 2009 15:41:24 +0200Sedji Gaouaou <sedji.gaouaou@xxxxxxxxx> wrote:
> Mark Brown a écrit :> > > > Hrm, looking at the Kconfig in 2.6.30 the dw_dmac code has a hard> > dependency on AVR32 which is probably what's causing the trouble - I> > guess a patch will also be needed for that to enable AT91 support.> > > Yes indeed! On AT91 we don't have a specific dma which is called pdc.> So basically I have put all the dma functions into if(cpu_is_ap7000()).> But I am not sure this is the proper way of doing it...>
Ah, right, you need to implement a different DMA layer in the AC97Cdriver, take a look at the atmel-mci driver for an example of how to dothis.
I.e. you'll need some big #ifdef/ifndef stuff to switch between dw_dmacand the pdc way of doing DMA.
In the sound/atmel/Kconfig add a depend which triggers the selected DMAengine depending on architecture. Or you could make the DMA engineselectable in the menu. Although, this is hard wired in each device, soI would go for something like:
config SOUND_ATMEL_AC97C_PDCbooldepends on AT91
and then use CONFIG_SOUND_ATMEL_AC97C_PDC in the sound/atmel/ac97c.cfile to switch between the two DMA engines.
Did I make sense? I actually had something similar in the driver longago in 2.6.18 or earlier. But ripped it out since the AP7 devices hasit own DMA controller from DesignWare (in addition to PDC) and my mainfocus was getting the driver to work. Adding AT91 support should now bequite smooth.
-- Best regards,Hans-Christian Egtvedt_______________________________________________Alsa-devel mailing listAlsa-devel@xxxxxxxxxxxxxxxxxxxx://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux