Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion config/boards/radxa-dragon-q6a.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ declare -g BOARD_NAME="Radxa Dragon Q6A"
declare -g BOARD_VENDOR="radxa"
declare -g BOARD_MAINTAINER="HeyMeco"
declare -g BOARDFAMILY="qcs6490"
declare -g KERNEL_TARGET="edge"
declare -g KERNEL_TARGET="current"
declare -g BOOTCONFIG="none"
declare -g IMAGE_PARTITION_TABLE="gpt"
enable_extension "radxa-aic8800"
Expand All @@ -30,3 +30,23 @@ function post_family_tweaks_bsp__radxa-dragon-q6a_bsp_firmware_in_initrd() {
run_host_command_logged chmod -v +x "${file_added_to_bsp_destination}"
}

function post_family_tweaks__radxa-dragon-q6a_install_alsa_ucm_conf() {
# Only install for kernel 6.18.x
if [[ "${KERNEL_MAJOR_MINOR}" == "6.18" ]]; then
display_alert "Installing alsa-ucm-conf" "${BOARD}: Radxa ALSA UCM configuration" "info"

declare alsa_ucm_url="https://github.com/radxa-pkg/alsa-ucm-conf/releases/download/1.2.14-1radxa2/alsa-ucm-conf_1.2.14-1radxa2_all.deb"
declare alsa_ucm_deb="/tmp/alsa-ucm-conf_1.2.14-1radxa2_all.deb"

# Download the package
run_host_command_logged wget -O "${SDCARD}${alsa_ucm_deb}" "${alsa_ucm_url}"

# Install in chroot
chroot_sdcard dpkg -i "${alsa_ucm_deb}"

# Clean up
run_host_command_logged rm -f "${SDCARD}${alsa_ucm_deb}"
else
display_alert "Skipping alsa-ucm-conf installation" "Kernel version ${KERNEL_MAJOR_MINOR} != 6.18" "info"
fi
}
Loading