Tool/software: Linux
Hi,
we are making custom board with Linux based on am57xx-evm sdk (linux 4.4.19). Now we are tring to add PCM186x driver to linux .
I found 4 files on TI git:
- pcm186x.c;
- pcm186x.h;
- pcm186x-i2c.c;
- pcm186x-spi.c.
I have copied them to linux-folder/sound/soc/codecs
I have added next lines to linux-folder/sound/soc/codecs/makefile:
snd-soc-pcm1862x-objs := pcm186x.o
snd-soc-pcm1862x-i2c-objs := pcm186x-i2c.o
snd-soc-pcm1862x-spi-objs := pcm186x-spi.o
...
obj-$(CONFIG_SND_SOC_PCM186x) += snd-soc-pcm186x.o
obj-$(CONFIG_SND_SOC_PCM186x_I2C) += snd-soc-pcm186x-i2c.o
obj-$(CONFIG_SND_SOC_PCM186x_SPI) += snd-soc-pcm186x-spi.o
And of course I have added this lines to linux-folder/arch/arm/configs/tisdk_am57xx-evm_defconfig file:
CONFIG_SND_SOC_PCM186x=y
CONFIG_SND_SOC_PCM186x_I2C=y
CONFIG_SND_SOC_PCM186x_SPI=y
then I type 2 commands in terminal:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am57xx-evm_defconfig
the last one makes .config file, but there are no my new lines about PCM186x configs.
Shell I add some else lines in other files?
Br,
Alexander.