|
| 1 | +# Verify audio privacy (hard mute) functionality during D3 state |
| 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: |
| 27 | + ```bash |
| 28 | + sudo rtcwake -m mem --seconds 30 |
| 29 | + ``` |
| 30 | +4. Turn ON the audio privacy switch. Led indicator should be turned ON. |
| 31 | +5. Exit D3 state, check on the file if audio was muted in D3 state |
| 32 | +6. Capture audio via 3.5mm jack ports: |
| 33 | + ```bash |
| 34 | + arecord -Dhw:0,0 -c 2 -r 48000 -f S16_LE /tmp/test_sample_unmute_during_d3.wav -vvv |
| 35 | + ``` |
| 36 | +7. Enter D3 state via command: |
| 37 | + ```bash |
| 38 | + sudo rtcwake -m mem --seconds 30 |
| 39 | + ``` |
| 40 | +8. Turn OFF the audio privacy switch. Led indicator should be turned OFF. |
| 41 | +9. Exit D3 state, check on the file if audio was unmuted in D3 state |
| 42 | +10. Check the dmesg log. |
| 43 | + |
| 44 | +## Expected Results |
| 45 | +1. No dmesg errors, jack device should be visible in system. |
| 46 | +2. Recording should start without problems. |
| 47 | +3. Device should enter D3 state. |
| 48 | +4. The MIC mute LED should glow. |
| 49 | +5. The microphone is completely disabled during D3 state, and no audio is captured or transmitted. |
| 50 | +6. Recording should start without problems. |
| 51 | +7. Device should enter D3 state. |
| 52 | +8. The MIC mute LED should turn OFF. |
| 53 | +9. The microphone is completely enabled during D3 state, resuming normal functionality, capturing and transmitting audio. |
| 54 | +10. No audio errors or failures should be present in the dmesg log. |
0 commit comments