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.

OrangePi lts3 - audio dac

Featured Replies

I have a question for more experienced users. Quite a long time ago I built an internet radio based on OrangePi Lite + DAC I think in the I2S interface with the module: PCM5102 ...

PCM5102 DAC Decoder I2S -Aliexpress

unfortunately the board broke down. I have another model, the aforementioned Pi 3 lts but it seems to be less supported. Can I connect the above-mentioned PCM5102 module to this model? Or maybe buy some other supported model that will work just as well as Pi lite with this DAC model or another?

Ps. it would be nice if it had the ability to upload Armbian firmware to emmc flash memory

I installed Armbian/Ubuntu on Pi3lts but I get some errors when trying to update

 

Get:1 http://beta.armbian.com noble/noble-desktop arm64 chromium arm64 9:126.0.6478.182-1~deb12u1+narmbian1 [75,5 MB]
Err:1 http://beta.armbian.com noble/noble-desktop arm64 chromium arm64 9:126.0.6478.182-1~deb12u1+narmbian1
  File has unexpected size (75534134 != 75534200). Mirror sync in progress? [IP: 130.185.239.75 80]
  Hashes of expected file:
   - SHA512:a7e5830c81b8e490ebc775bc96bb333cdd1f77c5fc63eebda4f4af3afa7b93ea3fa12bc77a3f01897406b0fec5fb6086955c50fa2948eddce193339dcafafa77
   - SHA256:bb3b81a3d587729e06ff1ce01c1f381ce80b6862cdcc0fe71ffb3ee72ce9e1bf
   - SHA1:0e8312f23cef970db12a45203aa9af1dadf40a8d [weak]
   - MD5Sum:b25df98ff45f7a20eb89c1ad27cb0390 [weak]
   - Filesize:75534200 [weak]
E: Failed to fetch http://armbian.tnahosting.net/beta/pool/noble-desktop/c/chromium/chromium_126.0.6478.182-1~deb12u1+narmbian1_arm64.deb  File has unexpected size (75534134 != 75534200). Mirror sync in progress? [IP: 130.185.239.75 80]
   Hashes of expected file:
    - SHA512:a7e5830c81b8e490ebc775bc96bb333cdd1f77c5fc63eebda4f4af3afa7b93ea3fa12bc77a3f01897406b0fec5fb6086955c50fa2948eddce193339dcafafa77
    - SHA256:bb3b81a3d587729e06ff1ce01c1f381ce80b6862cdcc0fe71ffb3ee72ce9e1bf
    - SHA1:0e8312f23cef970db12a45203aa9af1dadf40a8d [weak]
    - MD5Sum:b25df98ff45f7a20eb89c1ad27cb0390 [weak]
    - Filesize:75534200 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

 

OK ...I removed chromium from the system...now the upgrade has been done

but I had another problem with the reboot option which didn't always work?  And also restarting the Pi-3 LTS after the poweroff option from the button on the case for 2 seconds.

I switched to FW from the Orange PI provider:
Orangepi3-lts_3.0.8_debian_bullseye_server_linux5.16.17
and now it's OK?

...I switched to the original FW supplied by the OrangePi manufacturer, version: Orangepi3-lts_3.0.8_debian_bullseye_server_linux5.16.17 .... and it's OK

Edited by kris777

Solved by kris777

  • Author

aplay -l 

card 0: allwinnerac200c [allwinner,ac200-codec], device 0: 508f000.i2s-acx00-dai acx00-codec-0 [508f000.i2s-acx00-dai acx00-codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

card 1: sun9ihdmi [sun9i-hdmi], device 0: SUN9I-HDMI PCM i2s-hifi-0 [SUN9I-HDMI PCM i2s-hifi-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0


You can probably use hdmi with an hdmi rca adapter? ...because on TV the audio is played from mpd / mpc 🙂

 

in mpd.conf output settings I have:

audio_output {
    type        "alsa"
    name        "sun9ihdmi"
    device        "hw:1,0"    # optional
    format          "192000:32:2"
    mixer_type      "software"      # optional
    #mixer_device    "default"    # optional
    #mixer_control    "PCM"        # optional
    auto_resample "no"
    auto_channels "no"
    auto_format "no"
    use_mmap "yes"
#    mixer_index    "0"        # optional
}

in the terminal you can read the sound quality:

radio stream : https://streams.rsh.de/rsh-80er/mp3-192/streams

cat /proc/asound/card1/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S24_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 6000
buffer_size: 24000

Will it not be an audio DAC ...? I am a layman in this topic but I think these are the parameters I had on: PCM5102?

on: PCM5102 ...is slightly better

access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 192000 (192000/1)
period_size: 8192
buffer_size: 65536

so will a converter / adapter from HDMI to RCA + audio amplifier be enough ? 

format: S24_LE ... this is probably a 24bit audio format and this is already a DAC?

regards 

 

Edited by kris777

  • Author

It turned out that the sound card with the 3.5 jack output works properly and the cause of the strange earlier noises, crackles, etc. was probably the OrangePi 3lts power supply, although the specification stated: output 5V - 4A it probably wasn't 4A 🙂
I bought a different model and now everything is OK, the sound works properly.

cat /proc/asound/allwinnerac200c/pcm0p/sub0/hw_params

access: RW_INTERLEAVED
format: S24_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 7350
buffer_size: 22050

this one is OK  link

I do not recommend this!!!  link

 

Ps. Is there any advice to eliminate the loud clicking in the speakers during music start and also during system start? The audio signal is supplied to the amplifier via the standard 3.5 jack output from the OrangePi3 LTS. The system uses Alsa / mpd / mpc sound ...?

Edited by kris777

  • Author
  • Solution

I confirm that this HDMI/RCA converter solved the problem and it's OK.

MPD parameters while playing radio stations:

cat /proc/asound/card2/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S24_LE
subformat: STD
channels: 2
rate: 192000 (192000/1)
period_size: 8192
buffer_size: 65536


link

  • Author

or usb card DAC ( CM6631A )  link

cat /proc/asound/card1/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 192000 (192000/1)
period_size: 24000
buffer_size: 96000
 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.