Separate quarks and volume fix

This commit is contained in:
Tim Flaman 2022-12-11 23:49:02 -06:00
parent 6c7a3eb046
commit 16a073a888
3 changed files with 26 additions and 1 deletions

View file

@ -1 +0,0 @@
Anbernic RG351P

View file

@ -0,0 +1,22 @@
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
# Enable GPIO 77 for power LED manipulation
echo ${DEVICE_LED} > /sys/class/gpio/export
# Enable WIFI GPIO for WIFI manipulation
echo ${DEVICE_WIFI} > /sys/class/gpio/export
# Power up the WIFI device
echo out > /sys/class/gpio/gpio${DEVICE_WIFI}/direction
echo 1 > /sys/class/gpio/gpio${DEVICE_WIFI}/value
# Enable PWM for rumble and turn rumble off during startup.
echo 0 > /sys/class/pwm/${DEVICE_PWM_MOTOR}/export
echo 1000000 > /sys/class/pwm/${DEVICE_PWM_MOTOR}/pwm0/period
echo 1 > /sys/class/pwm/${DEVICE_PWM_MOTOR}/pwm0/enable
echo 1000000 > /sys/class/pwm/${DEVICE_PWM_MOTOR}/pwm0/duty_cycle

View file

@ -0,0 +1,4 @@
#!/bin/bash
amixer -c 0 cset iface=MIXER,name='Playback Path' SPK_HP
exit 0