Merge ~eugene2021/checkbox-support:pulseaudio into checkbox-support:master

Proposed by Yujin.Wu
Status: Merged
Merged at revision: b4b9982b0c4a7c8f35c690972f0138a53324df62
Proposed branch: ~eugene2021/checkbox-support:pulseaudio
Merge into: checkbox-support:master
Diff against target: 1205 lines (+1121/-0)
5 files modified
checkbox_support/parsers/pactl.py (+14/-0)
checkbox_support/parsers/tests/pactl_data/cards-desktop-jammy-p16gen1.txt (+112/-0)
checkbox_support/parsers/tests/pactl_data/desktop-jammy-p16gen1.txt (+901/-0)
checkbox_support/parsers/tests/pactl_data/sinks-desktop-jammy-p16gen1.txt (+52/-0)
checkbox_support/parsers/tests/test_pactl.py (+42/-0)
Reviewer Review Type Date Requested Status
Scott Hu Approve
Sylvain Pineau (community) Approve
Clair Lin Pending
Checkbox Developers Pending
Review via email: mp+429360@code.launchpad.net

Commit message

Add: Support of new port properties output of pulsaudio 15.99.1

Fix: lp:1974150

Description of the change

The pulseaudio in jammy is 15.99 now, and it introduced some new port properties in the output of "pactl list". One is the "type" and the other one is "availability unknown", which looks like this: analog-input-internal-mic: Internal Microphone (type: Mic, priority: 8900, availability unknown). This will make the pactl.py fail when do some audio test in checkbox.

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

That's an impressive work, thanks a lot. Digging into this crazy pyparsing code is not easy.
Parsing pactl output is of course not recommended but there was no better way when we wrote that script and indeed it requires such update for every major release of Ubuntu or PA.
Let's hope pipewire will be easier to handle from a test point of view.

Thanks for the tests and data from your p16 gen!

review: Approve
Revision history for this message
Yujin.Wu (eugene2021) wrote :

@Sylvain, Thanks for the review. Already merged to master. It's not easy to parsing such a complex output, learn a lot from the code. Thanks!

Revision history for this message
Kent Lin (kent-jclin) wrote :

@Scott @Clair,

I checked the code, it seems there are some codes specific to the Lenovo system. Could you please help check if it works on Dell and HP system?

Revision history for this message
Clair Lin (clairlin) wrote :

HP didn't have soundwire audio system.

Run on legacy audio without problem.
Result:https://certification.canonical.com/hardware/202112-29751/submission/279633/

Revision history for this message
Scott Hu (huntu207) (last edit ):
Revision history for this message
Scott Hu (huntu207) wrote :

