-
Notifications
You must be signed in to change notification settings - Fork 59
alsa_settings: add alsa settings for IPC4 platforms #992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,8 @@ | ||
| set -e | ||
|
|
||
| # enable playback | ||
| amixer -c sofsoundwire cset name='Headphone Switch' on | ||
| amixer -c sofsoundwire cset name='gain.0.1 1 Playback Volume 0' 45 | ||
| amixer -c sofsoundwire cset name='gain.15.1 Deepbuffer Volume' 45 | ||
| amixer -c sofsoundwire cset name='gain.1.1 2 Main Playback Volume' 45 | ||
| amixer -c sofsoundwire cset name='rt711 DAC Surr Playback Volume' 80 |
This file contains hidden or 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,15 @@ | ||
| set -e | ||
|
|
||
| # SSP playback | ||
| amixer -c sofnocodec cset name='gain.1.1 Playback Volume 1' 45 | ||
| amixer -c sofnocodec cset name='gain.15.1 Deepbuffer Volume' 45 | ||
| amixer -c sofnocodec cset name='gain.2.1 Main Playback Volume 2' 45 | ||
| amixer -c sofnocodec cset name='gain.3.1 Playback Volume 3' 45 | ||
| amixer -c sofnocodec cset name='gain.4.1 Main Playback Volume 4' 45 | ||
| amixer -c sofnocodec cset name='gain.5.1 Playback Volume 5' 45 | ||
| amixer -c sofnocodec cset name='gain.6.1 Main Playback Volume 6' 45 | ||
|
|
||
| # SSP capture | ||
| amixer -c sofnocodec cset name='gain.17.1 Main Capture Volume 2' 45 | ||
| amixer -c sofnocodec cset name='gain.7.1 Main Capture Volume 1' 45 | ||
| amixer -c sofnocodec cset name='gain.8.1 Host Capture Volume' 45 | ||
This file contains hidden or 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,8 @@ | ||
| set -e | ||
|
|
||
| # enable playback | ||
| amixer -c sofsoundwire cset name='Headphone Switch' on | ||
| amixer -c sofsoundwire cset name='gain.1.1 1 Playback Volume 0' 45 | ||
| amixer -c sofsoundwire cset name='gain.15.1 Deepbuffer Volume' 45 | ||
| amixer -c sofsoundwire cset name='gain.2.1 2 Main Playback Volume' 45 | ||
| amixer -c sofsoundwire cset name='rt711 DAC Surr Playback Volume' 55 |
This file contains hidden or 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,8 @@ | ||
| set -e | ||
|
|
||
| # enable headset playback | ||
| amixer -c sofhdadsp cset name='Master Playback Switch' on | ||
| amixer -c sofhdadsp cset name='Master Playback Volume' 45 | ||
| amixer -c sofhdadsp cset name='gain.1.1 1 2nd Playback Volume' 45 | ||
| amixer -c sofhdadsp cset name='gain.15.1 Deepbuffer Volume' 45 | ||
| amixer -c sofhdadsp cset name='gain.2.1 2 Main Playback Volume' 45 |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remind me why we should care about the volume settings in the firmware? This should be 0dB by default, always. the way this is implemented will break for every topology change or rename of controls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the default volume should be 0dB, but we cannot ensure that these volumes will not be modified before testing alsabat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@keqiaozhang you mean because other tests may change them? Why?
I've seen a large number of discussions about ALSA settings and UCM for a few years now and I still don't know how the "ideal state" should look like. Exceptions and quirks are sometimes necessary but I still can't tell what is a quirk versus what is a Good Thing. Is this already documented somewhere or would a new https://github.com/thesofproject/sof-test/discussions help?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then use a script to find all gain/PGA for the firmware using regexps and reset the value separately from codec stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we merge this PR first? I will try your suggestion next. It's not only related to volume, but also related to switch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@keqiaozhang is this what you're trying to do in #1010?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm working on it.