Add WM8960 soundcard support

Signed-off-by: Devendra Tewari <devendra.tewari@gmail.com>
This commit is contained in:
Devendra Tewari
2021-06-08 17:39:52 -03:00
committed by Andrei Gherzan
parent 7057d5dcbf
commit 246555aea7
5 changed files with 33 additions and 0 deletions
+8
View File
@@ -30,6 +30,8 @@ GPIO_IR_TX ?= "17"
CAN_OSCILLATOR ?= "16000000"
WM8960="${@bb.utils.contains("MACHINE_FEATURES", "wm8960", "1", "0", d)}"
inherit deploy nopackages
do_deploy() {
@@ -251,6 +253,12 @@ do_deploy() {
;;
esac
fi
# WM8960 support
if [ "${WM8960}" = "1" ]; then
echo "# Enable WM8960" >> $CONFIG
echo "dtoverlay=wm8960-soundcard" >> $CONFIG
fi
}
do_deploy_append_raspberrypi3-64() {