It works on Dell systems with original bug normally.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/checkbox_support/parsers/pactl.py b/checkbox_support/parsers/pactl.py
index 6c79430..199337c 100644
--- a/checkbox_support/parsers/pactl.py
+++ b/checkbox_support/parsers/pactl.py
@@ -234,6 +234,12 @@ class Port(Node):
234 p.Regex('[^ (\n]+'), ' ', combine=True234 p.Regex('[^ (\n]+'), ' ', combine=True
235 ).setResultsName('port-label')235 ).setResultsName('port-label')
236 + p.Suppress('(')236 + p.Suppress('(')
237 + p.Optional(
238 p.Keyword('type').suppress()
239 + p.Suppress(':')
240 + p.Word(p.alphanums).suppress()
241 + p.Suppress(',')
242 )
237 + p.Keyword('priority').suppress()243 + p.Keyword('priority').suppress()
238 + p.Suppress(':')244 + p.Suppress(':')
239 + p.Word(p.nums).setParseAction(245 + p.Word(p.nums).setParseAction(
@@ -242,6 +248,7 @@ class Port(Node):
242 + p.MatchFirst([248 + p.MatchFirst([
243 p.Suppress(',') + p.Literal('not available'),249 p.Suppress(',') + p.Literal('not available'),
244 p.Suppress(',') + p.Literal('available'),250 p.Suppress(',') + p.Literal('available'),
251 p.Suppress(',') + p.Literal('availability unknown'),
245 p.Empty().setParseAction(lambda t: '')252 p.Empty().setParseAction(lambda t: '')
246 ]).setResultsName('port-availability')253 ]).setResultsName('port-availability')
247 + p.Suppress(')')254 + p.Suppress(')')
@@ -306,6 +313,12 @@ class PortWithProfile(Node):
306 ' '313 ' '
307 ).setResultsName('port-label')314 ).setResultsName('port-label')
308 + p.Suppress('(')315 + p.Suppress('(')
316 + p.Optional(
317 p.Keyword('type').suppress()
318 + p.Suppress(':')
319 + p.Word(p.alphanums).suppress()
320 + p.Suppress(',')
321 )
309 + p.Keyword('priority').suppress()322 + p.Keyword('priority').suppress()
310 + p.Optional(323 + p.Optional(
311 p.Suppress(':')324 p.Suppress(':')
@@ -325,6 +338,7 @@ class PortWithProfile(Node):
325 p.MatchFirst([338 p.MatchFirst([
326 p.Suppress(',') + p.Literal('not available'),339 p.Suppress(',') + p.Literal('not available'),
327 p.Suppress(',') + p.Literal('available'),340 p.Suppress(',') + p.Literal('available'),
341 p.Suppress(',') + p.Literal('availability unknown'),
328 p.Empty().setParseAction(lambda t: '')342 p.Empty().setParseAction(lambda t: '')
329 ]).setResultsName('port-availability')343 ]).setResultsName('port-availability')
330 )344 )
diff --git a/checkbox_support/parsers/tests/pactl_data/cards-desktop-jammy-p16gen1.txt b/checkbox_support/parsers/tests/pactl_data/cards-desktop-jammy-p16gen1.txt
331new file mode 100644345new file mode 100644
index 0000000..6460199
--- /dev/null
+++ b/checkbox_support/parsers/tests/pactl_data/cards-desktop-jammy-p16gen1.txt
@@ -0,0 +1,112 @@
1Card #0
2 Name: alsa_card.pci-0000_01_00.1
3 Driver: module-alsa-card.c
4 Owner Module: 22
5 Properties:
6 alsa.card = "0"
7 alsa.card_name = "HDA NVidia"
8 alsa.long_card_name = "HDA NVidia at 0xbe000000 irq 17"
9 alsa.driver_name = "snd_hda_intel"
10 device.bus_path = "pci-0000:01:00.1"
11 sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0"
12 device.bus = "pci"
13 device.vendor.id = "10de"
14 device.vendor.name = "NVIDIA Corporation"
15 device.product.id = "228b"
16 device.product.name = "GA104 High Definition Audio Controller"
17 device.string = "0"
18 device.description = "GA104 High Definition Audio Controller"
19 module-udev-detect.discovered = "1"
20 device.icon_name = "audio-card-pci"
21 Profiles:
22 output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: no)
23 output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
24 output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
25 output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
26 output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
27 output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
28 output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
29 output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
30 output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
31 output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5700, available: no)
32 output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
33 output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
34 output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (sinks: 1, sources: 0, priority: 5700, available: no)
35 output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
36 output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
37 output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (sinks: 1, sources: 0, priority: 5700, available: no)
38 output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (sinks: 1, sources: 0, priority: 600, available: no)
39 output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (sinks: 1, sources: 0, priority: 600, available: no)
40 output:hdmi-stereo-extra6: Digital Stereo (HDMI 7) Output (sinks: 1, sources: 0, priority: 5700, available: no)
41 output:hdmi-surround-extra6: Digital Surround 5.1 (HDMI 7) Output (sinks: 1, sources: 0, priority: 600, available: no)
42 output:hdmi-surround71-extra6: Digital Surround 7.1 (HDMI 7) Output (sinks: 1, sources: 0, priority: 600, available: no)
43 off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
44 Active Profile: off
45 Ports:
46 hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, not available)
47 Properties:
48 device.icon_name = "video-display"
49 Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
50 hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, not available)
51 Properties:
52 device.icon_name = "video-display"
53 Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
54 hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, not available)
55 Properties:
56 device.icon_name = "video-display"
57 Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
58 hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, not available)
59 Properties:
60 device.icon_name = "video-display"
61 Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3
62 hdmi-output-4: HDMI / DisplayPort 5 (type: HDMI, priority: 5500, latency offset: 0 usec, not available)
63 Properties:
64 device.icon_name = "video-display"
65 Part of profile(s): output:hdmi-stereo-extra4, output:hdmi-surround-extra4, output:hdmi-surround71-extra4
66 hdmi-output-5: HDMI / DisplayPort 6 (type: HDMI, priority: 5400, latency offset: 0 usec, not available)
67 Properties:
68 device.icon_name = "video-display"
69 Part of profile(s): output:hdmi-stereo-extra5, output:hdmi-surround-extra5, output:hdmi-surround71-extra5
70 hdmi-output-6: HDMI / DisplayPort 7 (type: HDMI, priority: 5300, latency offset: 0 usec, not available)
71 Properties:
72 device.icon_name = "video-display"
73 Part of profile(s): output:hdmi-stereo-extra6, output:hdmi-surround-extra6, output:hdmi-surround71-extra6
74
75Card #1
76 Name: alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic
77 Driver: module-alsa-card.c
78 Owner Module: 23
79 Properties:
80 alsa.card = "1"
81 alsa.card_name = "sof-hda-dsp"
82 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
83 alsa.driver_name = "snd_soc_skl_hda_dsp"
84 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
85 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
86 device.bus = "pci"
87 device.vendor.id = "8086"
88 device.vendor.name = "Intel Corporation"
89 device.product.id = "7ad0"
90 device.string = "1"
91 device.description = "sof-hda-dsp"
92 module-udev-detect.discovered = "1"
93 device.icon_name = "audio-card-pci"
94 Profiles:
95 HiFi: Play HiFi quality Music (sinks: 4, sources: 2, priority: 40768, available: yes)
96 off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
97 Active Profile: HiFi
98 Ports:
99 [Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, latency offset: 0 usec, not available)
100 Part of profile(s): HiFi
101 [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, latency offset: 0 usec, not available)
102 Part of profile(s): HiFi
103 [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, latency offset: 0 usec, not available)
104 Part of profile(s): HiFi
105 [Out] Speaker: Speaker (type: Speaker, priority: 100, latency offset: 0 usec, availability unknown)
106 Part of profile(s): HiFi
107 [Out] Headphones: Headphones (type: Headphones, priority: 200, latency offset: 0 usec, not available)
108 Part of profile(s): HiFi
109 [In] Mic2: Headphones Stereo Microphone (type: Mic, priority: 200, latency offset: 0 usec, not available)
110 Part of profile(s): HiFi
111 [In] Mic1: Digital Microphone (type: Mic, priority: 100, latency offset: 0 usec, availability unknown)
112 Part of profile(s): HiFi
0\ No newline at end of file113\ No newline at end of file
diff --git a/checkbox_support/parsers/tests/pactl_data/desktop-jammy-p16gen1.txt b/checkbox_support/parsers/tests/pactl_data/desktop-jammy-p16gen1.txt
1new file mode 100644114new file mode 100644
index 0000000..8acce02
--- /dev/null
+++ b/checkbox_support/parsers/tests/pactl_data/desktop-jammy-p16gen1.txt
@@ -0,0 +1,901 @@
1Module #0
2 Name: module-device-restore
3 Argument:
4 Usage counter: n/a
5 Properties:
6 module.author = "Lennart Poettering"
7 module.description = "Automatically restore the volume/mute state of devices"
8 module.version = "15.99.1"
9
10Module #1
11 Name: module-stream-restore
12 Argument:
13 Usage counter: n/a
14 Properties:
15 module.author = "Lennart Poettering"
16 module.description = "Automatically restore the volume/mute/device state of streams"
17 module.version = "15.99.1"
18
19Module #2
20 Name: module-card-restore
21 Argument:
22 Usage counter: n/a
23 Properties:
24 module.author = "Lennart Poettering"
25 module.description = "Automatically restore profile of cards"
26 module.version = "15.99.1"
27
28Module #3
29 Name: module-augment-properties
30 Argument:
31 Usage counter: n/a
32 Properties:
33 module.author = "Lennart Poettering"
34 module.description = "Augment the property sets of streams with additional static information"
35 module.version = "15.99.1"
36
37Module #4
38 Name: module-switch-on-port-available
39 Argument:
40 Usage counter: n/a
41 Properties:
42 module.author = "David Henningsson"
43 module.description = "Switches ports and profiles when devices are plugged/unplugged"
44 module.version = "15.99.1"
45
46Module #5
47 Name: module-switch-on-connect
48 Argument:
49 Usage counter: n/a
50 Properties:
51 module.author = "Michael Terry"
52 module.description = "When a sink/source is added, switch to it or conditionally switch to it"
53 module.version = "15.99.1"
54
55Module #6
56 Name: module-udev-detect
57 Argument:
58 Usage counter: n/a
59 Properties:
60 module.author = "Lennart Poettering"
61 module.description = "Detect available audio hardware and load matching drivers"
62 module.version = "15.99.1"
63
64Module #7
65 Name: module-bluetooth-policy
66 Argument:
67 Usage counter: n/a
68 Properties:
69 module.author = "Frédéric Dalleau, Pali Rohár"
70 module.description = "Policy module to make using bluetooth devices out-of-the-box easier"
71 module.version = "15.99.1"
72
73Module #8
74 Name: module-bluetooth-discover
75 Argument:
76 Usage counter: n/a
77 Properties:
78 module.author = "João Paulo Rechi Vita"
79 module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
80 module.version = "15.99.1"
81
82Module #9
83 Name: module-bluez5-discover
84 Argument:
85 Usage counter: n/a
86 Properties:
87 module.author = "João Paulo Rechi Vita"
88 module.description = "Detect available BlueZ 5 Bluetooth audio devices and load BlueZ 5 Bluetooth audio drivers"
89 module.version = "15.99.1"
90
91Module #10
92 Name: module-native-protocol-unix
93 Argument:
94 Usage counter: n/a
95 Properties:
96 module.author = "Lennart Poettering"
97 module.description = "Native protocol (UNIX sockets)"
98 module.version = "15.99.1"
99
100Module #11
101 Name: module-default-device-restore
102 Argument:
103 Usage counter: n/a
104 Properties:
105 module.author = "Lennart Poettering"
106 module.description = "Automatically restore the default sink and source"
107 module.version = "15.99.1"
108
109Module #12
110 Name: module-always-sink
111 Argument:
112 Usage counter: n/a
113 Properties:
114 module.author = "Colin Guthrie"
115 module.description = "Always keeps at least one sink loaded even if it's a null one"
116 module.version = "15.99.1"
117
118Module #14
119 Name: module-intended-roles
120 Argument:
121 Usage counter: n/a
122 Properties:
123 module.author = "Lennart Poettering"
124 module.description = "Automatically set device of streams based on intended roles of devices"
125 module.version = "15.99.1"
126
127Module #15
128 Name: module-suspend-on-idle
129 Argument:
130 Usage counter: n/a
131 Properties:
132 module.author = "Lennart Poettering"
133 module.description = "When a sink/source is idle for too long, suspend it"
134 module.version = "15.99.1"
135
136Module #16
137 Name: module-systemd-login
138 Argument:
139 Usage counter: n/a
140 Properties:
141 module.author = "Lennart Poettering"
142 module.description = "Create a client for each login session of this user"
143 module.version = "15.99.1"
144
145Module #17
146 Name: module-position-event-sounds
147 Argument:
148 Usage counter: n/a
149 Properties:
150 module.author = "Lennart Poettering"
151 module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
152 module.version = "15.99.1"
153
154Module #18
155 Name: module-role-cork
156 Argument:
157 Usage counter: n/a
158 Properties:
159 module.author = "Lennart Poettering"
160 module.description = "Mute & cork streams with certain roles while others exist"
161 module.version = "15.99.1"
162
163Module #19
164 Name: module-snap-policy
165 Argument:
166 Usage counter: n/a
167 Properties:
168 module.author = "Canonical Ltd"
169 module.description = "Ubuntu Snap policy management"
170 module.version = "15.99.1"
171
172Module #20
173 Name: module-filter-heuristics
174 Argument:
175 Usage counter: n/a
176 Properties:
177 module.author = "Colin Guthrie"
178 module.description = "Detect when various filters are desirable"
179 module.version = "15.99.1"
180
181Module #21
182 Name: module-filter-apply
183 Argument:
184 Usage counter: n/a
185 Properties:
186 module.author = "Colin Guthrie"
187 module.description = "Load filter sinks automatically when needed"
188 module.version = "15.99.1"
189
190Module #22
191 Name: module-alsa-card
192 Argument: device_id="0" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
193 Usage counter: 0
194 Properties:
195 module.author = "Lennart Poettering"
196 module.description = "ALSA Card"
197 module.version = "15.99.1"
198
199Module #23
200 Name: module-alsa-card
201 Argument: device_id="1" name="pci-0000_00_1f.3-platform-skl_hda_dsp_generic" card_name="alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1"
202 Usage counter: 0
203 Properties:
204 module.author = "Lennart Poettering"
205 module.description = "ALSA Card"
206 module.version = "15.99.1"
207
208Sink #1
209 State: SUSPENDED
210 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink
211 Description: sof-hda-dsp HDMI / DisplayPort 3 Output
212 Driver: module-alsa-card.c
213 Sample Specification: s16le 2ch 48000Hz
214 Channel Map: front-left,front-right
215 Owner Module: 23
216 Mute: no
217 Volume: front-left: 32768 / 50% / -18.06 dB, front-right: 32768 / 50% / -18.06 dB
218 balance 0.00
219 Base Volume: 65536 / 100% / 0.00 dB
220 Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink.monitor
221 Latency: 0 usec, configured 0 usec
222 Flags: HARDWARE DECIBEL_VOLUME LATENCY
223 Properties:
224 alsa.resolution_bits = "16"
225 device.api = "alsa"
226 device.class = "sound"
227 alsa.class = "generic"
228 alsa.subclass = "generic-mix"
229 alsa.name = ""
230 alsa.id = "HDMI3 (*)"
231 alsa.subdevice = "0"
232 alsa.subdevice_name = "subdevice #0"
233 alsa.device = "5"
234 alsa.card = "1"
235 alsa.card_name = "sof-hda-dsp"
236 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
237 alsa.driver_name = "snd_soc_skl_hda_dsp"
238 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
239 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
240 device.bus = "pci"
241 device.vendor.id = "8086"
242 device.vendor.name = "Intel Corporation"
243 device.product.id = "7ad0"
244 device.string = "_ucm0003.hw:sofhdadsp,5"
245 device.buffering.buffer_size = "65536"
246 device.buffering.fragment_size = "16384"
247 device.access_mode = "mmap+timer"
248 device.profile.name = "HiFi: hw:sofhdadsp,5: sink"
249 device.profile.description = "HDMI / DisplayPort 3 Output"
250 alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
251 device.description = "sof-hda-dsp HDMI / DisplayPort 3 Output"
252 module-udev-detect.discovered = "1"
253 device.icon_name = "audio-card-pci"
254 Ports:
255 [Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, not available)
256 Active Port: [Out] HDMI3
257 Formats:
258 pcm
259
260Sink #2
261 State: SUSPENDED
262 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink
263 Description: sof-hda-dsp HDMI / DisplayPort 2 Output
264 Driver: module-alsa-card.c
265 Sample Specification: s16le 2ch 48000Hz
266 Channel Map: front-left,front-right
267 Owner Module: 23
268 Mute: no
269 Volume: front-left: 32768 / 50% / -18.06 dB, front-right: 32768 / 50% / -18.06 dB
270 balance 0.00
271 Base Volume: 65536 / 100% / 0.00 dB
272 Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink.monitor
273 Latency: 0 usec, configured 0 usec
274 Flags: HARDWARE DECIBEL_VOLUME LATENCY
275 Properties:
276 alsa.resolution_bits = "16"
277 device.api = "alsa"
278 device.class = "sound"
279 alsa.class = "generic"
280 alsa.subclass = "generic-mix"
281 alsa.name = ""
282 alsa.id = "HDMI2 (*)"
283 alsa.subdevice = "0"
284 alsa.subdevice_name = "subdevice #0"
285 alsa.device = "4"
286 alsa.card = "1"
287 alsa.card_name = "sof-hda-dsp"
288 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
289 alsa.driver_name = "snd_soc_skl_hda_dsp"
290 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
291 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
292 device.bus = "pci"
293 device.vendor.id = "8086"
294 device.vendor.name = "Intel Corporation"
295 device.product.id = "7ad0"
296 device.string = "_ucm0003.hw:sofhdadsp,4"
297 device.buffering.buffer_size = "65536"
298 device.buffering.fragment_size = "16384"
299 device.access_mode = "mmap+timer"
300 device.profile.name = "HiFi: hw:sofhdadsp,4: sink"
301 device.profile.description = "HDMI / DisplayPort 2 Output"
302 alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
303 device.description = "sof-hda-dsp HDMI / DisplayPort 2 Output"
304 module-udev-detect.discovered = "1"
305 device.icon_name = "audio-card-pci"
306 Ports:
307 [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, not available)
308 Active Port: [Out] HDMI2
309 Formats:
310 pcm
311
312Sink #3
313 State: SUSPENDED
314 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink
315 Description: sof-hda-dsp HDMI / DisplayPort 1 Output
316 Driver: module-alsa-card.c
317 Sample Specification: s16le 2ch 48000Hz
318 Channel Map: front-left,front-right
319 Owner Module: 23
320 Mute: no
321 Volume: front-left: 32768 / 50% / -18.06 dB, front-right: 32768 / 50% / -18.06 dB
322 balance 0.00
323 Base Volume: 65536 / 100% / 0.00 dB
324 Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink.monitor
325 Latency: 0 usec, configured 0 usec
326 Flags: HARDWARE DECIBEL_VOLUME LATENCY
327 Properties:
328 alsa.resolution_bits = "16"
329 device.api = "alsa"
330 device.class = "sound"
331 alsa.class = "generic"
332 alsa.subclass = "generic-mix"
333 alsa.name = ""
334 alsa.id = "HDMI1 (*)"
335 alsa.subdevice = "0"
336 alsa.subdevice_name = "subdevice #0"
337 alsa.device = "3"
338 alsa.card = "1"
339 alsa.card_name = "sof-hda-dsp"
340 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
341 alsa.driver_name = "snd_soc_skl_hda_dsp"
342 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
343 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
344 device.bus = "pci"
345 device.vendor.id = "8086"
346 device.vendor.name = "Intel Corporation"
347 device.product.id = "7ad0"
348 device.string = "_ucm0003.hw:sofhdadsp,3"
349 device.buffering.buffer_size = "65536"
350 device.buffering.fragment_size = "16384"
351 device.access_mode = "mmap+timer"
352 device.profile.name = "HiFi: hw:sofhdadsp,3: sink"
353 device.profile.description = "HDMI / DisplayPort 1 Output"
354 alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
355 device.description = "sof-hda-dsp HDMI / DisplayPort 1 Output"
356 module-udev-detect.discovered = "1"
357 device.icon_name = "audio-card-pci"
358 Ports:
359 [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, not available)
360 Active Port: [Out] HDMI1
361 Formats:
362 pcm
363
364Sink #4
365 State: SUSPENDED
366 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink
367 Description: sof-hda-dsp Speaker + Headphones
368 Driver: module-alsa-card.c
369 Sample Specification: s16le 2ch 48000Hz
370 Channel Map: front-left,front-right
371 Owner Module: 23
372 Mute: no
373 Volume: front-left: 36700 / 56% / -15.11 dB, front-right: 36700 / 56% / -15.11 dB
374 balance 0.00
375 Base Volume: 65536 / 100% / 0.00 dB
376 Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor
377 Latency: 0 usec, configured 0 usec
378 Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
379 Properties:
380 alsa.resolution_bits = "16"
381 device.api = "alsa"
382 device.class = "sound"
383 alsa.class = "generic"
384 alsa.subclass = "generic-mix"
385 alsa.name = ""
386 alsa.id = "HDA Analog (*)"
387 alsa.subdevice = "0"
388 alsa.subdevice_name = "subdevice #0"
389 alsa.device = "0"
390 alsa.card = "1"
391 alsa.card_name = "sof-hda-dsp"
392 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
393 alsa.driver_name = "snd_soc_skl_hda_dsp"
394 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
395 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
396 device.bus = "pci"
397 device.vendor.id = "8086"
398 device.vendor.name = "Intel Corporation"
399 device.product.id = "7ad0"
400 device.string = "_ucm0003.hw:sofhdadsp"
401 device.buffering.buffer_size = "65536"
402 device.buffering.fragment_size = "16384"
403 device.access_mode = "mmap+timer"
404 device.profile.name = "HiFi: hw:sofhdadsp: sink"
405 device.profile.description = "Speaker + Headphones"
406 alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
407 device.description = "sof-hda-dsp Speaker + Headphones"
408 module-udev-detect.discovered = "1"
409 device.icon_name = "audio-card-pci"
410 Ports:
411 [Out] Speaker: Speaker (type: Speaker, priority: 100, availability unknown)
412 [Out] Headphones: Headphones (type: Headphones, priority: 200, not available)
413 Active Port: [Out] Speaker
414 Formats:
415 pcm
416
417Source #1
418 State: SUSPENDED
419 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink.monitor
420 Description: Monitor of sof-hda-dsp HDMI / DisplayPort 3 Output
421 Driver: module-alsa-card.c
422 Sample Specification: s16le 2ch 48000Hz
423 Channel Map: front-left,front-right
424 Owner Module: 23
425 Mute: no
426 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
427 balance 0.00
428 Base Volume: 65536 / 100% / 0.00 dB
429 Monitor of Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink
430 Latency: 0 usec, configured 0 usec
431 Flags: DECIBEL_VOLUME LATENCY
432 Properties:
433 device.description = "Monitor of sof-hda-dsp HDMI / DisplayPort 3 Output"
434 device.class = "monitor"
435 alsa.card = "1"
436 alsa.card_name = "sof-hda-dsp"
437 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
438 alsa.driver_name = "snd_soc_skl_hda_dsp"
439 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
440 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
441 device.bus = "pci"
442 device.vendor.id = "8086"
443 device.vendor.name = "Intel Corporation"
444 device.product.id = "7ad0"
445 device.string = "1"
446 module-udev-detect.discovered = "1"
447 device.icon_name = "audio-card-pci"
448 Formats:
449 pcm
450
451Source #2
452 State: SUSPENDED
453 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink.monitor
454 Description: Monitor of sof-hda-dsp HDMI / DisplayPort 2 Output
455 Driver: module-alsa-card.c
456 Sample Specification: s16le 2ch 48000Hz
457 Channel Map: front-left,front-right
458 Owner Module: 23
459 Mute: no
460 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
461 balance 0.00
462 Base Volume: 65536 / 100% / 0.00 dB
463 Monitor of Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink
464 Latency: 0 usec, configured 0 usec
465 Flags: DECIBEL_VOLUME LATENCY
466 Properties:
467 device.description = "Monitor of sof-hda-dsp HDMI / DisplayPort 2 Output"
468 device.class = "monitor"
469 alsa.card = "1"
470 alsa.card_name = "sof-hda-dsp"
471 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
472 alsa.driver_name = "snd_soc_skl_hda_dsp"
473 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
474 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
475 device.bus = "pci"
476 device.vendor.id = "8086"
477 device.vendor.name = "Intel Corporation"
478 device.product.id = "7ad0"
479 device.string = "1"
480 module-udev-detect.discovered = "1"
481 device.icon_name = "audio-card-pci"
482 Formats:
483 pcm
484
485Source #3
486 State: SUSPENDED
487 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink.monitor
488 Description: Monitor of sof-hda-dsp HDMI / DisplayPort 1 Output
489 Driver: module-alsa-card.c
490 Sample Specification: s16le 2ch 48000Hz
491 Channel Map: front-left,front-right
492 Owner Module: 23
493 Mute: no
494 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
495 balance 0.00
496 Base Volume: 65536 / 100% / 0.00 dB
497 Monitor of Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink
498 Latency: 0 usec, configured 0 usec
499 Flags: DECIBEL_VOLUME LATENCY
500 Properties:
501 device.description = "Monitor of sof-hda-dsp HDMI / DisplayPort 1 Output"
502 device.class = "monitor"
503 alsa.card = "1"
504 alsa.card_name = "sof-hda-dsp"
505 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
506 alsa.driver_name = "snd_soc_skl_hda_dsp"
507 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
508 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
509 device.bus = "pci"
510 device.vendor.id = "8086"
511 device.vendor.name = "Intel Corporation"
512 device.product.id = "7ad0"
513 device.string = "1"
514 module-udev-detect.discovered = "1"
515 device.icon_name = "audio-card-pci"
516 Formats:
517 pcm
518
519Source #4
520 State: SUSPENDED
521 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor
522 Description: Monitor of sof-hda-dsp Speaker + Headphones
523 Driver: module-alsa-card.c
524 Sample Specification: s16le 2ch 48000Hz
525 Channel Map: front-left,front-right
526 Owner Module: 23
527 Mute: no
528 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
529 balance 0.00
530 Base Volume: 65536 / 100% / 0.00 dB
531 Monitor of Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink
532 Latency: 0 usec, configured 0 usec
533 Flags: DECIBEL_VOLUME LATENCY
534 Properties:
535 device.description = "Monitor of sof-hda-dsp Speaker + Headphones"
536 device.class = "monitor"
537 alsa.card = "1"
538 alsa.card_name = "sof-hda-dsp"
539 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
540 alsa.driver_name = "snd_soc_skl_hda_dsp"
541 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
542 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
543 device.bus = "pci"
544 device.vendor.id = "8086"
545 device.vendor.name = "Intel Corporation"
546 device.product.id = "7ad0"
547 device.string = "1"
548 module-udev-detect.discovered = "1"
549 device.icon_name = "audio-card-pci"
550 Formats:
551 pcm
552
553Source #5
554 State: SUSPENDED
555 Name: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__source
556 Description: sof-hda-dsp Headphones Stereo Microphone
557 Driver: module-alsa-card.c
558 Sample Specification: s16le 2ch 48000Hz
559 Channel Map: front-left,front-right
560 Owner Module: 23
561 Mute: no
562 Volume: front-left: 32768 / 50% / -18.06 dB, front-right: 32768 / 50% / -18.06 dB
563 balance 0.00
564 Base Volume: 6554 / 10% / -60.00 dB
565 Monitor of Sink: n/a
566 Latency: 0 usec, configured 0 usec
567 Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
568 Properties:
569 alsa.resolution_bits = "16"
570 device.api = "alsa"
571 device.class = "sound"
572 alsa.class = "generic"
573 alsa.subclass = "generic-mix"
574 alsa.name = ""
575 alsa.id = "HDA Analog (*)"
576 alsa.subdevice = "0"
577 alsa.subdevice_name = "subdevice #0"
578 alsa.device = "0"
579 alsa.card = "1"
580 alsa.card_name = "sof-hda-dsp"
581 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
582 alsa.driver_name = "snd_soc_skl_hda_dsp"
583 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
584 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
585 device.bus = "pci"
586 device.vendor.id = "8086"
587 device.vendor.name = "Intel Corporation"
588 device.product.id = "7ad0"
589 device.string = "_ucm0003.hw:sofhdadsp"
590 device.buffering.buffer_size = "65536"
591 device.buffering.fragment_size = "16384"
592 device.access_mode = "mmap+timer"
593 device.profile.name = "HiFi: hw:sofhdadsp: source"
594 device.profile.description = "Headphones Stereo Microphone"
595 alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
596 device.description = "sof-hda-dsp Headphones Stereo Microphone"
597 module-udev-detect.discovered = "1"
598 device.icon_name = "audio-card-pci"
599 Ports:
600 [In] Mic2: Headphones Stereo Microphone (type: Mic, priority: 200, not available)
601 Active Port: [In] Mic2
602 Formats:
603 pcm
604
605Source #6
606 State: SUSPENDED
607 Name: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source
608 Description: sof-hda-dsp Digital Microphone
609 Driver: module-alsa-card.c
610 Sample Specification: s16le 2ch 48000Hz
611 Channel Map: front-left,front-right
612 Owner Module: 23
613 Mute: no
614 Volume: front-left: 35389 / 54% / -16.06 dB, front-right: 35389 / 54% / -16.06 dB
615 balance 0.00
616 Base Volume: 30419 / 46% / -20.00 dB
617 Monitor of Sink: n/a
618 Latency: 0 usec, configured 0 usec
619 Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
620 Properties:
621 alsa.resolution_bits = "16"
622 device.api = "alsa"
623 device.class = "sound"
624 alsa.class = "generic"
625 alsa.subclass = "generic-mix"
626 alsa.name = ""
627 alsa.id = "DMIC (*)"
628 alsa.subdevice = "0"
629 alsa.subdevice_name = "subdevice #0"
630 alsa.device = "6"
631 alsa.card = "1"
632 alsa.card_name = "sof-hda-dsp"
633 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
634 alsa.driver_name = "snd_soc_skl_hda_dsp"
635 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
636 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
637 device.bus = "pci"
638 device.vendor.id = "8086"
639 device.vendor.name = "Intel Corporation"
640 device.product.id = "7ad0"
641 device.string = "_ucm0003.hw:sofhdadsp,6"
642 device.buffering.buffer_size = "65536"
643 device.buffering.fragment_size = "16384"
644 device.access_mode = "mmap+timer"
645 device.profile.name = "HiFi: hw:sofhdadsp,6: source"
646 device.profile.description = "Digital Microphone"
647 alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
648 device.description = "sof-hda-dsp Digital Microphone"
649 module-udev-detect.discovered = "1"
650 device.icon_name = "audio-card-pci"
651 Ports:
652 [In] Mic1: Digital Microphone (type: Mic, priority: 100, availability unknown)
653 Active Port: [In] Mic1
654 Formats:
655 pcm
656
657Client #0
658 Driver: module-systemd-login.c
659 Owner Module: 16
660 Properties:
661 application.name = "Login Session 2"
662 systemd-login.session = "2"
663
664Client #1
665 Driver: protocol-native.c
666 Owner Module: 10
667 Properties:
668 application.name = "GNOME Shell Volume Control"
669 native-protocol.peer = "UNIX socket client"
670 native-protocol.version = "35"
671 application.id = "org.gnome.VolumeControl"
672 application.icon_name = "multimedia-volume-control"
673 application.version = "42.2"
674 application.process.id = "2713"
675 application.process.user = "u"
676 application.process.host = "Libra-7"
677 application.process.binary = "gnome-shell"
678 application.language = "en_US.UTF-8"
679 window.x11.display = ":1"
680 application.process.machine_id = "61e38c7b14064a14a33c72b5cd4dae22"
681
682Client #2
683 Driver: protocol-native.c
684 Owner Module: 10
685 Properties:
686 application.name = "GNOME Volume Control Media Keys"
687 native-protocol.peer = "UNIX socket client"
688 native-protocol.version = "35"
689 application.id = "org.gnome.VolumeControl"
690 application.icon_name = "multimedia-volume-control"
691 application.version = ""
692 application.process.id = "3075"
693 application.process.user = "u"
694 application.process.host = "Libra-7"
695 application.process.binary = "gsd-media-keys"
696 application.language = "en_US.UTF-8"
697 window.x11.display = ":1"
698 application.process.machine_id = "61e38c7b14064a14a33c72b5cd4dae22"
699
700Client #3
701 Driver: protocol-native.c
702 Owner Module: 10
703 Properties:
704 application.name = "Terminal"
705 native-protocol.peer = "UNIX socket client"
706 native-protocol.version = "35"
707 application.icon_name = "org.gnome.Terminal"
708 window.x11.display = ":1"
709 window.x11.screen = "0"
710 application.process.id = "5013"
711 application.process.user = "u"
712 application.process.host = "Libra-7"
713 application.process.binary = "gnome-terminal-server"
714 application.language = "en_US.UTF-8"
715 application.process.machine_id = "61e38c7b14064a14a33c72b5cd4dae22"
716
717Client #6
718 Driver: protocol-native.c
719 Owner Module: 10
720 Properties:
721 application.name = "gsd-power"
722 native-protocol.peer = "UNIX socket client"
723 native-protocol.version = "35"
724 window.x11.display = ":1"
725 window.x11.screen = "0"
726 application.process.id = "3077"
727 application.process.user = "u"
728 application.process.host = "Libra-7"
729 application.process.binary = "gsd-power"
730 application.language = "en_US.UTF-8"
731 application.process.machine_id = "61e38c7b14064a14a33c72b5cd4dae22"
732
733Client #8
734 Driver: protocol-native.c
735 Owner Module: 10
736 Properties:
737 application.name = "Mutter"
738 native-protocol.peer = "UNIX socket client"
739 native-protocol.version = "35"
740 application.process.id = "2713"
741 application.process.user = "u"
742 application.process.host = "Libra-7"
743 application.process.binary = "gnome-shell"
744 application.language = "en_US.UTF-8"
745 window.x11.display = ":1"
746 application.process.machine_id = "61e38c7b14064a14a33c72b5cd4dae22"
747
748Client #305
749 Driver: protocol-native.c
750 Owner Module: 10
751 Properties:
752 application.name = "pactl"
753 native-protocol.peer = "UNIX socket client"
754 native-protocol.version = "35"
755 application.process.id = "17081"
756 application.process.user = "u"
757 application.process.host = "Libra-7"
758 application.process.binary = "pactl"
759 application.language = "en_US.UTF-8"
760 window.x11.display = ":1"
761 application.process.machine_id = "61e38c7b14064a14a33c72b5cd4dae22"
762
763Sample #0
764 Name: bell-window-system
765 Sample Specification: s16le 2ch 44100Hz
766 Channel Map: front-left,front-right
767 Volume: (invalid)
768 balance 0.00
769 Duration: 0.3s
770 Size: 49.9 KiB
771 Lazy: no
772 Filename: n/a
773 Properties:
774 media.role = "event"
775 event.description = "Bell event"
776 event.id = "bell-window-system"
777 media.name = "bell-window-system"
778 media.filename = "/usr/share//sounds/Yaru/stereo/bell.oga"
779 application.name = "Mutter"
780 native-protocol.peer = "UNIX socket client"
781 native-protocol.version = "35"
782 application.process.id = "2713"
783 application.process.user = "u"
784 application.process.host = "Libra-7"
785 application.process.binary = "gnome-shell"
786 application.language = "en_US.UTF-8"
787 window.x11.display = ":1"
788 application.process.machine_id = "61e38c7b14064a14a33c72b5cd4dae22"
789
790Card #0
791 Name: alsa_card.pci-0000_01_00.1
792 Driver: module-alsa-card.c
793 Owner Module: 22
794 Properties:
795 alsa.card = "0"
796 alsa.card_name = "HDA NVidia"
797 alsa.long_card_name = "HDA NVidia at 0xbe000000 irq 17"
798 alsa.driver_name = "snd_hda_intel"
799 device.bus_path = "pci-0000:01:00.1"
800 sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0"
801 device.bus = "pci"
802 device.vendor.id = "10de"
803 device.vendor.name = "NVIDIA Corporation"
804 device.product.id = "228b"
805 device.product.name = "GA104 High Definition Audio Controller"
806 device.string = "0"
807 device.description = "GA104 High Definition Audio Controller"
808 module-udev-detect.discovered = "1"
809 device.icon_name = "audio-card-pci"
810 Profiles:
811 output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: no)
812 output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
813 output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: no)
814 output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
815 output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
816 output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
817 output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
818 output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
819 output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
820 output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5700, available: no)
821 output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
822 output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
823 output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (sinks: 1, sources: 0, priority: 5700, available: no)
824 output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
825 output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
826 output:hdmi-stereo-extra5: Digital Stereo (HDMI 6) Output (sinks: 1, sources: 0, priority: 5700, available: no)
827 output:hdmi-surround-extra5: Digital Surround 5.1 (HDMI 6) Output (sinks: 1, sources: 0, priority: 600, available: no)
828 output:hdmi-surround71-extra5: Digital Surround 7.1 (HDMI 6) Output (sinks: 1, sources: 0, priority: 600, available: no)
829 output:hdmi-stereo-extra6: Digital Stereo (HDMI 7) Output (sinks: 1, sources: 0, priority: 5700, available: no)
830 output:hdmi-surround-extra6: Digital Surround 5.1 (HDMI 7) Output (sinks: 1, sources: 0, priority: 600, available: no)
831 output:hdmi-surround71-extra6: Digital Surround 7.1 (HDMI 7) Output (sinks: 1, sources: 0, priority: 600, available: no)
832 off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
833 Active Profile: off
834 Ports:
835 hdmi-output-0: HDMI / DisplayPort (type: HDMI, priority: 5900, latency offset: 0 usec, not available)
836 Properties:
837 device.icon_name = "video-display"
838 Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
839 hdmi-output-1: HDMI / DisplayPort 2 (type: HDMI, priority: 5800, latency offset: 0 usec, not available)
840 Properties:
841 device.icon_name = "video-display"
842 Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
843 hdmi-output-2: HDMI / DisplayPort 3 (type: HDMI, priority: 5700, latency offset: 0 usec, not available)
844 Properties:
845 device.icon_name = "video-display"
846 Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
847 hdmi-output-3: HDMI / DisplayPort 4 (type: HDMI, priority: 5600, latency offset: 0 usec, not available)
848 Properties:
849 device.icon_name = "video-display"
850 Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3
851 hdmi-output-4: HDMI / DisplayPort 5 (type: HDMI, priority: 5500, latency offset: 0 usec, not available)
852 Properties:
853 device.icon_name = "video-display"
854 Part of profile(s): output:hdmi-stereo-extra4, output:hdmi-surround-extra4, output:hdmi-surround71-extra4
855 hdmi-output-5: HDMI / DisplayPort 6 (type: HDMI, priority: 5400, latency offset: 0 usec, not available)
856 Properties:
857 device.icon_name = "video-display"
858 Part of profile(s): output:hdmi-stereo-extra5, output:hdmi-surround-extra5, output:hdmi-surround71-extra5
859 hdmi-output-6: HDMI / DisplayPort 7 (type: HDMI, priority: 5300, latency offset: 0 usec, not available)
860 Properties:
861 device.icon_name = "video-display"
862 Part of profile(s): output:hdmi-stereo-extra6, output:hdmi-surround-extra6, output:hdmi-surround71-extra6
863
864Card #1
865 Name: alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic
866 Driver: module-alsa-card.c
867 Owner Module: 23
868 Properties:
869 alsa.card = "1"
870 alsa.card_name = "sof-hda-dsp"
871 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
872 alsa.driver_name = "snd_soc_skl_hda_dsp"
873 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
874 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
875 device.bus = "pci"
876 device.vendor.id = "8086"
877 device.vendor.name = "Intel Corporation"
878 device.product.id = "7ad0"
879 device.string = "1"
880 device.description = "sof-hda-dsp"
881 module-udev-detect.discovered = "1"
882 device.icon_name = "audio-card-pci"
883 Profiles:
884 HiFi: Play HiFi quality Music (sinks: 4, sources: 2, priority: 40768, available: yes)
885 off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
886 Active Profile: HiFi
887 Ports:
888 [Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, latency offset: 0 usec, not available)
889 Part of profile(s): HiFi
890 [Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, latency offset: 0 usec, not available)
891 Part of profile(s): HiFi
892 [Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, latency offset: 0 usec, not available)
893 Part of profile(s): HiFi
894 [Out] Speaker: Speaker (type: Speaker, priority: 100, latency offset: 0 usec, availability unknown)
895 Part of profile(s): HiFi
896 [Out] Headphones: Headphones (type: Headphones, priority: 200, latency offset: 0 usec, not available)
897 Part of profile(s): HiFi
898 [In] Mic2: Headphones Stereo Microphone (type: Mic, priority: 200, latency offset: 0 usec, not available)
899 Part of profile(s): HiFi
900 [In] Mic1: Digital Microphone (type: Mic, priority: 100, latency offset: 0 usec, availability unknown)
901 Part of profile(s): HiFi
diff --git a/checkbox_support/parsers/tests/pactl_data/sinks-desktop-jammy-p16gen1.txt b/checkbox_support/parsers/tests/pactl_data/sinks-desktop-jammy-p16gen1.txt
0new file mode 100644902new file mode 100644
index 0000000..aa4b5ed
--- /dev/null
+++ b/checkbox_support/parsers/tests/pactl_data/sinks-desktop-jammy-p16gen1.txt
@@ -0,0 +1,52 @@
1Sink #4
2 State: SUSPENDED
3 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink
4 Description: sof-hda-dsp Speaker + Headphones
5 Driver: module-alsa-card.c
6 Sample Specification: s16le 2ch 48000Hz
7 Channel Map: front-left,front-right
8 Owner Module: 23
9 Mute: no
10 Volume: front-left: 36700 / 56% / -15.11 dB, front-right: 36700 / 56% / -15.11 dB
11 balance 0.00
12 Base Volume: 65536 / 100% / 0.00 dB
13 Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor
14 Latency: 0 usec, configured 0 usec
15 Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
16 Properties:
17 alsa.resolution_bits = "16"
18 device.api = "alsa"
19 device.class = "sound"
20 alsa.class = "generic"
21 alsa.subclass = "generic-mix"
22 alsa.name = ""
23 alsa.id = "HDA Analog (*)"
24 alsa.subdevice = "0"
25 alsa.subdevice_name = "subdevice #0"
26 alsa.device = "0"
27 alsa.card = "1"
28 alsa.card_name = "sof-hda-dsp"
29 alsa.long_card_name = "LENOVO-21D6000AUS-ThinkPadP16Gen1"
30 alsa.driver_name = "snd_soc_skl_hda_dsp"
31 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
32 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card1"
33 device.bus = "pci"
34 device.vendor.id = "8086"
35 device.vendor.name = "Intel Corporation"
36 device.product.id = "7ad0"
37 device.string = "_ucm0003.hw:sofhdadsp"
38 device.buffering.buffer_size = "65536"
39 device.buffering.fragment_size = "16384"
40 device.access_mode = "mmap+timer"
41 device.profile.name = "HiFi: hw:sofhdadsp: sink"
42 device.profile.description = "Speaker + Headphones"
43 alsa.mixer_device = "_ucm0003.hw:sofhdadsp"
44 device.description = "sof-hda-dsp Speaker + Headphones"
45 module-udev-detect.discovered = "1"
46 device.icon_name = "audio-card-pci"
47 Ports:
48 [Out] Speaker: Speaker (type: Speaker, priority: 100, availability unknown)
49 [Out] Headphones: Headphones (type: Headphones, priority: 200, not available)
50 Active Port: [Out] Speaker
51 Formats:
52 pcm
0\ No newline at end of file53\ No newline at end of file
diff --git a/checkbox_support/parsers/tests/test_pactl.py b/checkbox_support/parsers/tests/test_pactl.py
index 876d3d9..cee0ff9 100644
--- a/checkbox_support/parsers/tests/test_pactl.py
+++ b/checkbox_support/parsers/tests/test_pactl.py
@@ -202,6 +202,17 @@ class PortTests(ParsingTestCase):
202 self.assertEqual(port.priority, 100)202 self.assertEqual(port.priority, 100)
203 self.assertEqual(port.availability, 'not available')203 self.assertEqual(port.availability, 'not available')
204204
205 def test_port_with_(self):
206 port = self.assertParses(
207 pactl.Port.Syntax, (
208 'analog-input-internal-mic: Internal Microphone '
209 '(type: Mic, priority: 8900, availability unknown)')
210 )['port']
211 self.assertEqual(port.name, 'analog-input-internal-mic')
212 self.assertEqual(port.label, 'Internal Microphone')
213 self.assertEqual(port.priority, 8900)
214 self.assertEqual(port.availability, 'availability unknown')
215
205 def test_chinese_label(self):216 def test_chinese_label(self):
206 port = self.assertParses(217 port = self.assertParses(
207 pactl.Port.Syntax, (218 pactl.Port.Syntax, (
@@ -605,6 +616,25 @@ class RecordTests(ParsingTestCase, PactlDataMixIn):
605 self.assertEqual(616 self.assertEqual(
606 record.attribute_map['Formats'].value, ['pcm'])617 record.attribute_map['Formats'].value, ['pcm'])
607618
619 def test_sinks_p16gen1(self):
620 record = self.assertParses(
621 pactl.Record.Syntax, self.get_text("sinks-desktop-jammy-p16gen1")
622 )['record']
623 self.assertEqual(record.name, "Sink #4")
624 self.assertEqual(record.attribute_list[0].name, "State")
625 self.assertIs(record.attribute_map['State'], record.attribute_list[0])
626 # Probe some random things
627 self.assertEqual(
628 record.attribute_map['Ports'].value[0].name, "Speaker")
629 self.assertEqual(
630 record.attribute_map['Ports'].value[0].availability, "availability unknown")
631 self.assertEqual(
632 record.attribute_map['Ports'].value[1].name, "Headphones")
633 self.assertEqual(
634 record.attribute_map['Properties'].value[2].value, "sound")
635 self.assertEqual(
636 record.attribute_map['Formats'].value, ['pcm'])
637
608 def test_modules(self):638 def test_modules(self):
609 record = self.assertParses(639 record = self.assertParses(
610 pactl.Record.Syntax, self.get_text("modules-desktop-precise-0")640 pactl.Record.Syntax, self.get_text("modules-desktop-precise-0")
@@ -646,6 +676,12 @@ class DocumentTests(ParsingTestCase, PactlDataMixIn):
646 )[0]676 )[0]
647 self.assertEqual(len(document.record_list), 1)677 self.assertEqual(len(document.record_list), 1)
648678
679 def test_pactl_list_sinks_p16gen1(self):
680 document = self.assertParses(
681 pactl.Document.Syntax, self.get_text("sinks-desktop-jammy-p16gen1")
682 )[0]
683 self.assertEqual(len(document.record_list), 1)
684
649 def test_pactl_list_cards(self):685 def test_pactl_list_cards(self):
650 document = self.assertParses(686 document = self.assertParses(
651 pactl.Document.Syntax, self.get_text("cards-desktop-precise")687 pactl.Document.Syntax, self.get_text("cards-desktop-precise")
@@ -664,6 +700,12 @@ class DocumentTests(ParsingTestCase, PactlDataMixIn):
664 )[0]700 )[0]
665 self.assertEqual(len(document.record_list), 1)701 self.assertEqual(len(document.record_list), 1)
666702
703 def test_pactl_list_cards_p16gen1(self):
704 document = self.assertParses(
705 pactl.Document.Syntax, self.get_text("desktop-jammy-p16gen1")
706 )[0]
707 self.assertEqual(len(document.record_list), 43)
708
667 def test_pactl_list_clients_bionic(self):709 def test_pactl_list_clients_bionic(self):
668 document = self.assertParses(710 document = self.assertParses(
669 pactl.Document.Syntax, self.get_text("desktop-bionic-t480s")711 pactl.Document.Syntax, self.get_text("desktop-bionic-t480s")

Subscribers

People subscribed via source and target branches