[Dec 07] DietPi(v6.18) - Pinebook / Manjaro KDE (preview3) / Manjaro LXQT (preview3) - Pinebook |[Dec 06] Armbian Debian Stretch (5.67) / Armbian Ubuntu 18.04 Bionic Desktop (5.67) - RockPro64 |[Dec 05] DietPi(v6.18) - 1080P Pinebook | [Nov 28] Slackware Aarch64 Miniroot (20181126) / Slackware Aarch64 XFCE (20181126) - RockPro64 / Manjaro KDE (preview3) / Manjaro LXQT (preview3) /Q4OS (2.6-r6) - 1080P Pinebook

Project Inspiration | Get Started | IRC Logs | Forum Rules/Policy


I2S Codec on Euler bus of Pine A64+
#1
I have recently purchased Pina64+ board and tested with Armbain server image based on kernel 3.10. I need to connect audio codec
in the I2S pin of Euler bus.  I would like to know what all changes in the dtb file or even in the kernel need to be made in order to work
with my audio codec which works in master mode. Basically A64+ should work in slave mode.

Any help will be highly appreciated.

Regards
Ranjit
Reply
#2
AFAIK, Armbian is using Ayufan's kernel 3.10.105, which should have the patched dts for pine64, pine64+ and sopine64.

In case not, compare them with the ones in the attachment, these are the ones I used for my kernel (3.10.105-bsp-1.2+) to build Volumio 
pine64.dts is for pine64+
pinenoplus.dts is for pine64
pine64so.dts is for sopine64


Attached Files
.zip   pine64-patched-dts.zip (Size: 38.65 KB / Downloads: 5)
Reply
#3
Hi, Thanks for the reply. the dtb file used in arbmian image is sun50iw1pi-pine64-plus.dtb. and the noticeable difference is as below
[email protected] {
compatible = "allwinner,sunxi-daudio0-machine";
sunxi,daudio0-controller = <0x4e>;
status = "disabled";
device_type = "snddaudio0";
};
I have changed the staus to "okay" and also changed the "CONFIG_SND_SOC_DAUDIO0_MACHINE=m" in the config file. With the
change I could see the kernel module sunxi-snddaudio0.ko in the /lib/modules/3.10.107-pine64/kernel/sound/soc/sunxi
However the module is not loaded.

Then I manually tried to load by calling "insmod" which returns the following errors.
De 3 11:18:00 localhost kernel: [ 982.711898] snddaudio0 sound.8: ASoC: CPU DAI (null) not registered
Dec 3 11:18:00 localhost kernel: [ 982.711953] snddaudio0 sound.8: snd_soc_register_card() failed: -517
Dec 3 11:18:00 localhost kernel: [ 982.711898] snddaudio0 sound.8: ASoC: CPU DAI (null) not registered
Dec 3 11:18:00 localhost kernel: [ 982.711953] snddaudio0 sound.8: snd_soc_register_card() failed: -517
Dec 3 11:18:00 localhost kernel: [ 982.711991] platform sound.8: Driver snddaudio0 requests probe deferral

As I understand certain dependency driver need to be install as well. Could you please help what else need to be enabled in configure file during kernel build?
the kernel version in the armbian build environment is 3.10.107

Any help will be highly apricated.
Regards
Ranjit
Reply
#4
Well, you could have a look at my config in the attachment.
I enabled "ASoC Simple sound card support "and with "ASoC support for SUNXI" the following:
 
<*>   ASoC support for audiocodec
   <*>   ASoC support for internal-i2s 
   <*>   ASoC support for audiocodec machine 
   <*>   ASoC support for daudio platform. 
   <*>   ASoC support for vircodec  
   <*>   ASoC support for daudio0 machine 
   < >   ASoC support for daudio1 machine 
   <*>   ASoC support for hdmiaudio 
   <*>   ASoC support for spdif soundcard

As you see, I only selected daudio0, you don't need daudio1


Attached Files
.txt   config-3.10.105-bsp-1.2+-2017.11.10-17.29.txt (Size: 89.12 KB / Downloads: 8)
Reply
#5
I have changed the configure file as suggested to make it built-in the. Below is the snippet of config file
CONFIG_SND_SOC_SUNXI_RW=y
CONFIG_SND_SOC_SUNXI_AUDIO_DMA=y
CONFIG_SND_SOC_SUNXI_TDM=y
CONFIG_SND_SUNXI_SOC=y
CONFIG_SND_SOC_INTERNAL_AUDIOCODEC=y
CONFIG_SND_SOC_INTERNAL_I2S=y
CONFIG_SND_SOC_AUDIO_CODEC_MACHINE=y
CONFIG_SND_SOC_DAUDIO_PLATFORM=y
CONFIG_SND_SOC_VIRCODEC=y
CONFIG_SND_SOC_DAUDIO0_MACHINE=y
# CONFIG_SND_SOC_DAUDIO1_MACHINE is not set
CONFIG_SND_SUNXI_SOC_HDMIAUDIO=y

However I still see the failure log
Dec 4 02:22:10 localhost kernel: [ 10.453351] snddaudio0 sound.8: ASoC: CPU DAI (null) not registered
Dec 4 02:22:10 localhost kernel: [ 10.453386] snddaudio0 sound.8: snd_soc_register_card() failed: -517
Dec 4 02:22:10 localhost kernel: [ 10.453390] [RANJ] sunxi_snddaudio0_dev_probe done with -517


Kindly could you please let me know kernel source code that you are using to build for PINE A64 and the build instruction. It would be
great help if you let me know the procedure of your kernel build to test the I2S on Euler bus.

Regards
Ranjit
Reply
#6
(11-29-2018, 08:37 PM)RANJITT76 Wrote: I have recently purchased Pina64+ board and tested with Armbain server image based on kernel 3.10. I need to connect audio codec
in the I2S pin of Euler bus.  I would like to know what all changes in the dtb file or even in the kernel need to be made in order to work
with my audio codec which works in master mode. Basically A64+ should work in slave mode.

Any help will be highly appreciated.

Regards
Ranjit

You have a PM
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  There is a usable distro for Pine A64? polv89 5 810 11-26-2018, 07:59 PM
Last Post: thraxarious
Rainbow Pine a64 + Armbian + RTL-SDR = fun Drowwy 5 305 10-11-2018, 11:46 AM
Last Post: Drowwy
  Selling Pine A64 with lots of accessories marcelser 1 299 09-26-2018, 11:25 PM
Last Post: ntindle
  NetBSD for Pine A64(+) Luke 2 442 05-26-2018, 01:47 AM
Last Post: Luke
  Supply DC power to Pine64 via Pi-2 Connector & Euler Bus? crapped 2 194 05-24-2018, 01:58 AM
Last Post: crapped
  Just installed Ubuntu Xenial on Pine 64+ and no sound adamjedgar 1 366 04-12-2018, 11:35 PM
Last Post: DanielRounds
  sd format?for pine 64 angegardien 2 216 04-12-2018, 12:47 PM
Last Post: Punkyclown
  how to share pine folder with windows? ealbers 2 286 09-16-2017, 03:46 PM
Last Post: MarkHaysHarris777
Lightbulb pdeclib pilib modules for Pine, Rock, Pinebook, Sopine MarkHaysHarris777 7 493 08-13-2017, 01:14 AM
Last Post: tllim
  Best OS for Pine A64+ abrmx 8 1,962 08-04-2017, 09:06 AM
Last Post: abrmx

Forum Jump:


Users browsing this thread: 2 Guest(s)