Skip to content

Commit 0ebd898

Browse files
committed
Manual Test case - check-audio-privacy-during-D3
Added manual test case veryfing mic privacy functionality during D3 state on linux platforms. Signed-off-by: Patryk Kuniecki <patryk.kuniecki@intel.com>
1 parent 20a47bc commit 0ebd898

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Verify audio privacy (hard mute) functionality during D3
2+
Verify audio privacy (hard mute) functionality in Linux in D3 state
3+
4+
## Preconditions
5+
1. The RVP should have active audio endpoints.
6+
2. The RVP should have a functional hard mute switch or toggle.
7+
3. Enable BIOS settings:
8+
* Microphone Privacy Mode = "HW managed Microphone Privacy"
9+
* Enable corresponding codec options, e.g., SNDW#3 [x] for SoundWire.
10+
* Enable DMIC option, e.g., DMIC [x] for DMIC
11+
4. Make sure UCM is up to date
12+
* Copy the ucm and ucm2 trees to the alsa-lib configuration directory (usually located in /usr/share/alsa) including symlinks
13+
* Reference: https://github.com/alsa-project/alsa-ucm-conf/
14+
15+
## Test Description
16+
* Verification of audio privacy (hard mute) functionality during suspension in d3 state in linux system.
17+
* Should not capture audio samples when the audio privacy switch is turned ON during d3 state.
18+
* Should capture audio samples when the audio privacy switch is turned OFF during d3 state.
19+
20+
## Steps to Execute
21+
1. System is booted in the OS
22+
2. Capture audio via 3.5mm jack ports:
23+
```bash
24+
arecord -Dhw:0,0 -c 2 -r 48000 -f S16_LE /tmp/test_sample_mute_during_d3.wav -vvv
25+
```
26+
3. Enter D3 state via command: sudo rtcwake -m mem -s "${sleep_lst[$i]}"
27+
4. Turn ON the audio privacy switch. Led indicator should be turned ON.
28+
5. Exit D3 state, check on the file if audio was muted in D3 state
29+
6. Capture audio via 3.5mm jack ports:
30+
```bash
31+
arecord -Dhw:0,0 -c 2 -r 48000 -f S16_LE /tmp/test_sample_unmute_during_d3.wav -vvv
32+
```
33+
7. Enter D3 state via command: sudo rtcwake -m mem -s "${sleep_lst[$i]}"
34+
8. Turn OFF the audio privacy switch. Led indicator should be turned OFF.
35+
9. Exit D3 state, check on the file if audio was unmuted in D3 state
36+
10. Check the dmesg log.
37+
38+
## Expected Results
39+
1. No dmesg errors, jack device should be visible in system.
40+
2. Recording should start without problems.
41+
3. System should enter D3 state.
42+
4. The MIC mute LED should glow.
43+
5. The microphone is completely disabled during D3 state, and no audio is captured or transmitted.
44+
6. Recording should start without problems.
45+
7. System should enter D3 state.
46+
8. The MIC mute LED should turn OFF.
47+
9. The microphone is completely enabled during D3 state, resuming normal functionality, capturing and transmitting audio.
48+
10. No audio errors or failures should be present in the dmesg log.

0 commit comments

Comments
 (0)