Skip to content

Commit 509df34

Browse files
committed
alsactl: Implementation for LNL, MTL, PTL
set_alsa_settings function now shall use the alsactl restore command, which allows for ALSA control restoration based on a configuration file, rather than a bash script. New .state files are equivalent to the old .sh files. Incorporates LNL, MTL and PTL families, save for the nocodecs. Previously-used switch-case statement checks whether a relevant .state file exists, based on the $MODEL variable and uses it if it exists. If not, it uses the previous method as a fallback. Before the aforementioned switch-case, alsactl init is called, so that a common starting point, specific for each machine is achieved. Automatically generated comments inside of the .state files removed for readability. Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
1 parent 20a47bc commit 509df34

18 files changed

Lines changed: 336 additions & 96 deletions

alsa_settings/LNLM_RVP_HDA.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

alsa_settings/LNLM_SDW_AIOC.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

alsa_settings/MTLP_RVP_HDA.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

alsa_settings/MTLP_RVP_SDW.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

alsa_settings/MTLP_SDW_AIOC.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

alsa_settings/PTLH_HDA_AIOC.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

alsa_settings/PTLH_SDW_RT712.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

alsa_settings/PTLP_RVP_SDW.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
state.sofhdadsp {
2+
control.1 {
3+
iface MIXER
4+
name 'Headphone Playback Volume'
5+
value.0 60
6+
value.1 60
7+
}
8+
control.2 {
9+
iface MIXER
10+
name 'Headphone Playback Switch'
11+
value.0 true
12+
value.1 true
13+
}
14+
control.6 {
15+
iface MIXER
16+
name 'Capture Volume'
17+
value.0 30
18+
value.1 30
19+
}
20+
control.7 {
21+
iface MIXER
22+
name 'Capture Switch'
23+
value.0 true
24+
value.1 true
25+
}
26+
control.9 {
27+
iface MIXER
28+
name 'Master Playback Volume'
29+
value 87
30+
}
31+
control.10 {
32+
iface MIXER
33+
name 'Master Playback Switch'
34+
value true
35+
}
36+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
state.sofsoundwire {
2+
control.1 {
3+
iface MIXER
4+
name 'rt711 FU05 Playback Volume'
5+
value.0 80
6+
value.1 80
7+
}
8+
control.2 {
9+
iface MIXER
10+
name 'rt711 FU1E Capture Switch'
11+
value.0 true
12+
value.1 true
13+
}
14+
control.3 {
15+
iface MIXER
16+
name 'rt711 FU0F Capture Switch'
17+
value.0 true
18+
value.1 true
19+
}
20+
control.4 {
21+
iface MIXER
22+
name 'rt711 FU1E Capture Volume'
23+
value.0 30
24+
value.1 30
25+
}
26+
control.5 {
27+
iface MIXER
28+
name 'rt711 FU0F Capture Volume'
29+
value.0 30
30+
value.1 30
31+
}
32+
control.8 {
33+
iface MIXER
34+
name 'rt711 GE49 Selected Mode'
35+
value Headset
36+
}
37+
control.35 {
38+
iface MIXER
39+
name 'Headphone Switch'
40+
value true
41+
}
42+
control.36 {
43+
iface MIXER
44+
name 'Headset Mic Switch'
45+
value true
46+
}
47+
}

0 commit comments

Comments
 (0)