Page 1 of 1

NanoPi Neo: Please add instructions for adding I2S support.

Posted: Fri Nov 25, 2016 10:10 am
by Djagab
Hello,
I have read numerous post on adding I2S support to the NanoPi neo. Somehow they all end up using the "armbian way". I have based my design on the QTembedded image FA supplies. I am pleased with this image for its small design and fast boot time. I am also making use of several kernel modules FA provides for their matrix boards, like the one for infra red support. So, Armbian is not an option to me. It is way to slow at startup and packed with features I don't need.

I have tried to build at least the kernel from sources (github FA) and hoped the daudio0 and daudio1 devices would be present in the output folder after building (....lib/modules/<kernelversion>/sound/sunxi/soc/). This would allow me to enable I2S. No luck. Only spdif was there unfortunately.
Could Friendly Arm provide an instruction as to how to build the kernel with I2S support enabled?
I am not seeing any instructions on your wiki how to build a menuconfig.

Thanks in advance.....

Re: NanoPi Neo: Please add instructions for adding I2S support.

Posted: Fri Nov 25, 2016 8:01 pm
by erazor
you could try these sources and change the dts to enable i2s
https://github.com/megous/linux (branch 4.6 and 4.9 are working for me)

Re: NanoPi Neo: Please add instructions for adding I2S support.

Posted: Sun Dec 04, 2016 2:30 pm
by Djagab
Thanks erazor. Actually your reply to another question in this forum put me in the right direction. I found out it was just a question of editting the right config file: sun8iw7p1smp_defconfig. I changed the config for daudio0 and recopiled the kernel, replaced uImage in the boot section and the modules in the rootfs/lib section. This however leads me to another question: The first lines in this config file strongly suggest not to edit manually. How is this config generated and is there another way to adapt the kernel building to your needs, other than editting the config manually?

Re: NanoPi Neo: Please add instructions for adding I2S support.

Posted: Wed Dec 07, 2016 6:25 am
by jjm
Djagab wrote:
Hello,
I have read numerous post on adding I2S support to the NanoPi neo. Somehow they all end up using the "armbian way". I have based my design on the QTembedded image FA supplies. I am pleased with this image for its small design and fast boot time. I am also making use of several kernel modules FA provides for their matrix boards, like the one for infra red support. So, Armbian is not an option to me. It is way to slow at startup and packed with features I don't need.

I have tried to build at least the kernel from sources (github FA) and hoped the daudio0 and daudio1 devices would be present in the output folder after building (....lib/modules/<kernelversion>/sound/sunxi/soc/). This would allow me to enable I2S. No luck. Only spdif was there unfortunately.
Could Friendly Arm provide an instruction as to how to build the kernel with I2S support enabled?
I am not seeing any instructions on your wiki how to build a menuconfig.

Thanks in advance.....



Hi ,
The kernel source code has supported I2S driver,and we have tested the I2S can be used. If you want to use it just need to configure the kernel configuration . Before compiling the kernel you need to choose the I2S configuration,
use #make menuconfig to open the I2S driver.