@@ -10,9 +10,7 @@ FULL_DESKTOP="yes"
10
10
SERIALCON=" ttyAML0"
11
11
BOOT_LOGO=" desktop"
12
12
BOOT_FDT_FILE=" amlogic/meson-g12b-a311d-cainiao-cniot-core.dtb"
13
- # playback via HDMI: aplay -D plughw:CNIoTCORE,0 /usr/share/sounds/alsa/Front_Center.wav
14
- # playback via internal speaker: aplay -D plughw:CNIoTCORE,1 /usr/share/sounds/alsa/Front_Center.wav
15
- ASOUND_STATE=" asound.state.cainiao-cniot-core"
13
+ PACKAGE_LIST_BOARD=" alsa-ucm-conf" # Contain ALSA UCM top-level configuration file
16
14
17
15
BOOTBRANCH_BOARD=" tag:v2025.04"
18
16
BOOTPATCHDIR=" v2025.04" # This has a patch that adds support for CAINIAO CNIoT-CORE.
@@ -88,3 +86,22 @@ function post_uboot_custom_postprocess__repack_vendor_fip_with_mainline_uboot()
88
86
exit 1
89
87
fi
90
88
}
89
+
90
+ function post_family_tweaks_bsp__cainiao-cniot-core() {
91
+ display_alert " ${BOARD}" " Installing ALSA UCM configuration files" " info"
92
+
93
+ # Use ALSA UCM via GUI: Install a desktop environment such as GNOME, PipeWire, and WirePlumber.
94
+
95
+ # Use ALSA UCM via CLI: alsactl init && alsaucm set _verb " HiFi" set _enadev " HDMI" set _enadev " Speaker"
96
+ # playback via HDMI: aplay -D plughw:cainiaocniotcor,0 /usr/share/sounds/alsa/Front_Center.wav
97
+ # playback via internal speaker: aplay -D plughw:cainiaocniotcor,1 /usr/share/sounds/alsa/Front_Center.wav
98
+
99
+ install -Dm644 " ${SRC}/packages/bsp/cainiao-cniot-core/cainiao-cniot-core-HiFi.conf" " ${destination}/usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core-HiFi.conf"
100
+ install -Dm644 " ${SRC}/packages/bsp/cainiao-cniot-core/cainiao-cniot-core.conf" " ${destination}/usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core.conf"
101
+
102
+ if [ ! -d " ${destination}/usr/share/alsa/ucm2/conf.d/axg-sound-card" ]; then
103
+ mkdir -p " ${destination}/usr/share/alsa/ucm2/conf.d/axg-sound-card"
104
+ fi
105
+ ln -sfv /usr/share/alsa/ucm2/Amlogic/axg-sound-card/cainiao-cniot-core.conf \
106
+ " ${destination}/usr/share/alsa/ucm2/conf.d/axg-sound-card/cainiao-cniot-core.conf"
107
+ }
0 commit comments