[alsa-devel] Writing an AT91SAM9260-EK Dumb Codec Driver
lg at opensource.wolfsonmicro.com
Fri Jun 15 21:08:39 CEST 2007
On Fri, 2007-06-15 at 13:46 -0500, Paul Kavan wrote:
> Now to making the driver once the code is done. I am relatively new to
> writing linux drivers. In the 6 or so that I have written, I usually
> cross-compile them as modules and then insmod them. I have tried that here
> and am getting a strange warning that I am unsure of. I have a pretty
> simple Makefile and when I execute it, I get:
> make ARCH=arm CROSS_COMPILE=arm-linux-
> make -C ~/Linux_Builds/linux-18.104.22.168M=/home/grhuser/Door_Access_System/Remotes/Driver/sound
> make: Entering directory `/home/grhuser/Linux_Builds/linux- 22.214.171.124'
> CC [M]
> Building modules, stage 2.
> MODPOST 1 modules
> WARNING: "at91_ssc_dai"
> LD [M]
> make: Leaving directory `/home/grhuser/Linux_Builds/linux- 126.96.36.199'
It looks like the AT91 platform code is not being built. i.e. at91-ssc,
> As you can see, I am using linux-188.8.131.52 I have ALSA checked and AT91-SoC
> checked in my .config file. For this attempt to build the driver, I have a
> separate folder than contains: at91-ssc.h and at91-pcm.h. If there is a more
> correct way to do this and be able to debug it, please let me know.
It's probably going to be easier in the long run to copy your driver
code to linux/sound/soc/at91 and then add an entry for your driver in
the linux/sound/soc/at91/ Makefile & Kconfig
e.g. for Kconfig
tristate "SoC Audio support for WM8731-based Endrelia ETI-B1 boards"
depends on SND_AT91_SOC && (MACH_ETI_B1 || MACH_ETI_C1)
Say Y if you want to add support for SoC audio on WM8731-based
Endrelia Technologies Inc ETI-B1 or ETI-C1 boards.
This can then tell the build system (via the select keyword above) that
your board driver depends on the AT91 platform driver and your codec.
More information about the Alsa-devel