Update asound.state

This commit is contained in:
orangepi-xunlong 2022-03-10 09:31:45 +08:00
parent 6b35cf1c66
commit ba1b625b3c
3 changed files with 207 additions and 196 deletions

View File

@ -49,6 +49,7 @@ case $BRANCH in
#KERNELBRANCH='branch:orange-pi-5.13-rockchip64' #KERNELBRANCH='branch:orange-pi-5.13-rockchip64'
#LINUXCONFIG='linux-5.13-rockchip64' #LINUXCONFIG='linux-5.13-rockchip64'
[[ ${BOARD} == orangepi4-lts ]] && ASOUND_STATE='asound.state.orangepi4-es8316' [[ ${BOARD} == orangepi4-lts ]] && ASOUND_STATE='asound.state.orangepi4-es8316'
[[ ${BOARD} == orangepi800 ]] && ASOUND_STATE='asound.state.orangepi800-es8316'
;; ;;
esac esac

View File

@ -1,74 +1,67 @@
state.hdmisound {
control.1 {
iface PCM
name 'Playback Channel Map'
value.0 0
value.1 0
value.2 0
value.3 0
value.4 0
value.5 0
value.6 0
value.7 0
comment {
access read
type INTEGER
count 8
range '0 - 36'
}
}
control.2 {
iface PCM
name ELD
value '100008006c1000010000000000000000410c1000323450464c333534332f5433090701000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access 'read volatile'
type BYTES
count 128
}
}
}
state.rockchipes8316c { state.rockchipes8316c {
control.1 { control.1 {
iface MIXER iface MIXER
name 'HP Playback Volume' name 'Headphone Playback Volume'
value.0 0 value.0 3
value.1 0 value.1 3
comment { comment {
access 'read write' access 'read write'
type INTEGER type INTEGER
count 2 count 2
range '0 - 0' range '0 - 3'
dbmin -4800 dbmin -4800
dbmax -4800 dbmax 0
dbvalue.0 -4800 dbvalue.0 0
dbvalue.1 -4800 dbvalue.1 0
} }
} }
control.2 { control.2 {
iface MIXER iface MIXER
name 'HPMixer Gain' name 'Headphone Mixer Volume'
value.0 0 value.0 0
value.1 0 value.1 0
comment { comment {
access 'read write' access 'read write'
type INTEGER type INTEGER
count 2 count 2
range '0 - 7' range '0 - 11'
dbmin -1200 dbmin -1200
dbmax -150 dbmax 0
dbvalue.0 -1200 dbvalue.0 -1200
dbvalue.1 -1200 dbvalue.1 -1200
} }
} }
control.3 { control.3 {
iface MIXER
name 'DAC Playback Volume'
value.0 152
value.1 152
comment {
access 'read write'
type INTEGER
count 2
range '0 - 192'
dbmin -9999999
dbmax 0
dbvalue.0 -2000
dbvalue.1 -2000
}
}
control.4 {
iface MIXER
name 'Enable DAC Soft Ramp'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.5 {
iface MIXER
name 'DAC Soft Ramp Rate'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 4'
}
}
control.6 {
iface MIXER iface MIXER
name 'Playback Polarity' name 'Playback Polarity'
value Normal value Normal
@ -82,9 +75,46 @@ state.rockchipes8316c {
item.3 'L + R Invert' item.3 'L + R Invert'
} }
} }
control.4 {
iface MIXER
name 'DAC Playback Volume'
value.0 170
value.1 170
comment {
access 'read write'
type INTEGER
count 2
range '0 - 192'
dbmin -9999999
dbmax 0
dbvalue.0 -1100
dbvalue.1 -1100
}
}
control.5 {
iface MIXER
name 'DAC Soft Ramp Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.6 {
iface MIXER
name 'DAC Soft Ramp Rate'
value 4
comment {
access 'read write'
type INTEGER
count 1
range '0 - 4'
}
}
control.7 { control.7 {
iface MIXER iface MIXER
name 'DAC Notch Filter' name 'DAC Notch Filter Switch'
value false value false
comment { comment {
access 'read write' access 'read write'
@ -94,7 +124,7 @@ state.rockchipes8316c {
} }
control.8 { control.8 {
iface MIXER iface MIXER
name 'DAC Double Fs Mode' name 'DAC Double Fs Switch'
value false value false
comment { comment {
access 'read write' access 'read write'
@ -103,17 +133,6 @@ state.rockchipes8316c {
} }
} }
control.9 { control.9 {
iface MIXER
name 'DAC Volume Control-LeR'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 1'
}
}
control.10 {
iface MIXER iface MIXER
name 'DAC Stereo Enhancement' name 'DAC Stereo Enhancement'
value 0 value 0
@ -124,52 +143,17 @@ state.rockchipes8316c {
range '0 - 7' range '0 - 7'
} }
} }
control.10 {
iface MIXER
name 'DAC Mono Mix Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.11 { control.11 {
iface MIXER
name 'MIC Boost'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.12 {
iface MIXER
name 'Input PGA'
value 6
comment {
access 'read write'
type INTEGER
count 1
range '0 - 8'
}
}
control.13 {
iface MIXER
name 'ADC Capture Volume'
value 10
comment {
access 'read write'
type INTEGER
count 1
range '0 - 192'
dbmin -9999999
dbmax 0
dbvalue.0 -9100
}
}
control.14 {
iface MIXER
name 'ADC Soft Ramp'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.15 {
iface MIXER iface MIXER
name 'Capture Polarity' name 'Capture Polarity'
value Normal value Normal
@ -181,9 +165,57 @@ state.rockchipes8316c {
item.1 Invert item.1 Invert
} }
} }
control.12 {
iface MIXER
name 'Mic Boost Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.13 {
iface MIXER
name 'ADC Capture Volume'
value 190
comment {
access 'read write'
type INTEGER
count 1
range '0 - 192'
dbmin -9999999
dbmax 0
dbvalue.0 -100
}
}
control.14 {
iface MIXER
name 'ADC PGA Gain Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 10'
dbmin -350
dbmax 2400
dbvalue.0 -350
}
}
control.15 {
iface MIXER
name 'ADC Soft Ramp Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.16 { control.16 {
iface MIXER iface MIXER
name 'ADC Double FS Mode' name 'ADC Double Fs Switch'
value false value false
comment { comment {
access 'read write' access 'read write'
@ -192,48 +224,55 @@ state.rockchipes8316c {
} }
} }
control.17 { control.17 {
iface MIXER
name 'ALC Capture Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.18 {
iface MIXER
name 'ALC Capture Max Volume'
value 28
comment {
access 'read write'
type INTEGER
count 1
range '0 - 28'
dbmin -650
dbmax 3550
dbvalue.0 3550
}
}
control.19 {
iface MIXER
name 'ALC Capture Min Volume'
value 0
comment {
access 'read write'
type INTEGER
count 1
range '0 - 28'
dbmin -1200
dbmax 3000
dbvalue.0 -1200
}
}
control.20 {
iface MIXER iface MIXER
name 'ALC Capture Target Volume' name 'ALC Capture Target Volume'
value 10 value 11
comment { comment {
access 'read write' access 'read write'
type INTEGER type INTEGER
count 1 count 1
range '0 - 10' range '0 - 10'
} dbmin -1650
} dbmax -150
control.18 { dbvalue.0 0
iface MIXER
name 'ALC Capture Max PGA'
value 13
comment {
access 'read write'
type INTEGER
count 1
range '0 - 28'
}
}
control.19 {
iface MIXER
name 'ALC Capture Min PGA'
value 8
comment {
access 'read write'
type INTEGER
count 1
range '0 - 28'
}
}
control.20 {
iface MIXER
name 'ALC Capture Function'
value On
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Off
item.1 On
} }
} }
control.21 { control.21 {
@ -250,7 +289,7 @@ state.rockchipes8316c {
control.22 { control.22 {
iface MIXER iface MIXER
name 'ALC Capture Decay Time' name 'ALC Capture Decay Time'
value 0 value 3
comment { comment {
access 'read write' access 'read write'
type INTEGER type INTEGER
@ -261,7 +300,7 @@ state.rockchipes8316c {
control.23 { control.23 {
iface MIXER iface MIXER
name 'ALC Capture Attack Time' name 'ALC Capture Attack Time'
value 5 value 2
comment { comment {
access 'read write' access 'read write'
type INTEGER type INTEGER
@ -271,8 +310,18 @@ state.rockchipes8316c {
} }
control.24 { control.24 {
iface MIXER iface MIXER
name 'ALC Capture NG Threshold' name 'ALC Capture Noise Gate Switch'
value 1 value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.25 {
iface MIXER
name 'ALC Capture Noise Gate Threshold'
value 0
comment { comment {
access 'read write' access 'read write'
type INTEGER type INTEGER
@ -280,10 +329,10 @@ state.rockchipes8316c {
range '0 - 31' range '0 - 31'
} }
} }
control.25 { control.26 {
iface MIXER iface MIXER
name 'ALC Capture NG Type' name 'ALC Capture Noise Gate Type'
value 'Mute ADC Output' value 'Constant PGA Gain'
comment { comment {
access 'read write' access 'read write'
type ENUMERATED type ENUMERATED
@ -292,16 +341,6 @@ state.rockchipes8316c {
item.1 'Mute ADC Output' item.1 'Mute ADC Output'
} }
} }
control.26 {
iface MIXER
name 'ALC Capture NG Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.27 { control.27 {
iface MIXER iface MIXER
name 'Differential Mux' name 'Differential Mux'
@ -331,7 +370,7 @@ state.rockchipes8316c {
} }
control.29 { control.29 {
iface MIXER iface MIXER
name 'DAC SRC Mux' name 'DAC Source Mux'
value 'LDATA TO LDAC, RDATA TO RDAC' value 'LDATA TO LDAC, RDATA TO RDAC'
comment { comment {
access 'read write' access 'read write'
@ -345,7 +384,7 @@ state.rockchipes8316c {
} }
control.30 { control.30 {
iface MIXER iface MIXER
name 'Left Hp mux' name 'Left Headphone Mux'
value lin1-rin1 value lin1-rin1
comment { comment {
access 'read write' access 'read write'
@ -359,7 +398,7 @@ state.rockchipes8316c {
} }
control.31 { control.31 {
iface MIXER iface MIXER
name 'Right Hp mux' name 'Right Headphone Mux'
value lin1-rin1 value lin1-rin1
comment { comment {
access 'read write' access 'read write'
@ -373,7 +412,7 @@ state.rockchipes8316c {
} }
control.32 { control.32 {
iface MIXER iface MIXER
name 'LLIN Switch' name 'Left Headphone Mixer LLIN Switch'
value false value false
comment { comment {
access 'read write' access 'read write'
@ -383,8 +422,8 @@ state.rockchipes8316c {
} }
control.33 { control.33 {
iface MIXER iface MIXER
name 'Left DAC Switch' name 'Left Headphone Mixer Left DAC Switch'
value false value true
comment { comment {
access 'read write' access 'read write'
type BOOLEAN type BOOLEAN
@ -393,7 +432,7 @@ state.rockchipes8316c {
} }
control.34 { control.34 {
iface MIXER iface MIXER
name 'RLIN Switch' name 'Right Headphone Mixer RLIN Switch'
value false value false
comment { comment {
access 'read write' access 'read write'
@ -403,8 +442,8 @@ state.rockchipes8316c {
} }
control.35 { control.35 {
iface MIXER iface MIXER
name 'Right DAC Switch' name 'Right Headphone Mixer Right DAC Switch'
value false value true
comment { comment {
access 'read write' access 'read write'
type BOOLEAN type BOOLEAN
@ -412,26 +451,3 @@ state.rockchipes8316c {
} }
} }
} }
state.rkhdmidpsound {
control.1 {
iface PCM
name ELD
value '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access 'read volatile'
type BYTES
count 128
}
}
control.2 {
iface PCM
name 'AUDIO MODE'
value 0
comment {
access 'read write volatile'
type INTEGER
count 1
range '0 - 2'
}
}
}

View File

@ -106,12 +106,6 @@ prepare_board() {
[[ -f /sys/class/leds/caps_led/brightness ]] && chmod 666 /sys/class/leds/caps_led/brightness [[ -f /sys/class/leds/caps_led/brightness ]] && chmod 666 /sys/class/leds/caps_led/brightness
[[ -f /sys/class/leds/num_led/brightness ]] && chmod 666 /sys/class/leds/num_led/brightness [[ -f /sys/class/leds/num_led/brightness ]] && chmod 666 /sys/class/leds/num_led/brightness
CODEC_CARD=1
amixer -c ${CODEC_CARD} cset name='Headphone Playback Volume' 11 > /dev/null 2>&1
amixer -c ${CODEC_CARD} cset name='DAC Playback Volume' 170 > /dev/null 2>&1
amixer -c ${CODEC_CARD} cset name='ADC Capture Volume' 190 >/dev/null 2>&1
amixer -c ${CODEC_CARD} cset name='Differential Mux' 1 >/dev/null 2>&1
if [[ -c /dev/mpp_service ]]; then if [[ -c /dev/mpp_service ]]; then
chmod 666 /dev/mpp_service chmod 666 /dev/mpp_service