mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-28 19:12:39 +00:00
32 lines
1.2 KiB
BlitzBasic
32 lines
1.2 KiB
BlitzBasic
DESCRIPTION = "Sound configuration files provided by L4T"
|
|
L4T_DEB_COPYRIGHT_MD5 = "27caeb86bc9bb9f3419a7c87e9a301f6"
|
|
|
|
L4T_DEB_TRANSLATED_BPN = "nvidia-l4t-init"
|
|
|
|
require tegra-debian-libraries-common.inc
|
|
|
|
MAINSUM = "3a396551d88ebebd70b1eae57ed74837e82485c7897ab1c233735f3ea63e8215"
|
|
|
|
SRC_URI += "file://asound.conf.tegra-hda-p3767-p3509"
|
|
|
|
do_install() {
|
|
if [ -n "${TEGRA_AUDIO_DEVICE}" ]; then
|
|
install -d ${D}${sysconfdir}
|
|
if [ -e "${UNPACKDIR}/asound.conf.${TEGRA_AUDIO_DEVICE}" ]; then
|
|
install -m 0644 ${UNPACKDIR}/asound.conf.${TEGRA_AUDIO_DEVICE} ${D}${sysconfdir}/asound.conf
|
|
else
|
|
install -m 0644 ${S}/etc/asound.conf.${TEGRA_AUDIO_DEVICE} ${D}${sysconfdir}/asound.conf
|
|
if [ "${TEGRA_AUDIO_DEVICE}" = "tegra-hda-jetson-agx" ]; then
|
|
sed -i -e's!HDA,8!HDA,3!' ${D}${sysconfdir}/asound.conf
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
install -d ${D}${datadir}/alsa/cards ${D}${datadir}/alsa/init/postinit
|
|
install -m 0644 ${S}/usr/share/alsa/cards/*.conf ${D}${datadir}/alsa/cards/
|
|
install -m 0644 ${S}/usr/share/alsa/init/postinit/* ${D}${datadir}/alsa/init/postinit/
|
|
}
|
|
|
|
FILES:${PN} = "${sysconfdir} ${datadir}/alsa"
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|