From dcb8561458b1ebf4a8ac2cfe99f6cde650f88005 Mon Sep 17 00:00:00 2001 From: leeboby Date: Tue, 30 Mar 2021 19:12:24 +0800 Subject: [PATCH] Rename asound.state.sun50iw2-dev to asound.state.sun50iw2-current --- .../config/sources/families/sun50iw2.conf | 2 +- .../config/sources/families/sun50iw6.conf | 2 +- ...0iw2-dev => asound.state.sun50iw2-current} | 106 +++++++++++------- 3 files changed, 70 insertions(+), 40 deletions(-) rename external/packages/blobs/asound.state/{asound.state.sun50iw2-dev => asound.state.sun50iw2-current} (84%) diff --git a/external/config/sources/families/sun50iw2.conf b/external/config/sources/families/sun50iw2.conf index e786344..accc2be 100644 --- a/external/config/sources/families/sun50iw2.conf +++ b/external/config/sources/families/sun50iw2.conf @@ -4,7 +4,7 @@ OVERLAY_PREFIX='sun50i-h5' [[ -z $CPUMIN ]] && CPUMIN=480000 [[ -z $CPUMAX ]] && CPUMAX=1368000 GOVERNOR=ondemand -ASOUND_STATE='asound.state.sun50iw2-dev' +ASOUND_STATE='asound.state.sun50iw2-current' case $BRANCH in legacy) diff --git a/external/config/sources/families/sun50iw6.conf b/external/config/sources/families/sun50iw6.conf index 96913ba..01bea62 100644 --- a/external/config/sources/families/sun50iw6.conf +++ b/external/config/sources/families/sun50iw6.conf @@ -4,7 +4,7 @@ OVERLAY_PREFIX='sun50i-h6' [[ -z $CPUMIN ]] && CPUMIN=480000 [[ -z $CPUMAX ]] && CPUMAX=1810000 GOVERNOR=ondemand -ASOUND_STATE='asound.state.sun50iw2-dev' +ASOUND_STATE='asound.state.sun50iw2-current' case $BRANCH in legacy) diff --git a/external/packages/blobs/asound.state/asound.state.sun50iw2-dev b/external/packages/blobs/asound.state/asound.state.sun50iw2-current similarity index 84% rename from external/packages/blobs/asound.state/asound.state.sun50iw2-dev rename to external/packages/blobs/asound.state/asound.state.sun50iw2-current index ae971e6..dc3b792 100644 --- a/external/packages/blobs/asound.state/asound.state.sun50iw2-dev +++ b/external/packages/blobs/asound.state/asound.state.sun50iw2-current @@ -14,31 +14,6 @@ state.Codec { } } control.2 { - iface MIXER - name 'Line Out Playback Volume' - value 26 - comment { - access 'read write' - type INTEGER - count 1 - range '0 - 31' - dbmin -9999999 - dbmax 0 - dbvalue.0 -750 - } - } - control.3 { - iface MIXER - name 'Line Out Playback Switch' - value.0 true - value.1 true - comment { - access 'read write' - type BOOLEAN - count 2 - } - } - control.4 { iface MIXER name 'Line In Playback Volume' value 3 @@ -52,21 +27,32 @@ state.Codec { dbvalue.0 0 } } - control.5 { + control.3 { iface MIXER - name 'Mic1 Playback Volume' - value 3 + name 'Line Out Playback Volume' + value 26 comment { access 'read write' type INTEGER count 1 - range '0 - 7' - dbmin -450 - dbmax 600 - dbvalue.0 0 + range '0 - 31' + dbmin -9999999 + dbmax 0 + dbvalue.0 -750 } } - control.6 { + control.4 { + iface MIXER + name 'Line Out Playback Switch' + value.0 true + value.1 true + comment { + access 'read write' + type BOOLEAN + count 2 + } + } + control.5 { iface MIXER name 'Mic2 Playback Volume' value 3 @@ -80,9 +66,9 @@ state.Codec { dbvalue.0 0 } } - control.7 { + control.6 { iface MIXER - name 'Mic1 Boost Volume' + name 'Mic2 Boost Volume' value 4 comment { access 'read write' @@ -94,9 +80,23 @@ state.Codec { dbvalue.0 3300 } } + control.7 { + iface MIXER + name 'Mic1 Playback Volume' + value 3 + comment { + access 'read write' + type INTEGER + count 1 + range '0 - 7' + dbmin -450 + dbmax 600 + dbvalue.0 0 + } + } control.8 { iface MIXER - name 'Mic2 Boost Volume' + name 'Mic1 Boost Volume' value 4 comment { access 'read write' @@ -213,8 +213,8 @@ state.Codec { control.18 { iface MIXER name 'Mic1 Capture Switch' - value.0 false - value.1 false + value.0 true + value.1 true comment { access 'read write' type BOOLEAN @@ -246,3 +246,33 @@ state.Codec { } } } +state.allwinnerhdmi { + 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 + } + } +}