-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amixer setting for ipc4 platforms (#1012)
* amixer_settings: adjust amixer settings for IPC4 platforms Signed-off-by: Keqiao Zhang <[email protected]> * lib.sh: switch to use reset_sof_volume funtion to adjust amixer settings for IPC4 nocodec platforms Signed-off-by: Keqiao Zhang <[email protected]> --------- Signed-off-by: Keqiao Zhang <[email protected]>
- Loading branch information
1 parent
ba2f6c5
commit 02aafc0
Showing
6 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set -e | ||
|
||
# enable headset playback | ||
amixer -c sofsoundwire cset name='Headphone Switch' on | ||
amixer -c sofsoundwire cset name='rt711 DAC Surr Playback Volume' 70 | ||
|
||
# enable headset capture | ||
amixer -c sofsoundwire cset name='Headset Mic Switch' on | ||
amixer -c sofsoundwire cset name='rt711 ADC 08 Capture Switch' on | ||
amixer -c sofsoundwire cset name='rt711 ADC 08 Capture Volume' 25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
set -e | ||
|
||
# enable playback | ||
# enable headset playback | ||
amixer -c sofsoundwire cset name='Headphone Switch' on | ||
amixer -c sofsoundwire cset name='rt711 FU05 Playback Volume' 60 | ||
amixer -c sofsoundwire cset name='gain.1.1 1 Playback Volume 0' 45 | ||
amixer -c sofsoundwire cset name='gain.2.1 2 Main Playback Volume' 45 | ||
amixer -c sofsoundwire cset name='gain.5.1 5 2nd Playback Volume' 45 | ||
|
||
# enable headset capture | ||
amixer -c sofsoundwire cset name='Headset Mic Switch' on | ||
amixer -c sofsoundwire cset name='rt711 ADC 08 Capture Switch' on | ||
amixer -c sofsoundwire cset name='rt711 ADC 08 Capture Volume' 25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set -e | ||
|
||
# enable headset playback | ||
amixer -c sofsoundwire cset name='Headphone Switch' on | ||
amixer -c sofsoundwire cset name='rt711 DAC Surr Playback Volume' 55 | ||
|
||
# enable headset capture | ||
amixer -c sofsoundwire cset name='Headset Mic Switch' on | ||
amixer -c sofsoundwire cset name='rt711 ADC 08 Capture Switch' on | ||
amixer -c sofsoundwire cset name='rt711 ADC 08 Capture Volume' 25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set -e | ||
|
||
# enable headset playback | ||
amixer -c sofhdadsp cset name='Master Playback Switch' on | ||
amixer -c sofhdadsp cset name='Master Playback Volume' 45 | ||
|
||
# enable headset capture | ||
amixer -c sofhdadsp cset name='Capture Switch' on | ||
amixer -c sofhdadsp cset name='Capture Volume' 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters