[alsa-devel] Add ALSA driver to Buildroot image or add / load it after booting the image
Gabriel M. Beddingfield
gabrbedd at gmail.com
Mon Mar 11 01:20:22 CET 2013
On 03/10/2013 01:19 PM, Marc Schultz wrote:
> Hey ALSA-Devel community,
> I'm successfully booting a Buildroot made Linux image on my board.
> This board has an Cirrus Logic CS4270 sound chip and now I want to
> activate the specific sound card driver for it. Is there a good way to
> put the CS4270 driver files into the Linux Kernel folders of Buildroot
> to get them compressed into the Linux image or do I have to go one of
> the following ways after booting the image on my target hardware?
> Do you have a good workflow for me to get this thing working?
Long story short... making this work is /very/ board-specific. If
someone hasn't already done the work for your specific board -- doing
the work isn't trivial. It's not like PC's where the sound card is on
the PCI bus and you simply have to load the driver module. Someone
experienced in ASoC and board bring-up would spend anywhere from 2 days
to a week to do this board-specific integration work.
If you're starting from less, then the lower estimate is "weeks."
So, if you're up for the journey... here's some starting points...
Start here: Documentation/sound/alsa/soc/*
One example of this kind of integration can be found for the BeagleBoard:
arch/arm/mach-omap2/board-omap3beagle.c (board file)
sound/soc/omap/omap-twl4030.c (ASoC machine driver)
Each component will need board-specific platform data added to the board
file (or device tree), and a machine driver will be needed to glue
together the audio components (CPU platform + CPU Driver + Audio Codec)
into a "sound card".
More information about the Alsa-devel