Skip to content

Instantly share code, notes, and snippets.

@ptrm
Created February 20, 2020 14:40
Show Gist options
  • Save ptrm/4556468ab052a45c450a82a11ad8387a to your computer and use it in GitHub Desktop.
Save ptrm/4556468ab052a45c450a82a11ad8387a to your computer and use it in GitHub Desktop.
state.rockchiprk817co {
control.1 {
iface MIXER
name 'Playback Path'
value HP
comment {
access 'read write'
type ENUMERATED
count 1
item.0 OFF
item.1 SPK
item.2 HP
item.3 SPK_HP
}
}
control.2 {
iface MIXER
name 'Capture MIC Path'
value 'MIC OFF'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 'MIC OFF'
item.1 'Main Mic'
}
}
control.3 {
iface MIXER
name 'Playback Volume'
value.0 245
value.1 245
comment {
access 'read write'
type INTEGER
count 2
range '0 - 237'
dbmin -9500
dbmax -675
dbvalue.0 -675
dbvalue.1 -675
}
}
control.4 {
iface MIXER
name 'Record Volume'
value.0 255
value.1 255
comment {
access 'read write'
type INTEGER
count 2
range '0 - 255'
}
}
control.5 {
iface CARD
name 'Headphone Jack'
value true
comment {
access read
type BOOLEAN
count 1
}
}
}
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
# Place any scripts you need to run at boot on this file
# Bluetooth, Make sure you change your BT MAC address, you need to do this by SSH the first time
# by running
# hcitool scan
# bluetoothctl pair yourmac
# bluetoothctl trust yourmac
# If you want to use bluetooth, uncomment every line after this one
# BTMAC="E4:17:D8:8B:F1:80"
# (
# echo "agent on" | bluetoothctl
# echo "default-agent" | bluetoothctl
# echo "power on" | bluetoothctl
# echo "discoverable on" | bluetoothctl
# echo "pairable on" | bluetoothctl
# echo "scan on" | bluetoothctl
# echo "trust $BTMAC" | bluetoothctl
# echo "connect $BTMAC" | bluetoothctl
# )&
alsactl --file /storage/.config/asound.state restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment