Commit 10ac24e9 authored by aTc's avatar aTc

update alsa mixer settings

parent 9296c104
state.H58040000encode {
control {
}
}
state.L15 {
control.1 {
iface MIXER
name 'Capture Preamplifier Volume'
value.0 1
value.1 1
comment {
access 'read write'
type INTEGER
count 2
range '0 - 1'
dbmin -600
dbmax 0
dbvalue.0 0
dbvalue.1 0
}
}
control.2 {
iface MIXER
name 'Capture Volume'
value.0 7
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 4'
dbmin 600
dbmax 3000
dbvalue.0 4800
dbvalue.1 600
}
}
control.3 {
iface MIXER
name 'Aux FM Volume'
value.0 7
value.1 7
comment {
access 'read write'
type INTEGER
count 2
range '0 - 7'
dbmin -1800
dbmax 2400
dbvalue.0 2400
dbvalue.1 2400
}
}
control.4 {
iface MIXER
name 'Headset Playback Volume'
value.0 15
value.1 15
comment {
access 'read write'
type INTEGER
count 2
range '0 - 15'
dbmin -3000
dbmax 0
dbvalue.0 0
dbvalue.1 0
}
}
control.5 {
iface MIXER
name 'Handsfree Playback Volume'
value.0 29
value.1 29
comment {
access 'read write'
type INTEGER
count 2
range '0 - 29'
dbmin -5200
dbmax 600
dbvalue.0 600
dbvalue.1 600
}
}
control.6 {
iface MIXER
name 'Earphone Playback Volume'
value 15
comment {
access 'read write'
type INTEGER
count 1
range '0 - 15'
dbmin -2400
dbmax 600
dbvalue.0 600
}
}
control.7 {
iface MIXER
name 'Headset Power Mode'
value High-Performance
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Low-Power
item.1 High-Performance
}
}
control.8 {
iface MIXER
name 'Headset Mono to Stereo Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.9 {
iface MIXER
name 'Handsfree Mono to Stereo Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.10 {
iface MIXER
name 'PLL Selection'
value High-Performance
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Low-Power
item.1 High-Performance
}
}
control.11 {
iface CARD
name 'Headset Mic Jack'
value true
comment {
access read
type BOOLEAN
count 1
}
}
control.12 {
iface CARD
name 'Headset Stereophone Jack'
value true
comment {
access read
type BOOLEAN
count 1
}
}
control.13 {
iface MIXER
name 'Analog Left Capture Route'
value 'Headset Mic'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 'Headset Mic'
item.1 'Main Mic'
item.2 'Aux/FM Left'
item.3 Off
}
}
control.14 {
iface MIXER
name 'Analog Right Capture Route'
value 'Headset Mic'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 'Headset Mic'
item.1 'Sub Mic'
item.2 'Aux/FM Right'
item.3 Off
}
}
control.15 {
iface MIXER
name 'Handsfree Left Playback'
value 'HF DAC'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Off
item.1 'HF DAC'
item.2 'Line-In amp'
}
}
control.16 {
iface MIXER
name 'Handsfree Right Playback'
value 'HF DAC'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Off
item.1 'HF DAC'
item.2 'Line-In amp'
}
}
control.17 {
iface MIXER
name 'Headset Left Playback'
value 'HS DAC'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Off
item.1 'HS DAC'
item.2 'Line-In amp'
}
}
control.18 {
iface MIXER
name 'Headset Right Playback'
value 'HS DAC'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Off
item.1 'HS DAC'
item.2 'Line-In amp'
}
}
control.19 {
iface MIXER
name 'Vibra Left Playback'
value 'Input FF'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 'Input FF'
item.1 'Audio PDM'
}
}
control.20 {
iface MIXER
name 'Vibra Right Playback'
value 'Input FF'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 'Input FF'
item.1 'Audio PDM'
}
}
control.21 {
iface MIXER
name 'Earphone Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.22 {
iface MIXER
name 'AUXL Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.23 {
iface MIXER
name 'AUXR Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
}
#!/bin/sh
CARD=`awk '/\[L15/ {print $1}' /proc/asound/cards`
if [ -n "$CARD" ]; then
amixer -c $CARD -q set "Aux FM" 100%
amixer -c $CARD -q set "Capture" 100%
amixer -c $CARD -q set "Capture Preamplifier" 100%
amixer -c $CARD -q set "AUXL" "on"
amixer -c $CARD -q set "AUXR" "on"
amixer -c $CARD -q set "Analog Left" Off
amixer -c $CARD -q set "Analog Right" Off
amixer -c $CARD -q set "Earphone" 80%
amixer -c $CARD -q set "Handsfree" 80%
amixer -c $CARD -q set "Handsfree Left Playback" "HF DAC"
amixer -c $CARD -q set "Handsfree Right Playback" "HF DAC"
amixer -c $CARD -q set "Headset" 80%
amixer -c $CARD -q set "Headset Left Playback" "HS DAC"
amixer -c $CARD -q set "Headset Right Playback" "HS DAC"
amixer -c $CARD -q set "Headset Power Mode" "High-Performance"
amixer -c $CARD -q set "PLL Selection" "High-Performance"
amixer -c $CARD -q set "Headset Power Mode" "Low-Power"
amixer -c $CARD -q set "PLL Selection" "Low-Power"
amixer -c $CARD -q set "Vibra Left Playback" "Input FF"
amixer -c $CARD -q set "Vibra Right Playback" "Input FF"
fi
alsactl -f /usr/share/pyra/scripts/alsa.conf restore
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment