I2S output on N2

Post Reply
chaucer88
Posts: 1
Joined: Mon Jul 29, 2019 7:28 pm
languages_spoken: english
ODROIDs: N2 XU4 XU3
Has thanked: 0
Been thanked: 0
Contact:

I2S output on N2

Unread post by chaucer88 » Mon Jul 29, 2019 7:54 pm

Hi I have an application where I would like to access the I2S output on the N2 rather than the built in DAC, is this possible? The reason is I need to connect to another I2S device.

Many thanks!

User avatar
odroid
Site Admin
Posts: 31852
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 89 times
Been thanked: 255 times
Contact:

Re: I2S output on N2

Unread post by odroid » Tue Jul 30, 2019 11:09 am

Which I2S devices do you want to connect?

We tested TI's PCM5102 DAC output via unpopulated 7pin header on the N2 board long time ago and it worked well.
But you have to modify the Kernel configuration and device-tree files.

ponots03
Posts: 4
Joined: Thu Jul 18, 2019 11:26 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: I2S output on N2

Unread post by ponots03 » Tue Aug 06, 2019 8:47 pm

Hello, I am also interested in this. Could you provide more details regarding kernel config & device-tree modifications that are needed to enable I2S ? We want to use an external DAC on a daughter board.

thanks,

cap00k
Posts: 86
Joined: Tue May 21, 2013 10:46 am
languages_spoken: english
ODROIDs: ODROID
Has thanked: 0
Been thanked: 8 times
Contact:

Re: I2S output on N2

Unread post by cap00k » Wed Aug 14, 2019 5:28 pm

Hi
I had modify the device-tree for I2s output at 7-pin header.
It has been tested with Odroid-N2 + HiFi-Shield+.

Applies the attached file and results in "aplay -l".

Code: Select all

root@odroid:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AMLAUGESOUND [AML-AUGESOUND], device 0: SPDIF-B-dit-hifi dit-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 1: TDM-C-T9015-audio-hifi T9015-audio-hifi-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 2: SPDIF-dit-hifi dit-hifi-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLAUGESOUND [AML-AUGESOUND], device 3: TDM-B-dummy dummy-3 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@odroid:~# 
And, run speaker-test.

Code: Select all

root@odroid:~# speaker-test -Dhw:0,3 -c 2 -t wav                                                                                                      

speaker-test 1.1.3

Playback device is hw:0,3
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 65536
Period size range from 16 to 32768
Using max buffer size 65536
Periods = 4
was set period_size = 16384
was set buffer_size = 65536
 0 - Front Left
 1 - Front Right
Time per period = 1.721603
 0 - Front Left
 1 - Front Right
Time per period = 3.070379
Attachments
odroid-n2-i2s-sound.zip
(1.22 KiB) Downloaded 6 times
These users thanked the author cap00k for the post:
ponots03 (Thu Aug 22, 2019 12:46 am)

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 2 guests