* Orange Pi 3 LTS * Enable build targets Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
ATF_PLAT="sun50i_h6";
|
|
source "${BASH_SOURCE%/*}/include/sunxi64_common.inc"
|
|
OVERLAY_PREFIX='sun50i-h6'
|
|
[[ -z $CPUMIN ]] && CPUMIN=480000
|
|
[[ -z $CPUMAX ]] && CPUMAX=1810000
|
|
GOVERNOR=ondemand
|
|
ASOUND_STATE='asound.state.sun50iw2-dev'
|
|
|
|
case $BRANCH in
|
|
current)
|
|
|
|
if [[ ${BOARD} == orangepi3-lts ]]; then
|
|
|
|
ASOUND_STATE='asound.state.sun50iw6-current'
|
|
|
|
fi
|
|
;;
|
|
edge)
|
|
|
|
if [[ ${BOARD} == orangepi3-lts ]]; then
|
|
|
|
ASOUND_STATE='asound.state.sun50iw6-current'
|
|
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
family_tweaks_s()
|
|
{
|
|
|
|
if [[ $BUILD_DESKTOP == yes && $BOARD == orangepi3-lts ]]; then
|
|
|
|
sed -i "s/auto-profiles = yes/auto-profiles = no/" ${SDCARD}/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf
|
|
echo "load-module module-alsa-sink device=hw:0,0 sink_name=AudioCodec-Playback sink_properties=\"device.description='Audio Codec'\"" >> ${SDCARD}/etc/pulse/default.pa
|
|
echo "load-module module-alsa-sink device=hw:1,0 sink_name=HDMI-Playback sink_properties=\"device.description='HDMI Audio'\"" >> ${SDCARD}/etc/pulse/default.pa
|
|
|
|
fi
|
|
|
|
}
|