Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions alsa_settings/LNLM_RVP_HDA.sh

This file was deleted.

36 changes: 36 additions & 0 deletions alsa_settings/LNLM_RVP_HDA.state
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
state.sofhdadsp {
control.1 {
iface MIXER
name 'Headphone Playback Volume'
value.0 60
value.1 60
}
control.2 {
iface MIXER
name 'Headphone Playback Switch'
value.0 true
value.1 true
}
control.6 {
iface MIXER
name 'Capture Volume'
value.0 30
value.1 30
}
control.7 {
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
}
control.9 {
iface MIXER
name 'Master Playback Volume'
value 87
}
control.10 {
iface MIXER
name 'Master Playback Switch'
value true
}
}
16 changes: 0 additions & 16 deletions alsa_settings/LNLM_SDW_AIOC.sh

This file was deleted.

49 changes: 49 additions & 0 deletions alsa_settings/LNLM_SDW_AIOC.state
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
state.sofsoundwire {
control.1 {
iface MIXER
name 'rt711 FU05 Playback Volume'
value.0 80
value.1 80
}
control.2 {
iface MIXER
name 'rt711 FU1E Capture Switch'
value.0 true
value.1 true
}
control.3 {
iface MIXER
name 'rt711 FU0F Capture Switch'
value.0 true
value.1 true
}
control.4 {
iface MIXER
name 'rt711 FU1E Capture Volume'
value.0 25
value.1 25
}
control.5 {
iface MIXER
name 'rt711 FU0F Capture Volume'
value.0 25
value.1 25
}
control.8 {
iface MIXER
name 'rt711 GE49 Selected Mode'
value Headset
# override jack detection mode to headset
# related to https://github.com/thesofproject/linux/pull/4969
}
control.35 {
iface MIXER
name 'Headphone Switch'
value true
}
control.36 {
iface MIXER
name 'Headset Mic Switch'
value true
}
}
11 changes: 0 additions & 11 deletions alsa_settings/MTLP_RVP_HDA.sh

This file was deleted.

36 changes: 36 additions & 0 deletions alsa_settings/MTLP_RVP_HDA.state
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
state.sofhdadsp {
control.1 {
iface MIXER
name 'Headphone Playback Volume'
value.0 60
value.1 60
}
control.2 {
iface MIXER
name 'Headphone Playback Switch'
value.0 true
value.1 true
}
control.6 {
iface MIXER
name 'Capture Volume'
value.0 30
value.1 30
}
control.7 {
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
}
control.9 {
iface MIXER
name 'Master Playback Volume'
value 87
}
control.10 {
iface MIXER
name 'Master Playback Switch'
value true
}
}
17 changes: 0 additions & 17 deletions alsa_settings/MTLP_RVP_SDW.sh

This file was deleted.

35 changes: 35 additions & 0 deletions alsa_settings/MTLP_RVP_SDW.state
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
state.sofsoundwire {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File MTLP_RVP_SDW.sh contain comment's why we set something, we should keep them

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, the ALSA state file format has no custom comments, although alsactl seems to ignore them, if added carefully.
I think better to avoid parsing issues and just rely on the git log history to track changes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case, comments should be move to README file to preserve info why specific config was set

Copy link
Member Author

@golowanow golowanow Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case, comments should be move to README file to preserve info why specific config was set

in README it will be quickly out of sync .. let's try to add it to the .state file directly

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good git log is important but it should be focused and explaining why things CHANGED. It should ideally not be required to explain why things ARE the way they are.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, git log should focus on explaining why something was changed. But there are cases where leaving comment in code is also important, for changes that could rise questions in future, or like here proposing whole new approach, comment in file can be quicker to find and understand than digging in git history.

control.1 {
iface MIXER
name 'rt711 FU05 Playback Volume'
value.0 80
value.1 80
}
control.3 {
iface MIXER
name 'rt711 FU0F Capture Switch'
value.0 true
value.1 true
}
control.5 {
iface MIXER
name 'rt711 FU0F Capture Volume'
value.0 26
value.1 26
}
control.8 {
iface MIXER
name 'rt711 GE49 Selected Mode'
value Headset
}
control.9 {
iface MIXER
name 'Headphone Switch'
value true
}
control.10 {
iface MIXER
name 'Headset Mic Switch'
value true
}
}
1 change: 0 additions & 1 deletion alsa_settings/MTLP_SDW_AIOC.sh

This file was deleted.

40 changes: 40 additions & 0 deletions alsa_settings/MTLP_SDW_AIOC.state
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
state.sofsoundwire {
control.1 {
iface MIXER
name 'rt711 FU05 Playback Volume'
value.0 80
value.1 80
}
control.3 {
iface MIXER
name 'rt711 FU0F Capture Switch'
value.0 true
value.1 true
}
control.5 {
iface MIXER
name 'rt711 FU0F Capture Volume'
value.0 30
value.1 30
}
control.8 {
iface MIXER
name 'rt711 GE49 Selected Mode'
value Headset
# override jack detection mode to headset
# related to https://github.com/thesofproject/linux/pull/4969
}
control.36 {
iface MIXER
name 'Headset Mic Switch'
value true
}
}
state.CODEC {
control.4 {
iface MIXER
name 'PCM Playback Volume'
value.0 120
value.1 120
}
}
12 changes: 0 additions & 12 deletions alsa_settings/PTLH_HDA_AIOC.sh

This file was deleted.

36 changes: 36 additions & 0 deletions alsa_settings/PTLH_HDA_AIOC.state
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
state.sofhdadsp {
control.1 {
iface MIXER
name 'Headphone Playback Volume'
value.0 60
value.1 60
}
control.2 {
iface MIXER
name 'Headphone Playback Switch'
value.0 true
value.1 true
}
control.6 {
iface MIXER
name 'Capture Volume'
value.0 30
value.1 30
}
control.7 {
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
}
control.9 {
iface MIXER
name 'Master Playback Volume'
value 87
}
control.10 {
iface MIXER
name 'Master Playback Switch'
value true
}
}
10 changes: 0 additions & 10 deletions alsa_settings/PTLH_SDW_RT712.sh

This file was deleted.

36 changes: 36 additions & 0 deletions alsa_settings/PTLH_SDW_RT712.state
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
state.sofsoundwire {
control.1 {
iface MIXER
name 'rt712 FU06 Playback Volume'
value.0 60
value.1 60
}
control.2 {
iface MIXER
name 'rt712 FU05 Playback Volume'
value.0 60
value.1 60
}
control.3 {
iface MIXER
name 'rt712 FU0F Capture Switch'
value.0 true
value.1 true
}
control.4 {
iface MIXER
name 'rt712 FU0F Capture Volume'
value.0 46
value.1 46
}
control.14 {
iface MIXER
name 'Headphone Switch'
value true
}
control.15 {
iface MIXER
name 'Headset Mic Switch'
value true
}
}
16 changes: 0 additions & 16 deletions alsa_settings/PTLP_RVP_SDW.sh

This file was deleted.

Loading