You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Audio playback Validation Script for Qualcomm Linuxbased platform (Yocto)
1
+
# Audio Playback Validation Script for Qualcomm Linux-based Platform (Yocto)
2
2
3
3
## Overview
4
4
5
-
This script automates the validation of audio playback capabilities on the Qualcomm Linuxbased platform running a Yocto-based Linux system. It utilizes pulseaudio test app to decode wav file.
5
+
This script automates the validation of audio playback capabilities on the Qualcomm Linux-based platform running a Yocto-based Linux system. It supports both PulseAudio and PipeWire backends for audio playback.
6
6
7
7
## Features
8
8
9
-
- Decoding PCM clip
10
-
- Compatible with Yocto-based root filesystem
9
+
- Plays a test audio clip using either `paplay` or `pw-play`
10
+
- Supports configurable playback volume, timeout, and loop count
11
+
- Automatically downloads and extracts audio clip if not present
12
+
- Captures kernel logs before and after playback
13
+
- Scans dmesg logs for audio-related errors
14
+
- Validates presence of required daemons and binaries
15
+
- Compatible with Yocto-based root filesystem
11
16
12
17
## Prerequisites
13
18
14
19
Ensure the following components are present in the target Yocto build:
-`pulseaudio` or `pipewire` daemon must be running depending on backend
17
24
18
25
## Directory Structure
19
26
20
27
```bash
21
28
Runner/
22
-
├──suites/
23
-
├ ├── Multimedia/
24
-
│ ├ ├── Audio/
25
-
│ ├ ├ ├── AudioPlayback/
26
-
│ ├ ├ ├ ├ └── run.sh
27
-
├ ├ ├ ├ ├ └── Read_me.md
29
+
├── run-test.sh
30
+
├── utils/
31
+
│ ├── functestlib.sh
32
+
│ └── libaudio.sh
33
+
└── suites/
34
+
└── Multimedia/
35
+
└── Audio/
36
+
├── AudioPlayback/
37
+
├── run.sh
38
+
└── Read_me.md
28
39
```
29
40
30
41
## Usage
31
42
32
-
33
-
Instructions
34
-
43
+
Instructions:
35
44
1. Copy repo to Target Device: Use scp to transfer the scripts from the host to the target device. The scripts should be copied to any directory on the target device.
36
-
37
-
2. Verify Transfer: Ensure that the repo have been successfully copied to any directory on the target device.
38
-
45
+
2. Verify Transfer: Ensure that the repo has been successfully copied to any directory on the target device.
39
46
3. Run Scripts: Navigate to the directory where these files are copied on the target device and execute the scripts as needed.
40
47
41
48
Run a specific test using:
@@ -46,33 +53,64 @@ git clone <this-repo>
46
53
cd <this-repo>
47
54
scp -r Runner user@target_device_ip:<Path in device>
48
55
ssh user@target_device_ip
49
-
cd <Path in device>/Runner && ./run-test.sh AudioPlayback
0 commit comments