Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OPi Zero I2S Left Justify

Featured Replies

Hello!

I want to connect to the I2S the DAC PT8211. But it has an another coding format - left justified (Sony) 16 bit. I have already put a 16-bit frame in script.fex, but I can not do the LJ. On the test sine signal, the tip of the sine is turned upside down.

rbd1atwkxdjoyiqfm789eucr8.jpg

Tell me how to change the output format of the stream from I2S to the Japaneese Left Justify?

 

This part of my fex:

 

[pcm0]

daudio_used = 1
daudio_master = 1
daudio_select = 1
audio_format = 0
signal_inversion = 1
mclk_fs = 64
sample_resolution = 16
slot_width_select = 16
pcm_lrck_period = 16
pcm_lrckr_period = 1
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 0
rx_data_mode = 0
i2s_mclk = port:PA18<2><1><default><default>
i2s_bclk = port:PA19<2><1><default><default>
i2s_dout0 = port:PA20<2><1><default><default>
i2s_din = port:PA21<2><1><default><default>

 

Armbian 3.14 sun8i

 

 

I2S left-justify requires audio_format = 3. As far as I'm concerned, there is no audio_format = 0.

 

But I think you may run into hardware issues with I2S on OPi zero. See this post. 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.