Merge ~sylvain-pineau/checkbox-support:patcl-parser-1.11-empty-property-support into checkbox-support:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 105e431a42346cb3d6814962ada65b98e0e42c23
Merged at revision: 53c68753cefd091072faff45eb268a92b31934ed
Proposed branch: ~sylvain-pineau/checkbox-support:patcl-parser-1.11-empty-property-support
Merge into: checkbox-support:master
Diff against target: 1134 lines (+1105/-1)
3 files modified
checkbox_support/parsers/pactl.py (+8/-1)
checkbox_support/parsers/tests/pactl_data/desktop-bionic-t480s.txt (+1091/-0)
checkbox_support/parsers/tests/test_pactl.py (+6/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+345640@code.launchpad.net

Description of the change

The pactl parser (based on pyparsing) is failing to parser a bionic/pactl 1.11 output.
Root cause is an empty property (application.version):

Client #9
 Driver: protocol-native.c
 Owner Module: 13
 Properties:
  application.name = "GNOME Volume Control Media Keys"
  native-protocol.peer = "UNIX socket client"
  native-protocol.version = "32"
  application.id = "org.gnome.VolumeControl"
  application.icon_name = "multimedia-volume-control"
  application.version = ""

This patch fixes the grammar to support this kind of syntax. (tested on bionic)

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

self-approved

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 c4193f6..928e2e5 100644
--- a/checkbox_support/parsers/pactl.py
+++ b/checkbox_support/parsers/pactl.py
@@ -146,7 +146,14 @@ class Property(Node):
146 __syntax__ = (146 __syntax__ = (
147 p.Word(p.alphanums + "-_.").setResultsName("property-name")147 p.Word(p.alphanums + "-_.").setResultsName("property-name")
148 + p.Suppress('=')148 + p.Suppress('=')
149 + p.QuotedString('"').setResultsName("property-value")149 + p.Or([
150 p.Suppress('"')
151 + p.Empty().setParseAction(
152 lambda t: " "
153 ).setResultsName("property-value")
154 + p.Suppress('"'),
155 p.QuotedString('"').setResultsName("property-value")
156 ])
150 ).setResultsName('property')157 ).setResultsName('property')
151158
152159
diff --git a/checkbox_support/parsers/tests/pactl_data/desktop-bionic-t480s.txt b/checkbox_support/parsers/tests/pactl_data/desktop-bionic-t480s.txt
153new file mode 100644160new file mode 100644
index 0000000..012f809
--- /dev/null
+++ b/checkbox_support/parsers/tests/pactl_data/desktop-bionic-t480s.txt
@@ -0,0 +1,1091 @@
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 = "11.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 = "11.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 = "11.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 = "11.1"
36
37Module #4
38 Name: module-switch-on-port-available
39 Argument:
40 Usage counter: n/a
41 Properties:
42
43
44Module #5
45 Name: module-switch-on-connect
46 Argument:
47 Usage counter: n/a
48 Properties:
49 module.author = "Michael Terry"
50 module.description = "When a sink/source is added, switch to it or conditionally switch to it"
51 module.version = "11.1"
52
53Module #6
54 Name: module-udev-detect
55 Argument:
56 Usage counter: n/a
57 Properties:
58 module.author = "Lennart Poettering"
59 module.description = "Detect available audio hardware and load matching drivers"
60 module.version = "11.1"
61
62Module #9
63 Name: module-alsa-card
64 Argument: device_id="0" name="pci-0000_00_1f.3" card_name="alsa_card.pci-0000_00_1f.3" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
65 Usage counter: 1
66 Properties:
67 module.author = "Lennart Poettering"
68 module.description = "ALSA Card"
69 module.version = "11.1"
70
71Module #10
72 Name: module-bluetooth-policy
73 Argument:
74 Usage counter: n/a
75 Properties:
76 module.author = "Frédéric Dalleau, Pali Rohár"
77 module.description = "Policy module to make using bluetooth devices out-of-the-box easier"
78 module.version = "11.1"
79
80Module #11
81 Name: module-bluetooth-discover
82 Argument:
83 Usage counter: n/a
84 Properties:
85 module.author = "João Paulo Rechi Vita"
86 module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
87 module.version = "11.1"
88
89Module #12
90 Name: module-bluez5-discover
91 Argument:
92 Usage counter: n/a
93 Properties:
94 module.author = "João Paulo Rechi Vita"
95 module.description = "Detect available BlueZ 5 Bluetooth audio devices and load BlueZ 5 Bluetooth audio drivers"
96 module.version = "11.1"
97
98Module #13
99 Name: module-native-protocol-unix
100 Argument:
101 Usage counter: n/a
102 Properties:
103 module.author = "Lennart Poettering"
104 module.description = "Native protocol (UNIX sockets)"
105 module.version = "11.1"
106
107Module #14
108 Name: module-default-device-restore
109 Argument:
110 Usage counter: n/a
111 Properties:
112 module.author = "Lennart Poettering"
113 module.description = "Automatically restore the default sink and source"
114 module.version = "11.1"
115
116Module #15
117 Name: module-rescue-streams
118 Argument:
119 Usage counter: n/a
120 Properties:
121 module.author = "Lennart Poettering"
122 module.description = "When a sink/source is removed, try to move its streams to the default sink/source"
123 module.version = "11.1"
124
125Module #16
126 Name: module-always-sink
127 Argument:
128 Usage counter: n/a
129 Properties:
130 module.author = "Colin Guthrie"
131 module.description = "Always keeps at least one sink loaded even if it's a null one"
132 module.version = "11.1"
133
134Module #17
135 Name: module-intended-roles
136 Argument:
137 Usage counter: n/a
138 Properties:
139 module.author = "Lennart Poettering"
140 module.description = "Automatically set device of streams based on intended roles of devices"
141 module.version = "11.1"
142
143Module #18
144 Name: module-suspend-on-idle
145 Argument:
146 Usage counter: n/a
147 Properties:
148 module.author = "Lennart Poettering"
149 module.description = "When a sink/source is idle for too long, suspend it"
150 module.version = "11.1"
151
152Module #19
153 Name: module-console-kit
154 Argument:
155 Usage counter: n/a
156 Properties:
157 module.author = "Lennart Poettering"
158 module.description = "Create a client for each ConsoleKit session of this user"
159 module.version = "11.1"
160
161Module #20
162 Name: module-systemd-login
163 Argument:
164 Usage counter: n/a
165 Properties:
166 module.author = "Lennart Poettering"
167 module.description = "Create a client for each login session of this user"
168 module.version = "11.1"
169
170Module #21
171 Name: module-position-event-sounds
172 Argument:
173 Usage counter: n/a
174 Properties:
175 module.author = "Lennart Poettering"
176 module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
177 module.version = "11.1"
178
179Module #22
180 Name: module-role-cork
181 Argument:
182 Usage counter: n/a
183 Properties:
184 module.author = "Lennart Poettering"
185 module.description = "Mute & cork streams with certain roles while others exist"
186 module.version = "11.1"
187
188Module #23
189 Name: module-filter-heuristics
190 Argument:
191 Usage counter: n/a
192 Properties:
193 module.author = "Colin Guthrie"
194 module.description = "Detect when various filters are desirable"
195 module.version = "11.1"
196
197Module #24
198 Name: module-filter-apply
199 Argument:
200 Usage counter: n/a
201 Properties:
202 module.author = "Colin Guthrie"
203 module.description = "Load filter sinks automatically when needed"
204 module.version = "11.1"
205
206Module #25
207 Name: module-x11-publish
208 Argument: display=:0
209 Usage counter: n/a
210 Properties:
211 module.author = "Lennart Poettering"
212 module.description = "X11 credential publisher"
213 module.version = "11.1"
214
215Module #26
216 Name: module-x11-bell
217 Argument: display=:0 sample=bell.ogg
218 Usage counter: n/a
219 Properties:
220 module.author = "Lennart Poettering"
221 module.description = "X11 bell interceptor"
222 module.version = "11.1"
223
224Module #27
225 Name: module-x11-cork-request
226 Argument: display=:0
227 Usage counter: n/a
228 Properties:
229 module.author = "Lennart Poettering"
230 module.description = "Synthesize X11 media key events when cork/uncork is requested"
231 module.version = "11.1"
232
233Module #28
234 Name: module-x11-xsmp
235 Argument: display=:0 session_manager=local/sylvain-ThinkPad-T480s:@/tmp/.ICE-unix/3960,unix/sylvain-ThinkPad-T480s:/tmp/.ICE-unix/3960
236 Usage counter: n/a
237 Properties:
238 module.author = "Lennart Poettering"
239 module.description = "X11 session management"
240 module.version = "11.1"
241
242Module #31
243 Name: module-alsa-card
244 Argument: device_id="1" name="usb-Logitech_Logitech_B530_USB_Headset-00" card_name="alsa_card.usb-Logitech_Logitech_B530_USB_Headset-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
245 Usage counter: 0
246 Properties:
247 module.author = "Lennart Poettering"
248 module.description = "ALSA Card"
249 module.version = "11.1"
250
251Module #32
252 Name: module-alsa-card
253 Argument: device_id="2" name="usb-046d_HD_Pro_Webcam_C920_73BD39DF-02" card_name="alsa_card.usb-046d_HD_Pro_Webcam_C920_73BD39DF-02" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
254 Usage counter: 0
255 Properties:
256 module.author = "Lennart Poettering"
257 module.description = "ALSA Card"
258 module.version = "11.1"
259
260Module #33
261 Name: module-cli-protocol-unix
262 Argument:
263 Usage counter: n/a
264 Properties:
265 module.author = "Lennart Poettering"
266 module.description = "Command line interface protocol (UNIX sockets)"
267 module.version = "11.1"
268
269Sink #4
270 State: SUSPENDED
271 Name: alsa_output.usb-Logitech_Logitech_B530_USB_Headset-00.iec958-stereo
272 Description: Logitech B530 USB Headset Digital Stereo (IEC958)
273 Driver: module-alsa-card.c
274 Sample Specification: s16le 2ch 48000Hz
275 Channel Map: front-left,front-right
276 Owner Module: 31
277 Mute: no
278 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
279 balance 0.00
280 Base Volume: 65536 / 100% / 0.00 dB
281 Monitor Source: alsa_output.usb-Logitech_Logitech_B530_USB_Headset-00.iec958-stereo.monitor
282 Latency: 0 usec, configured 0 usec
283 Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
284 Properties:
285 alsa.resolution_bits = "16"
286 device.api = "alsa"
287 device.class = "sound"
288 alsa.class = "generic"
289 alsa.subclass = "generic-mix"
290 alsa.name = "USB Audio"
291 alsa.id = "USB Audio"
292 alsa.subdevice = "0"
293 alsa.subdevice_name = "subdevice #0"
294 alsa.device = "0"
295 alsa.card = "1"
296 alsa.card_name = "Logitech B530 USB Headset"
297 alsa.long_card_name = "Logitech Logitech B530 USB Headset at usb-0000:3c:00.0-1.1.4, full speed"
298 alsa.driver_name = "snd_usb_audio"
299 device.bus_path = "pci-0000:3c:00.0-usb-0:1.1.4:1.0"
300 sysfs.path = "/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.0/sound/card1"
301 udev.id = "usb-Logitech_Logitech_B530_USB_Headset-00"
302 device.bus = "usb"
303 device.vendor.id = "046d"
304 device.vendor.name = "Logitech, Inc."
305 device.product.id = "0a26"
306 device.product.name = "Logitech B530 USB Headset"
307 device.serial = "Logitech_Logitech_B530_USB_Headset"
308 device.form_factor = "headset"
309 device.string = "iec958:1"
310 device.buffering.buffer_size = "352800"
311 device.buffering.fragment_size = "176400"
312 device.access_mode = "mmap+timer"
313 device.profile.name = "iec958-stereo"
314 device.profile.description = "Digital Stereo (IEC958)"
315 device.description = "Logitech B530 USB Headset Digital Stereo (IEC958)"
316 alsa.mixer_name = "USB Mixer"
317 alsa.components = "USB046d:0a26"
318 module-udev-detect.discovered = "1"
319 device.icon_name = "audio-headset-usb"
320 device.intended_roles = "phone"
321 Ports:
322 iec958-stereo-output: Digital Output (S/PDIF) (priority: 0)
323 Active Port: iec958-stereo-output
324 Formats:
325 pcm
326
327Sink #25
328 State: SUSPENDED
329 Name: alsa_output.pci-0000_00_1f.3.hdmi-stereo
330 Description: Built-in Audio Digital Stereo (HDMI)
331 Driver: module-alsa-card.c
332 Sample Specification: s16le 2ch 44100Hz
333 Channel Map: front-left,front-right
334 Owner Module: 9
335 Mute: no
336 Volume: front-left: 20971 / 32% / -29.69 dB, front-right: 20971 / 32% / -29.69 dB
337 balance 0.00
338 Base Volume: 65536 / 100% / 0.00 dB
339 Monitor Source: alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor
340 Latency: 0 usec, configured 0 usec
341 Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
342 Properties:
343 alsa.resolution_bits = "16"
344 device.api = "alsa"
345 device.class = "sound"
346 alsa.class = "generic"
347 alsa.subclass = "generic-mix"
348 alsa.name = "HDMI 0"
349 alsa.id = "HDMI 0"
350 alsa.subdevice = "0"
351 alsa.subdevice_name = "subdevice #0"
352 alsa.device = "3"
353 alsa.card = "0"
354 alsa.card_name = "HDA Intel PCH"
355 alsa.long_card_name = "HDA Intel PCH at 0xe8248000 irq 157"
356 alsa.driver_name = "snd_hda_intel"
357 device.bus_path = "pci-0000:00:1f.3"
358 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
359 device.bus = "pci"
360 device.vendor.id = "8086"
361 device.vendor.name = "Intel Corporation"
362 device.product.id = "9d71"
363 device.product.name = "Sunrise Point-LP HD Audio"
364 device.form_factor = "internal"
365 device.string = "hdmi:0"
366 device.buffering.buffer_size = "65536"
367 device.buffering.fragment_size = "32768"
368 device.access_mode = "mmap+timer"
369 device.profile.name = "hdmi-stereo"
370 device.profile.description = "Digital Stereo (HDMI)"
371 device.description = "Built-in Audio Digital Stereo (HDMI)"
372 alsa.mixer_name = "Realtek ALC257"
373 alsa.components = "HDA:10ec0257,17aa2258,00100001 HDA:8086280b,80860101,00100000"
374 module-udev-detect.discovered = "1"
375 device.icon_name = "audio-card-pci"
376 Ports:
377 hdmi-output-0: HDMI / DisplayPort (priority: 5900, available)
378 Active Port: hdmi-output-0
379 Formats:
380 pcm
381
382Source #4
383 State: SUSPENDED
384 Name: alsa_input.pci-0000_00_1f.3.analog-stereo
385 Description: Built-in Audio Analog Stereo
386 Driver: module-alsa-card.c
387 Sample Specification: s16le 2ch 44100Hz
388 Channel Map: front-left,front-right
389 Owner Module: 9
390 Mute: no
391 Volume: front-left: 32768 / 50% / -18.06 dB, front-right: 32768 / 50% / -18.06 dB
392 balance 0.00
393 Base Volume: 6554 / 10% / -60.00 dB
394 Monitor of Sink: n/a
395 Latency: 0 usec, configured 0 usec
396 Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
397 Properties:
398 alsa.resolution_bits = "16"
399 device.api = "alsa"
400 device.class = "sound"
401 alsa.class = "generic"
402 alsa.subclass = "generic-mix"
403 alsa.name = "ALC257 Analog"
404 alsa.id = "ALC257 Analog"
405 alsa.subdevice = "0"
406 alsa.subdevice_name = "subdevice #0"
407 alsa.device = "0"
408 alsa.card = "0"
409 alsa.card_name = "HDA Intel PCH"
410 alsa.long_card_name = "HDA Intel PCH at 0xe8248000 irq 157"
411 alsa.driver_name = "snd_hda_intel"
412 device.bus_path = "pci-0000:00:1f.3"
413 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
414 device.bus = "pci"
415 device.vendor.id = "8086"
416 device.vendor.name = "Intel Corporation"
417 device.product.id = "9d71"
418 device.product.name = "Sunrise Point-LP HD Audio"
419 device.form_factor = "internal"
420 device.string = "front:0"
421 device.buffering.buffer_size = "65536"
422 device.buffering.fragment_size = "32768"
423 device.access_mode = "mmap+timer"
424 device.profile.name = "analog-stereo"
425 device.profile.description = "Analog Stereo"
426 device.description = "Built-in Audio Analog Stereo"
427 alsa.mixer_name = "Realtek ALC257"
428 alsa.components = "HDA:10ec0257,17aa2258,00100001 HDA:8086280b,80860101,00100000"
429 module-udev-detect.discovered = "1"
430 device.icon_name = "audio-card-pci"
431 Ports:
432 analog-input-internal-mic: Internal Microphone (priority: 8900)
433 analog-input-mic: Microphone (priority: 8700, not available)
434 Active Port: analog-input-internal-mic
435 Formats:
436 pcm
437
438Source #8
439 State: SUSPENDED
440 Name: alsa_output.usb-Logitech_Logitech_B530_USB_Headset-00.iec958-stereo.monitor
441 Description: Monitor of Logitech B530 USB Headset Digital Stereo (IEC958)
442 Driver: module-alsa-card.c
443 Sample Specification: s16le 2ch 48000Hz
444 Channel Map: front-left,front-right
445 Owner Module: 31
446 Mute: no
447 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
448 balance 0.00
449 Base Volume: 65536 / 100% / 0.00 dB
450 Monitor of Sink: alsa_output.usb-Logitech_Logitech_B530_USB_Headset-00.iec958-stereo
451 Latency: 0 usec, configured 0 usec
452 Flags: DECIBEL_VOLUME LATENCY
453 Properties:
454 device.description = "Monitor of Logitech B530 USB Headset Digital Stereo (IEC958)"
455 device.class = "monitor"
456 alsa.card = "1"
457 alsa.card_name = "Logitech B530 USB Headset"
458 alsa.long_card_name = "Logitech Logitech B530 USB Headset at usb-0000:3c:00.0-1.1.4, full speed"
459 alsa.driver_name = "snd_usb_audio"
460 device.bus_path = "pci-0000:3c:00.0-usb-0:1.1.4:1.0"
461 sysfs.path = "/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.0/sound/card1"
462 udev.id = "usb-Logitech_Logitech_B530_USB_Headset-00"
463 device.bus = "usb"
464 device.vendor.id = "046d"
465 device.vendor.name = "Logitech, Inc."
466 device.product.id = "0a26"
467 device.product.name = "Logitech B530 USB Headset"
468 device.serial = "Logitech_Logitech_B530_USB_Headset"
469 device.form_factor = "headset"
470 device.string = "1"
471 module-udev-detect.discovered = "1"
472 device.icon_name = "audio-headset-usb"
473 device.intended_roles = "phone"
474 Formats:
475 pcm
476
477Source #9
478 State: SUSPENDED
479 Name: alsa_input.usb-Logitech_Logitech_B530_USB_Headset-00.analog-mono
480 Description: Logitech B530 USB Headset Analog Mono
481 Driver: module-alsa-card.c
482 Sample Specification: s16le 1ch 44100Hz
483 Channel Map: mono
484 Owner Module: 31
485 Mute: no
486 Volume: mono: 65536 / 100% / 0.00 dB
487 balance 0.00
488 Base Volume: 25108 / 38% / -25.00 dB
489 Monitor of Sink: n/a
490 Latency: 0 usec, configured 0 usec
491 Flags: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
492 Properties:
493 alsa.resolution_bits = "16"
494 device.api = "alsa"
495 device.class = "sound"
496 alsa.class = "generic"
497 alsa.subclass = "generic-mix"
498 alsa.name = "USB Audio"
499 alsa.id = "USB Audio"
500 alsa.subdevice = "0"
501 alsa.subdevice_name = "subdevice #0"
502 alsa.device = "0"
503 alsa.card = "1"
504 alsa.card_name = "Logitech B530 USB Headset"
505 alsa.long_card_name = "Logitech Logitech B530 USB Headset at usb-0000:3c:00.0-1.1.4, full speed"
506 alsa.driver_name = "snd_usb_audio"
507 device.bus_path = "pci-0000:3c:00.0-usb-0:1.1.4:1.0"
508 sysfs.path = "/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.0/sound/card1"
509 udev.id = "usb-Logitech_Logitech_B530_USB_Headset-00"
510 device.bus = "usb"
511 device.vendor.id = "046d"
512 device.vendor.name = "Logitech, Inc."
513 device.product.id = "0a26"
514 device.product.name = "Logitech B530 USB Headset"
515 device.serial = "Logitech_Logitech_B530_USB_Headset"
516 device.form_factor = "headset"
517 device.string = "hw:1"
518 device.buffering.buffer_size = "176400"
519 device.buffering.fragment_size = "88200"
520 device.access_mode = "mmap+timer"
521 device.profile.name = "analog-mono"
522 device.profile.description = "Analog Mono"
523 device.description = "Logitech B530 USB Headset Analog Mono"
524 alsa.mixer_name = "USB Mixer"
525 alsa.components = "USB046d:0a26"
526 module-udev-detect.discovered = "1"
527 device.icon_name = "audio-headset-usb"
528 device.intended_roles = "phone"
529 Ports:
530 analog-input-headset-mic: Headset Microphone (priority: 8800)
531 Active Port: analog-input-headset-mic
532 Formats:
533 pcm
534
535Source #10
536 State: SUSPENDED
537 Name: alsa_input.usb-046d_HD_Pro_Webcam_C920_73BD39DF-02.analog-stereo
538 Description: HD Pro Webcam C920 Analog Stereo
539 Driver: module-alsa-card.c
540 Sample Specification: s16le 2ch 32000Hz
541 Channel Map: front-left,front-right
542 Owner Module: 32
543 Mute: no
544 Volume: front-left: 41287 / 63% / -12.04 dB, front-right: 41287 / 63% / -12.04 dB
545 balance 0.00
546 Base Volume: 9619 / 15% / -50.00 dB
547 Monitor of Sink: n/a
548 Latency: 0 usec, configured 0 usec
549 Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
550 Properties:
551 alsa.resolution_bits = "16"
552 device.api = "alsa"
553 device.class = "sound"
554 alsa.class = "generic"
555 alsa.subclass = "generic-mix"
556 alsa.name = "USB Audio"
557 alsa.id = "USB Audio"
558 alsa.subdevice = "0"
559 alsa.subdevice_name = "subdevice #0"
560 alsa.device = "0"
561 alsa.card = "2"
562 alsa.card_name = "HD Pro Webcam C920"
563 alsa.long_card_name = "HD Pro Webcam C920 at usb-0000:3c:00.0-1.2, high speed"
564 alsa.driver_name = "snd_usb_audio"
565 device.bus_path = "pci-0000:3c:00.0-usb-0:1.2:1.2"
566 sysfs.path = "/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.2/3-1.2:1.2/sound/card2"
567 udev.id = "usb-046d_HD_Pro_Webcam_C920_73BD39DF-02"
568 device.bus = "usb"
569 device.vendor.id = "046d"
570 device.vendor.name = "Logitech, Inc."
571 device.product.id = "082d"
572 device.product.name = "HD Pro Webcam C920"
573 device.serial = "046d_HD_Pro_Webcam_C920_73BD39DF"
574 device.form_factor = "webcam"
575 device.string = "front:2"
576 device.buffering.buffer_size = "256000"
577 device.buffering.fragment_size = "128000"
578 device.access_mode = "mmap+timer"
579 device.profile.name = "analog-stereo"
580 device.profile.description = "Analog Stereo"
581 device.description = "HD Pro Webcam C920 Analog Stereo"
582 alsa.mixer_name = "USB Mixer"
583 alsa.components = "USB046d:082d"
584 module-udev-detect.discovered = "1"
585 device.icon_name = "camera-web-usb"
586 Ports:
587 analog-input-mic: Microphone (priority: 8700)
588 Active Port: analog-input-mic
589 Formats:
590 pcm
591
592Source #31
593 State: SUSPENDED
594 Name: alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor
595 Description: Monitor of Built-in Audio Digital Stereo (HDMI)
596 Driver: module-alsa-card.c
597 Sample Specification: s16le 2ch 44100Hz
598 Channel Map: front-left,front-right
599 Owner Module: 9
600 Mute: no
601 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
602 balance 0.00
603 Base Volume: 65536 / 100% / 0.00 dB
604 Monitor of Sink: alsa_output.pci-0000_00_1f.3.hdmi-stereo
605 Latency: 0 usec, configured 0 usec
606 Flags: DECIBEL_VOLUME LATENCY
607 Properties:
608 device.description = "Monitor of Built-in Audio Digital Stereo (HDMI)"
609 device.class = "monitor"
610 alsa.card = "0"
611 alsa.card_name = "HDA Intel PCH"
612 alsa.long_card_name = "HDA Intel PCH at 0xe8248000 irq 157"
613 alsa.driver_name = "snd_hda_intel"
614 device.bus_path = "pci-0000:00:1f.3"
615 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
616 device.bus = "pci"
617 device.vendor.id = "8086"
618 device.vendor.name = "Intel Corporation"
619 device.product.id = "9d71"
620 device.product.name = "Sunrise Point-LP HD Audio"
621 device.form_factor = "internal"
622 device.string = "0"
623 module-udev-detect.discovered = "1"
624 device.icon_name = "audio-card-pci"
625 Formats:
626 pcm
627
628Sink Input #146
629 Driver: protocol-native.c
630 Owner Module: 13
631 Client: 145
632 Sink: 25
633 Sample Specification: float32le 2ch 48000Hz
634 Channel Map: front-left,front-right
635 Format: pcm, format.sample_format = "\"float32le\"" format.rate = "48000" format.channels = "2" format.channel_map = "\"front-left,front-right\""
636 Corked: yes
637 Mute: no
638 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
639 balance 0.00
640 Buffer Latency: 82666 usec
641 Sink Latency: 0 usec
642 Resample method: speex-float-1
643 Properties:
644 media.name = "AudioStream"
645 application.name = "AudioIPC Server"
646 native-protocol.peer = "UNIX socket client"
647 native-protocol.version = "32"
648 application.process.id = "4556"
649 application.process.user = "sylvain"
650 application.process.host = "sylvain-ThinkPad-T480s"
651 application.process.binary = "firefox"
652 application.language = "en_US.UTF-8"
653 window.x11.display = ":0"
654 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
655 application.process.session_id = "2"
656 application.icon_name = "firefox"
657 module-stream-restore.id = "sink-input-by-application-name:AudioIPC Server"
658
659Client #0
660 Driver: module-systemd-login.c
661 Owner Module: 20
662 Properties:
663 application.name = "Login Session 2"
664 systemd-login.session = "2"
665
666Client #1
667 Driver: protocol-native.c
668 Owner Module: 13
669 Properties:
670 application.name = "GNOME Shell"
671 native-protocol.peer = "UNIX socket client"
672 native-protocol.version = "32"
673 application.id = "org.gnome.Shell"
674 application.icon_name = "start-here"
675 application.language = "en_US.UTF-8"
676 window.x11.screen = "0"
677 window.x11.display = ":0"
678 application.process.id = "4094"
679 application.process.user = "sylvain"
680 application.process.host = "sylvain-ThinkPad-T480s"
681 application.process.binary = "gnome-shell"
682 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
683 application.process.session_id = "2"
684
685Client #2
686 Driver: protocol-native.c
687 Owner Module: 13
688 Properties:
689 application.name = "GNOME Shell Volume Control"
690 native-protocol.peer = "UNIX socket client"
691 native-protocol.version = "32"
692 application.id = "org.gnome.VolumeControl"
693 application.icon_name = "multimedia-volume-control"
694 application.version = "3.28.1"
695 application.process.id = "4094"
696 application.process.user = "sylvain"
697 application.process.host = "sylvain-ThinkPad-T480s"
698 application.process.binary = "gnome-shell"
699 application.language = "en_US.UTF-8"
700 window.x11.display = ":0"
701 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
702 application.process.session_id = "2"
703
704Client #8
705 Driver: module-x11-xsmp.c
706 Owner Module: 28
707 Properties:
708 application.name = "XSMP Session on gnome-session as 10167292ea9a2a8033152640059132540200000039600058"
709 xsmp.vendor = "gnome-session"
710 xsmp.client.id = "10167292ea9a2a8033152640059132540200000039600058"
711
712Client #9
713 Driver: protocol-native.c
714 Owner Module: 13
715 Properties:
716 application.name = "GNOME Volume Control Media Keys"
717 native-protocol.peer = "UNIX socket client"
718 native-protocol.version = "32"
719 application.id = "org.gnome.VolumeControl"
720 application.icon_name = "multimedia-volume-control"
721 application.version = ""
722 application.process.id = "4266"
723 application.process.user = "sylvain"
724 application.process.host = "sylvain-ThinkPad-T480s"
725 application.process.binary = "gsd-media-keys"
726 application.language = "en_US.UTF-8"
727 window.x11.display = ":0"
728 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
729 application.process.session_id = "2"
730
731Client #20
732 Driver: protocol-native.c
733 Owner Module: 13
734 Properties:
735 application.name = "Firefox"
736 native-protocol.peer = "UNIX socket client"
737 native-protocol.version = "32"
738 application.icon_name = "firefox"
739 application.version = "60.0"
740 application.process.id = "4556"
741 application.process.user = "sylvain"
742 application.process.host = "sylvain-ThinkPad-T480s"
743 application.process.binary = "firefox"
744 application.language = "en_US.UTF-8"
745 window.x11.display = ":0"
746 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
747 application.process.session_id = "2"
748
749Client #34
750 Driver: protocol-native.c
751 Owner Module: 13
752 Properties:
753 application.name = "gsd-power"
754 native-protocol.peer = "UNIX socket client"
755 native-protocol.version = "32"
756 window.x11.display = ":0"
757 window.x11.screen = "0"
758 application.process.id = "4200"
759 application.process.user = "sylvain"
760 application.process.host = "sylvain-ThinkPad-T480s"
761 application.process.binary = "gsd-power"
762 application.language = "en_US.UTF-8"
763 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
764 application.process.session_id = "2"
765
766Client #85
767 Driver: protocol-native.c
768 Owner Module: 13
769 Properties:
770 application.name = "VMware"
771 native-protocol.peer = "UNIX socket client"
772 native-protocol.version = "32"
773 application.process.id = "14552"
774 application.process.user = "sylvain"
775 application.process.host = "sylvain-ThinkPad-T480s"
776 application.process.binary = "vmware-vmx"
777 application.language = "C"
778 window.x11.display = ":0"
779 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
780 application.process.session_id = "2"
781
782Client #145
783 Driver: protocol-native.c
784 Owner Module: 13
785 Properties:
786 application.name = "AudioIPC Server"
787 native-protocol.peer = "UNIX socket client"
788 native-protocol.version = "32"
789 application.process.id = "4556"
790 application.process.user = "sylvain"
791 application.process.host = "sylvain-ThinkPad-T480s"
792 application.process.binary = "firefox"
793 application.language = "en_US.UTF-8"
794 window.x11.display = ":0"
795 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
796 application.process.session_id = "2"
797 application.icon_name = "firefox"
798
799Client #146
800 Driver: protocol-native.c
801 Owner Module: 13
802 Properties:
803 application.name = "libcanberra"
804 native-protocol.peer = "UNIX socket client"
805 native-protocol.version = "32"
806 application.version = "0.30"
807 application.id = "org.freedesktop.libcanberra"
808 application.process.id = "4266"
809 application.process.user = "sylvain"
810 application.process.host = "sylvain-ThinkPad-T480s"
811 application.process.binary = "gsd-media-keys"
812 application.language = "en_US.UTF-8"
813 window.x11.display = ":0"
814 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
815 application.process.session_id = "2"
816
817Client #242
818 Driver: protocol-native.c
819 Owner Module: 13
820 Properties:
821 application.name = "pactl"
822 native-protocol.peer = "UNIX socket client"
823 native-protocol.version = "32"
824 application.process.id = "7141"
825 application.process.user = "sylvain"
826 application.process.host = "sylvain-ThinkPad-T480s"
827 application.process.binary = "pactl"
828 application.language = "C"
829 window.x11.display = ":0"
830 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
831 application.process.session_id = "2"
832
833Sample #0
834 Name: bell.ogg
835 Sample Specification: float32le 1ch 44100Hz
836 Channel Map: mono
837 Volume: (invalid)
838 balance 0.00
839 Duration: 0.2s
840 Size: 34.5 KiB
841 Lazy: no
842 Filename: n/a
843 Properties:
844 media.role = "event"
845 media.name = "bell.ogg"
846 application.name = "pactl"
847 native-protocol.peer = "UNIX socket client"
848 native-protocol.version = "32"
849 application.process.id = "4216"
850 application.process.user = "sylvain"
851 application.process.host = "sylvain-ThinkPad-T480s"
852 application.process.binary = "pactl"
853 application.language = "en_US.UTF-8"
854 window.x11.display = ":0"
855 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
856 application.process.session_id = "2"
857
858Sample #1
859 Name: bell-window-system
860 Sample Specification: s16le 1ch 44100Hz
861 Channel Map: mono
862 Volume: (invalid)
863 balance 0.00
864 Duration: 0.2s
865 Size: 17.2 KiB
866 Lazy: no
867 Filename: n/a
868 Properties:
869 media.role = "event"
870 application.process.id = "4494"
871 application.name = "gnome-terminal-server"
872 event.description = "Bell event"
873 event.id = "bell-window-system"
874 media.name = "bell-window-system"
875 media.filename = "/usr/share/sounds/ubuntu/stereo/bell.ogg"
876 native-protocol.peer = "UNIX socket client"
877 native-protocol.version = "32"
878 application.id = "org.gnome.Shell"
879 application.icon_name = "start-here"
880 application.language = "en_US.UTF-8"
881 window.x11.screen = "0"
882 window.x11.display = ":0"
883 application.process.user = "sylvain"
884 application.process.host = "sylvain-ThinkPad-T480s"
885 application.process.binary = "gnome-shell"
886 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
887 application.process.session_id = "2"
888
889Sample #2
890 Name: audio-volume-change
891 Sample Specification: s16le 2ch 44100Hz
892 Channel Map: front-left,front-right
893 Volume: (invalid)
894 balance 0.00
895 Duration: 0.1s
896 Size: 11.5 KiB
897 Lazy: no
898 Filename: n/a
899 Properties:
900 media.role = "event"
901 event.description = "volume changed through key press"
902 event.id = "audio-volume-change"
903 media.name = "audio-volume-change"
904 media.filename = "/usr/share/sounds/freedesktop/stereo/audio-volume-change.oga"
905 application.name = "libcanberra"
906 native-protocol.peer = "UNIX socket client"
907 native-protocol.version = "32"
908 application.version = "0.30"
909 application.id = "org.freedesktop.libcanberra"
910 application.process.id = "4266"
911 application.process.user = "sylvain"
912 application.process.host = "sylvain-ThinkPad-T480s"
913 application.process.binary = "gsd-media-keys"
914 application.language = "en_US.UTF-8"
915 window.x11.display = ":0"
916 application.process.machine_id = "a6473731289c4a769090fcea4c1eaca4"
917 application.process.session_id = "2"
918
919Card #2
920 Name: alsa_card.pci-0000_00_1f.3
921 Driver: module-alsa-card.c
922 Owner Module: 9
923 Properties:
924 alsa.card = "0"
925 alsa.card_name = "HDA Intel PCH"
926 alsa.long_card_name = "HDA Intel PCH at 0xe8248000 irq 157"
927 alsa.driver_name = "snd_hda_intel"
928 device.bus_path = "pci-0000:00:1f.3"
929 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
930 device.bus = "pci"
931 device.vendor.id = "8086"
932 device.vendor.name = "Intel Corporation"
933 device.product.id = "9d71"
934 device.product.name = "Sunrise Point-LP HD Audio"
935 device.form_factor = "internal"
936 device.string = "0"
937 device.description = "Built-in Audio"
938 module-udev-detect.discovered = "1"
939 device.icon_name = "audio-card-pci"
940 Profiles:
941 input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
942 output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
943 output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
944 output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5400, available: yes)
945 output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5460, available: yes)
946 output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5200, available: no)
947 output:hdmi-stereo-extra1+input:analog-stereo: Digital Stereo (HDMI 2) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5260, available: yes)
948 output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
949 output:hdmi-surround-extra1+input:analog-stereo: Digital Surround 5.1 (HDMI 2) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 160, available: yes)
950 output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 100, available: no)
951 output:hdmi-surround71-extra1+input:analog-stereo: Digital Surround 7.1 (HDMI 2) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 160, available: yes)
952 output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5200, available: no)
953 output:hdmi-stereo-extra2+input:analog-stereo: Digital Stereo (HDMI 3) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5260, available: yes)
954 output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
955 output:hdmi-surround-extra2+input:analog-stereo: Digital Surround 5.1 (HDMI 3) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 160, available: yes)
956 output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 100, available: no)
957 output:hdmi-surround71-extra2+input:analog-stereo: Digital Surround 7.1 (HDMI 3) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 160, available: yes)
958 output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5200, available: no)
959 output:hdmi-stereo-extra3+input:analog-stereo: Digital Stereo (HDMI 4) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5260, available: yes)
960 output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 100, available: no)
961 output:hdmi-surround-extra3+input:analog-stereo: Digital Surround 5.1 (HDMI 4) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 160, available: yes)
962 output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 100, available: no)
963 output:hdmi-surround71-extra3+input:analog-stereo: Digital Surround 7.1 (HDMI 4) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 160, available: yes)
964 output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (sinks: 1, sources: 0, priority: 5200, available: no)
965 output:hdmi-stereo-extra4+input:analog-stereo: Digital Stereo (HDMI 5) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5260, available: yes)
966 output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 100, available: no)
967 output:hdmi-surround-extra4+input:analog-stereo: Digital Surround 5.1 (HDMI 5) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 160, available: yes)
968 output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 100, available: no)
969 output:hdmi-surround71-extra4+input:analog-stereo: Digital Surround 7.1 (HDMI 5) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 160, available: yes)
970 off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
971 Active Profile: output:hdmi-stereo+input:analog-stereo
972 Ports:
973 analog-input-internal-mic: Internal Microphone (priority: 8900, latency offset: 0 usec)
974 Properties:
975 device.icon_name = "audio-input-microphone"
976 Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1+input:analog-stereo, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2+input:analog-stereo, output:hdmi-stereo-extra3+input:analog-stereo, output:hdmi-surround-extra3+input:analog-stereo, output:hdmi-surround71-extra3+input:analog-stereo, output:hdmi-stereo-extra4+input:analog-stereo, output:hdmi-surround-extra4+input:analog-stereo, output:hdmi-surround71-extra4+input:analog-stereo
977 analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not available)
978 Properties:
979 device.icon_name = "audio-input-microphone"
980 Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:hdmi-stereo+input:analog-stereo, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1+input:analog-stereo, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2+input:analog-stereo, output:hdmi-stereo-extra3+input:analog-stereo, output:hdmi-surround-extra3+input:analog-stereo, output:hdmi-surround71-extra3+input:analog-stereo, output:hdmi-stereo-extra4+input:analog-stereo, output:hdmi-surround-extra4+input:analog-stereo, output:hdmi-surround71-extra4+input:analog-stereo
981 analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
982 Properties:
983 device.icon_name = "audio-speakers"
984 Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
985 analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec, not available)
986 Properties:
987 device.icon_name = "audio-headphones"
988 Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
989 hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, available)
990 Properties:
991 device.icon_name = "video-display"
992 device.product.name = "DELL U3818DW"
993 Part of profile(s): output:hdmi-stereo, output:hdmi-stereo+input:analog-stereo
994 hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
995 Properties:
996 device.icon_name = "video-display"
997 Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-stereo-extra1+input:analog-stereo, output:hdmi-surround-extra1, output:hdmi-surround-extra1+input:analog-stereo, output:hdmi-surround71-extra1, output:hdmi-surround71-extra1+input:analog-stereo
998 hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
999 Properties:
1000 device.icon_name = "video-display"
1001 Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-stereo-extra2+input:analog-stereo, output:hdmi-surround-extra2, output:hdmi-surround-extra2+input:analog-stereo, output:hdmi-surround71-extra2, output:hdmi-surround71-extra2+input:analog-stereo
1002 hdmi-output-3: HDMI / DisplayPort 4 (priority: 5600, latency offset: 0 usec, not available)
1003 Properties:
1004 device.icon_name = "video-display"
1005 Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-stereo-extra3+input:analog-stereo, output:hdmi-surround-extra3, output:hdmi-surround-extra3+input:analog-stereo, output:hdmi-surround71-extra3, output:hdmi-surround71-extra3+input:analog-stereo
1006 hdmi-output-4: HDMI / DisplayPort 5 (priority: 5500, latency offset: 0 usec, not available)
1007 Properties:
1008 device.icon_name = "video-display"
1009 Part of profile(s): output:hdmi-stereo-extra4, output:hdmi-stereo-extra4+input:analog-stereo, output:hdmi-surround-extra4, output:hdmi-surround-extra4+input:analog-stereo, output:hdmi-surround71-extra4, output:hdmi-surround71-extra4+input:analog-stereo
1010
1011Card #4
1012 Name: alsa_card.usb-Logitech_Logitech_B530_USB_Headset-00
1013 Driver: module-alsa-card.c
1014 Owner Module: 31
1015 Properties:
1016 alsa.card = "1"
1017 alsa.card_name = "Logitech B530 USB Headset"
1018 alsa.long_card_name = "Logitech Logitech B530 USB Headset at usb-0000:3c:00.0-1.1.4, full speed"
1019 alsa.driver_name = "snd_usb_audio"
1020 device.bus_path = "pci-0000:3c:00.0-usb-0:1.1.4:1.0"
1021 sysfs.path = "/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.0/sound/card1"
1022 udev.id = "usb-Logitech_Logitech_B530_USB_Headset-00"
1023 device.bus = "usb"
1024 device.vendor.id = "046d"
1025 device.vendor.name = "Logitech, Inc."
1026 device.product.id = "0a26"
1027 device.product.name = "Logitech B530 USB Headset"
1028 device.serial = "Logitech_Logitech_B530_USB_Headset"
1029 device.form_factor = "headset"
1030 device.string = "1"
1031 device.description = "Logitech B530 USB Headset"
1032 module-udev-detect.discovered = "1"
1033 device.icon_name = "audio-headset-usb"
1034 device.intended_roles = "phone"
1035 Profiles:
1036 input:analog-mono: Analog Mono Input (sinks: 0, sources: 1, priority: 2, available: yes)
1037 output:analog-mono: Analog Mono Output (sinks: 1, sources: 0, priority: 200, available: yes)
1038 output:analog-mono+input:analog-mono: Analog Mono Duplex (sinks: 1, sources: 1, priority: 202, available: yes)
1039 output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
1040 output:analog-stereo+input:analog-mono: Analog Stereo Output + Analog Mono Input (sinks: 1, sources: 1, priority: 6002, available: yes)
1041 output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority: 5500, available: yes)
1042 output:iec958-stereo+input:analog-mono: Digital Stereo (IEC958) Output + Analog Mono Input (sinks: 1, sources: 1, priority: 5502, available: yes)
1043 off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
1044 Active Profile: output:iec958-stereo+input:analog-mono
1045 Ports:
1046 analog-input-headset-mic: Headset Microphone (priority: 8800, latency offset: 0 usec)
1047 Properties:
1048 device.icon_name = "audio-input-microphone"
1049 Part of profile(s): input:analog-mono, output:analog-mono+input:analog-mono, output:analog-stereo+input:analog-mono, output:iec958-stereo+input:analog-mono
1050 analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec)
1051 Properties:
1052 device.icon_name = "audio-headphones"
1053 Part of profile(s): output:analog-mono, output:analog-mono+input:analog-mono, output:analog-stereo, output:analog-stereo+input:analog-mono
1054 iec958-stereo-output: Digital Output (S/PDIF) (priority: 0, latency offset: 0 usec)
1055 Part of profile(s): output:iec958-stereo, output:iec958-stereo+input:analog-mono
1056
1057Card #5
1058 Name: alsa_card.usb-046d_HD_Pro_Webcam_C920_73BD39DF-02
1059 Driver: module-alsa-card.c
1060 Owner Module: 32
1061 Properties:
1062 alsa.card = "2"
1063 alsa.card_name = "HD Pro Webcam C920"
1064 alsa.long_card_name = "HD Pro Webcam C920 at usb-0000:3c:00.0-1.2, high speed"
1065 alsa.driver_name = "snd_usb_audio"
1066 device.bus_path = "pci-0000:3c:00.0-usb-0:1.2:1.2"
1067 sysfs.path = "/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:02.0/0000:3c:00.0/usb3/3-1/3-1.2/3-1.2:1.2/sound/card2"
1068 udev.id = "usb-046d_HD_Pro_Webcam_C920_73BD39DF-02"
1069 device.bus = "usb"
1070 device.vendor.id = "046d"
1071 device.vendor.name = "Logitech, Inc."
1072 device.product.id = "082d"
1073 device.product.name = "HD Pro Webcam C920"
1074 device.serial = "046d_HD_Pro_Webcam_C920_73BD39DF"
1075 device.form_factor = "webcam"
1076 device.string = "2"
1077 device.description = "HD Pro Webcam C920"
1078 module-udev-detect.discovered = "1"
1079 device.icon_name = "camera-web-usb"
1080 Profiles:
1081 input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
1082 input:iec958-stereo: Digital Stereo (IEC958) Input (sinks: 0, sources: 1, priority: 55, available: yes)
1083 off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
1084 Active Profile: input:analog-stereo
1085 Ports:
1086 analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec)
1087 Properties:
1088 device.icon_name = "audio-input-microphone"
1089 Part of profile(s): input:analog-stereo
1090 iec958-stereo-input: Digital Input (S/PDIF) (priority: 0, latency offset: 0 usec)
1091 Part of profile(s): input:iec958-stereo
diff --git a/checkbox_support/parsers/tests/test_pactl.py b/checkbox_support/parsers/tests/test_pactl.py
index c42a4c6..a3d96dd 100644
--- a/checkbox_support/parsers/tests/test_pactl.py
+++ b/checkbox_support/parsers/tests/test_pactl.py
@@ -625,6 +625,12 @@ class DocumentTests(ParsingTestCase, PactlDataMixIn):
625 )[0]625 )[0]
626 self.assertEqual(len(document.record_list), 34)626 self.assertEqual(len(document.record_list), 34)
627627
628 def test_pactl_list_clients_bionic(self):
629 document = self.assertParses(
630 pactl.Document.Syntax, self.get_text("desktop-bionic-t480s")
631 )[0]
632 self.assertEqual(len(document.record_list), 55)
633
628 def test_pactl_list(self):634 def test_pactl_list(self):
629 document = self.assertParses(635 document = self.assertParses(
630 pactl.Document.Syntax, self.get_text("desktop-precise")636 pactl.Document.Syntax, self.get_text("desktop-precise")

Subscribers

People subscribed via source and target branches