-
Notifications
You must be signed in to change notification settings - Fork 59
[SKIP SOF-TEST] Manual Test case - check-audio-privacy-during-D3 #1276
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
Open
pkunieck
wants to merge
1
commit into
thesofproject:main
Choose a base branch
from
pkunieck:add_manual_test_case_mic_privacy_D3
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
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,53 @@ | ||
| # Verify audio privacy (hard mute) functionality during DSP D3 state | ||
| Verify audio privacy (hard mute) functionality when DSP is in D3 state | ||
|
|
||
| ## Preconditions | ||
| 1. The RVP must have active audio endpoints. | ||
| 2. The RVP must have a functional hard mute switch or toggle. | ||
| 3. Enable BIOS settings: | ||
| * Microphone Privacy Mode = "HW managed Microphone Privacy" | ||
| * Enable corresponding codec options, e.g., SNDW#3 [x] for SoundWire. | ||
| * Enable DMIC option, e.g., DMIC [x] for DMIC | ||
pkunieck marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 4. Make sure UCM is up to date | ||
| * Copy the ucm and ucm2 trees to the alsa-lib configuration directory (usually located in /usr/share/alsa) including symlinks | ||
| * Reference: https://github.com/alsa-project/alsa-ucm-conf/ | ||
|
|
||
| ## Test Description | ||
| * Verification of audio privacy (hard mute) functionality during DSP D3 state (suspended) in linux system. | ||
| * Must not capture audio samples when the audio privacy switch is turned ON when DSP was in D3 state. | ||
| * Must capture audio samples when the audio privacy switch is turned OFF when DSP was in D3 state. | ||
|
|
||
| ## Steps to Execute | ||
| 1. System is booted in the OS | ||
| 2. Run command in second terminal to monitor changes of DSP state via command: | ||
| ```bash | ||
| ./sof-test/tools/sof-dump-status.py --dsp_status 0 | ||
| ``` | ||
| By default DSP is "suspended" and after interrupt (play or record new wav file, DSP wakes up and is in "active" state) | ||
| 3. Make sure that DSP is "suspended", then turn ON the audio privacy switch. Led indicator must be turned ON. | ||
| 4. Capture audio via 3.5mm jack ports: | ||
| ```bash | ||
| arecord -Ddefault -c 2 -r 48000 -f S16_LE /tmp/test_sample_mute_during_d3.wav -vvv | ||
| ``` | ||
| 5. Check if DSP was in "active" state during recording, then check on the file if audio was muted in any application to verify sound (for example Audacity). | ||
| 6. Make sure that DSP is in "suspended" state, then turn OFF the audio privacy switch. Led indicator must be turned OFF. | ||
| 7. Capture audio via 3.5mm jack ports: | ||
| ```bash | ||
| arecord -Ddefault -c 2 -r 48000 -f S16_LE /tmp/test_sample_unmute_during_d3.wav -vvv | ||
| ``` | ||
| 8. Check if DSP was in "active" state during recording, then check on the file if audio was not muted in any application to verify sound (for example Audacity). | ||
| 9. Check for errors: | ||
| ```bash | ||
| journalctl -b -p 4. | ||
| ``` | ||
| ## Expected Results | ||
| 1. No errors in `journalctl -b -p 4`, jack device must be visible in system. | ||
| 2. DSP must be in "suspended" state. | ||
| 3. Recording must start without problems. | ||
| 4. The MIC mute LED must glow. | ||
| 5. During recording DSP must be in "active" state, after recording, audio must be muted. | ||
| 6. DSP must be in "suspended" state. | ||
| 7. The MIC mute LED must turn OFF. | ||
| 8. Recording must start without problems. | ||
| 9. During recording DSP must be in "active" state, after recording, audio must be unmuted | ||
| 10. No audio errors or failures must be present in the 'journalctl -b -p 4'. | ||
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.
Uh oh!
There was an error while loading. Please reload this page.