Merge ~sylvain-pineau/checkbox-support:fix-1947114 into checkbox-support:master

Proposed by Sylvain Pineau
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 04e29ebe5dcd06c826780b50c71147d32fd8b868
Merged at revision: 269f83a1e40bc48d603f49bbd0db0572ba329dea
Proposed branch: ~sylvain-pineau/checkbox-support:fix-1947114
Merge into: checkbox-support:master
Diff against target: 877 lines (+848/-1)
3 files modified
checkbox_support/parsers/tests/pactl_data/displayport-monitor-hifi.txt (+838/-0)
checkbox_support/scripts/audio_settings.py (+1/-1)
checkbox_support/scripts/tests/test_audio_settings.py (+9/-0)
Reviewer Review Type Date Requested Status
Jonathan Cave (community) Approve
Review via email: mp+412674@code.launchpad.net

Description of the change

Fixes the linked bug by adding support for the HiFi displayport profile

To post a comment you must log in.
Revision history for this message
Jonathan Cave (jocave) wrote :

LGTM, thank you!

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/tests/pactl_data/displayport-monitor-hifi.txt b/checkbox_support/parsers/tests/pactl_data/displayport-monitor-hifi.txt
0new file mode 1006440new file mode 100644
index 0000000..d6657e3
--- /dev/null
+++ b/checkbox_support/parsers/tests/pactl_data/displayport-monitor-hifi.txt
@@ -0,0 +1,838 @@
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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.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 = "13.99.1"
135
136Module #16
137 Name: module-console-kit
138 Argument:
139 Usage counter: n/a
140 Properties:
141 module.author = "Lennart Poettering"
142 module.description = "Create a client for each ConsoleKit session of this user"
143 module.version = "13.99.1"
144
145Module #17
146 Name: module-systemd-login
147 Argument:
148 Usage counter: n/a
149 Properties:
150 module.author = "Lennart Poettering"
151 module.description = "Create a client for each login session of this user"
152 module.version = "13.99.1"
153
154Module #18
155 Name: module-position-event-sounds
156 Argument:
157 Usage counter: n/a
158 Properties:
159 module.author = "Lennart Poettering"
160 module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
161 module.version = "13.99.1"
162
163Module #19
164 Name: module-role-cork
165 Argument:
166 Usage counter: n/a
167 Properties:
168 module.author = "Lennart Poettering"
169 module.description = "Mute & cork streams with certain roles while others exist"
170 module.version = "13.99.1"
171
172Module #20
173 Name: module-snap-policy
174 Argument:
175 Usage counter: n/a
176 Properties:
177 module.author = "Canonical Ltd"
178 module.description = "Ubuntu Snap policy management"
179 module.version = "13.99.1"
180
181Module #21
182 Name: module-filter-heuristics
183 Argument:
184 Usage counter: n/a
185 Properties:
186 module.author = "Colin Guthrie"
187 module.description = "Detect when various filters are desirable"
188 module.version = "13.99.1"
189
190Module #22
191 Name: module-filter-apply
192 Argument:
193 Usage counter: n/a
194 Properties:
195 module.author = "Colin Guthrie"
196 module.description = "Load filter sinks automatically when needed"
197 module.version = "13.99.1"
198
199Module #23
200 Name: module-alsa-card
201 Argument: device_id="0" 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 = "13.99.1"
207
208Module #24
209 Name: module-x11-publish
210 Argument: display=:0 xauthority=/run/user/1000/gdm/Xauthority
211 Usage counter: n/a
212 Properties:
213 module.author = "Lennart Poettering"
214 module.description = "X11 credential publisher"
215 module.version = "13.99.1"
216
217Module #25
218 Name: module-x11-cork-request
219 Argument: display=:0 xauthority=/run/user/1000/gdm/Xauthority
220 Usage counter: n/a
221 Properties:
222 module.author = "Lennart Poettering"
223 module.description = "Synthesize X11 media key events when cork/uncork is requested"
224 module.version = "13.99.1"
225
226Module #26
227 Name: module-x11-xsmp
228 Argument: display=:0 xauthority=/run/user/1000/gdm/Xauthority session_manager=local/u:@/tmp/.ICE-unix/1639,unix/u:/tmp/.ICE-unix/1639
229 Usage counter: n/a
230 Properties:
231 module.author = "Lennart Poettering"
232 module.description = "X11 session management"
233 module.version = "13.99.1"
234
235Sink #1
236 State: SUSPENDED
237 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink
238 Description: sof-hda-dsp HDMI3/DP3 Output
239 Driver: module-alsa-card.c
240 Sample Specification: s16le 2ch 48000Hz
241 Channel Map: front-left,front-right
242 Owner Module: 23
243 Mute: no
244 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
245 balance 0.00
246 Base Volume: 65536 / 100% / 0.00 dB
247 Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink.monitor
248 Latency: 0 usec, configured 0 usec
249 Flags: HARDWARE DECIBEL_VOLUME LATENCY
250 Properties:
251 alsa.resolution_bits = "16"
252 device.api = "alsa"
253 device.class = "sound"
254 alsa.class = "generic"
255 alsa.subclass = "generic-mix"
256 alsa.name = ""
257 alsa.id = "HDMI3 (*)"
258 alsa.subdevice = "0"
259 alsa.subdevice_name = "subdevice #0"
260 alsa.device = "5"
261 alsa.card = "0"
262 alsa.card_name = "sof-hda-dsp"
263 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
264 alsa.driver_name = "snd_soc_skl_hda_dsp"
265 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
266 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
267 device.bus = "pci"
268 device.vendor.id = "8086"
269 device.vendor.name = "Intel Corporation"
270 device.product.id = "a0c8"
271 device.string = "hw:sofhdadsp,5"
272 device.buffering.buffer_size = "65536"
273 device.buffering.fragment_size = "16384"
274 device.access_mode = "mmap+timer"
275 device.profile.name = "HiFi: hw:sofhdadsp,5: sink"
276 device.profile.description = "HDMI3/DP3 Output"
277 alsa.mixer_device = "hw:sofhdadsp"
278 device.description = "sof-hda-dsp HDMI3/DP3 Output"
279 module-udev-detect.discovered = "1"
280 device.icon_name = "audio-card-pci"
281 Ports:
282 [Out] HDMI3: HDMI3/DP3 Output (priority: 700, not available)
283 Active Port: [Out] HDMI3
284 Formats:
285 pcm
286
287Sink #2
288 State: SUSPENDED
289 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink
290 Description: sof-hda-dsp HDMI2/DP2 Output
291 Driver: module-alsa-card.c
292 Sample Specification: s16le 2ch 48000Hz
293 Channel Map: front-left,front-right
294 Owner Module: 23
295 Mute: no
296 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
297 balance 0.00
298 Base Volume: 65536 / 100% / 0.00 dB
299 Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink.monitor
300 Latency: 0 usec, configured 0 usec
301 Flags: HARDWARE DECIBEL_VOLUME LATENCY
302 Properties:
303 alsa.resolution_bits = "16"
304 device.api = "alsa"
305 device.class = "sound"
306 alsa.class = "generic"
307 alsa.subclass = "generic-mix"
308 alsa.name = ""
309 alsa.id = "HDMI2 (*)"
310 alsa.subdevice = "0"
311 alsa.subdevice_name = "subdevice #0"
312 alsa.device = "4"
313 alsa.card = "0"
314 alsa.card_name = "sof-hda-dsp"
315 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
316 alsa.driver_name = "snd_soc_skl_hda_dsp"
317 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
318 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
319 device.bus = "pci"
320 device.vendor.id = "8086"
321 device.vendor.name = "Intel Corporation"
322 device.product.id = "a0c8"
323 device.string = "hw:sofhdadsp,4"
324 device.buffering.buffer_size = "65536"
325 device.buffering.fragment_size = "16384"
326 device.access_mode = "mmap+timer"
327 device.profile.name = "HiFi: hw:sofhdadsp,4: sink"
328 device.profile.description = "HDMI2/DP2 Output"
329 alsa.mixer_device = "hw:sofhdadsp"
330 device.description = "sof-hda-dsp HDMI2/DP2 Output"
331 module-udev-detect.discovered = "1"
332 device.icon_name = "audio-card-pci"
333 Ports:
334 [Out] HDMI2: HDMI2/DP2 Output (priority: 600, not available)
335 Active Port: [Out] HDMI2
336 Formats:
337 pcm
338
339Sink #3
340 State: SUSPENDED
341 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink
342 Description: sof-hda-dsp HDMI1/DP1 Output
343 Driver: module-alsa-card.c
344 Sample Specification: s16le 2ch 48000Hz
345 Channel Map: front-left,front-right
346 Owner Module: 23
347 Mute: no
348 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
349 balance 0.00
350 Base Volume: 65536 / 100% / 0.00 dB
351 Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink.monitor
352 Latency: 0 usec, configured 0 usec
353 Flags: HARDWARE DECIBEL_VOLUME LATENCY
354 Properties:
355 alsa.resolution_bits = "16"
356 device.api = "alsa"
357 device.class = "sound"
358 alsa.class = "generic"
359 alsa.subclass = "generic-mix"
360 alsa.name = ""
361 alsa.id = "HDMI1 (*)"
362 alsa.subdevice = "0"
363 alsa.subdevice_name = "subdevice #0"
364 alsa.device = "3"
365 alsa.card = "0"
366 alsa.card_name = "sof-hda-dsp"
367 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
368 alsa.driver_name = "snd_soc_skl_hda_dsp"
369 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
370 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
371 device.bus = "pci"
372 device.vendor.id = "8086"
373 device.vendor.name = "Intel Corporation"
374 device.product.id = "a0c8"
375 device.string = "hw:sofhdadsp,3"
376 device.buffering.buffer_size = "65536"
377 device.buffering.fragment_size = "16384"
378 device.access_mode = "mmap+timer"
379 device.profile.name = "HiFi: hw:sofhdadsp,3: sink"
380 device.profile.description = "HDMI1/DP1 Output"
381 alsa.mixer_device = "hw:sofhdadsp"
382 device.description = "sof-hda-dsp HDMI1/DP1 Output"
383 module-udev-detect.discovered = "1"
384 device.icon_name = "audio-card-pci"
385 Ports:
386 [Out] HDMI1: HDMI1/DP1 Output (priority: 500, available)
387 Active Port: [Out] HDMI1
388 Formats:
389 pcm
390
391Sink #4
392 State: SUSPENDED
393 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink
394 Description: sof-hda-dsp Speaker + Headphones
395 Driver: module-alsa-card.c
396 Sample Specification: s16le 2ch 48000Hz
397 Channel Map: front-left,front-right
398 Owner Module: 23
399 Mute: no
400 Volume: front-left: 19944 / 30% / -31.00 dB, front-right: 19944 / 30% / -31.00 dB
401 balance 0.00
402 Base Volume: 65536 / 100% / 0.00 dB
403 Monitor Source: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor
404 Latency: 0 usec, configured 0 usec
405 Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
406 Properties:
407 alsa.resolution_bits = "16"
408 device.api = "alsa"
409 device.class = "sound"
410 alsa.class = "generic"
411 alsa.subclass = "generic-mix"
412 alsa.name = ""
413 alsa.id = "HDA Analog (*)"
414 alsa.subdevice = "0"
415 alsa.subdevice_name = "subdevice #0"
416 alsa.device = "0"
417 alsa.card = "0"
418 alsa.card_name = "sof-hda-dsp"
419 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
420 alsa.driver_name = "snd_soc_skl_hda_dsp"
421 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
422 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
423 device.bus = "pci"
424 device.vendor.id = "8086"
425 device.vendor.name = "Intel Corporation"
426 device.product.id = "a0c8"
427 device.string = "hw:sofhdadsp"
428 device.buffering.buffer_size = "65536"
429 device.buffering.fragment_size = "16384"
430 device.access_mode = "mmap+timer"
431 device.profile.name = "HiFi: hw:sofhdadsp: sink"
432 device.profile.description = "Speaker + Headphones"
433 alsa.mixer_device = "hw:sofhdadsp"
434 device.description = "sof-hda-dsp Speaker + Headphones"
435 module-udev-detect.discovered = "1"
436 device.icon_name = "audio-card-pci"
437 Ports:
438 [Out] Speaker: Speaker (priority: 100)
439 [Out] Headphones: Headphones (priority: 200)
440 Active Port: [Out] Headphones
441 Formats:
442 pcm
443
444Source #1
445 State: SUSPENDED
446 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink.monitor
447 Description: Monitor of sof-hda-dsp HDMI3/DP3 Output
448 Driver: module-alsa-card.c
449 Sample Specification: s16le 2ch 48000Hz
450 Channel Map: front-left,front-right
451 Owner Module: 23
452 Mute: no
453 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
454 balance 0.00
455 Base Volume: 65536 / 100% / 0.00 dB
456 Monitor of Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink
457 Latency: 0 usec, configured 0 usec
458 Flags: DECIBEL_VOLUME LATENCY
459 Properties:
460 device.description = "Monitor of sof-hda-dsp HDMI3/DP3 Output"
461 device.class = "monitor"
462 alsa.card = "0"
463 alsa.card_name = "sof-hda-dsp"
464 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
465 alsa.driver_name = "snd_soc_skl_hda_dsp"
466 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
467 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
468 device.bus = "pci"
469 device.vendor.id = "8086"
470 device.vendor.name = "Intel Corporation"
471 device.product.id = "a0c8"
472 device.string = "0"
473 module-udev-detect.discovered = "1"
474 device.icon_name = "audio-card-pci"
475 Formats:
476 pcm
477
478Source #2
479 State: SUSPENDED
480 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink.monitor
481 Description: Monitor of sof-hda-dsp HDMI2/DP2 Output
482 Driver: module-alsa-card.c
483 Sample Specification: s16le 2ch 48000Hz
484 Channel Map: front-left,front-right
485 Owner Module: 23
486 Mute: no
487 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
488 balance 0.00
489 Base Volume: 65536 / 100% / 0.00 dB
490 Monitor of Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink
491 Latency: 0 usec, configured 0 usec
492 Flags: DECIBEL_VOLUME LATENCY
493 Properties:
494 device.description = "Monitor of sof-hda-dsp HDMI2/DP2 Output"
495 device.class = "monitor"
496 alsa.card = "0"
497 alsa.card_name = "sof-hda-dsp"
498 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
499 alsa.driver_name = "snd_soc_skl_hda_dsp"
500 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
501 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
502 device.bus = "pci"
503 device.vendor.id = "8086"
504 device.vendor.name = "Intel Corporation"
505 device.product.id = "a0c8"
506 device.string = "0"
507 module-udev-detect.discovered = "1"
508 device.icon_name = "audio-card-pci"
509 Formats:
510 pcm
511
512Source #3
513 State: SUSPENDED
514 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink.monitor
515 Description: Monitor of sof-hda-dsp HDMI1/DP1 Output
516 Driver: module-alsa-card.c
517 Sample Specification: s16le 2ch 48000Hz
518 Channel Map: front-left,front-right
519 Owner Module: 23
520 Mute: no
521 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
522 balance 0.00
523 Base Volume: 65536 / 100% / 0.00 dB
524 Monitor of Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink
525 Latency: 0 usec, configured 0 usec
526 Flags: DECIBEL_VOLUME LATENCY
527 Properties:
528 device.description = "Monitor of sof-hda-dsp HDMI1/DP1 Output"
529 device.class = "monitor"
530 alsa.card = "0"
531 alsa.card_name = "sof-hda-dsp"
532 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
533 alsa.driver_name = "snd_soc_skl_hda_dsp"
534 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
535 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
536 device.bus = "pci"
537 device.vendor.id = "8086"
538 device.vendor.name = "Intel Corporation"
539 device.product.id = "a0c8"
540 device.string = "0"
541 module-udev-detect.discovered = "1"
542 device.icon_name = "audio-card-pci"
543 Formats:
544 pcm
545
546Source #4
547 State: SUSPENDED
548 Name: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor
549 Description: Monitor of sof-hda-dsp Speaker + Headphones
550 Driver: module-alsa-card.c
551 Sample Specification: s16le 2ch 48000Hz
552 Channel Map: front-left,front-right
553 Owner Module: 23
554 Mute: no
555 Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
556 balance 0.00
557 Base Volume: 65536 / 100% / 0.00 dB
558 Monitor of Sink: alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink
559 Latency: 0 usec, configured 0 usec
560 Flags: DECIBEL_VOLUME LATENCY
561 Properties:
562 device.description = "Monitor of sof-hda-dsp Speaker + Headphones"
563 device.class = "monitor"
564 alsa.card = "0"
565 alsa.card_name = "sof-hda-dsp"
566 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
567 alsa.driver_name = "snd_soc_skl_hda_dsp"
568 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
569 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
570 device.bus = "pci"
571 device.vendor.id = "8086"
572 device.vendor.name = "Intel Corporation"
573 device.product.id = "a0c8"
574 device.string = "0"
575 module-udev-detect.discovered = "1"
576 device.icon_name = "audio-card-pci"
577 Formats:
578 pcm
579
580Source #5
581 State: SUSPENDED
582 Name: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__source
583 Description: sof-hda-dsp Headphones Stereo Microphone
584 Driver: module-alsa-card.c
585 Sample Specification: s16le 2ch 48000Hz
586 Channel Map: front-left,front-right
587 Owner Module: 23
588 Mute: no
589 Volume: front-left: 32845 / 50% / -18.00 dB, front-right: 32845 / 50% / -18.00 dB
590 balance 0.00
591 Base Volume: 20724 / 32% / -30.00 dB
592 Monitor of Sink: n/a
593 Latency: 0 usec, configured 0 usec
594 Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
595 Properties:
596 alsa.resolution_bits = "16"
597 device.api = "alsa"
598 device.class = "sound"
599 alsa.class = "generic"
600 alsa.subclass = "generic-mix"
601 alsa.name = ""
602 alsa.id = "HDA Analog (*)"
603 alsa.subdevice = "0"
604 alsa.subdevice_name = "subdevice #0"
605 alsa.device = "0"
606 alsa.card = "0"
607 alsa.card_name = "sof-hda-dsp"
608 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
609 alsa.driver_name = "snd_soc_skl_hda_dsp"
610 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
611 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
612 device.bus = "pci"
613 device.vendor.id = "8086"
614 device.vendor.name = "Intel Corporation"
615 device.product.id = "a0c8"
616 device.string = "hw:sofhdadsp"
617 device.buffering.buffer_size = "65536"
618 device.buffering.fragment_size = "16384"
619 device.access_mode = "mmap+timer"
620 device.profile.name = "HiFi: hw:sofhdadsp: source"
621 device.profile.description = "Headphones Stereo Microphone"
622 alsa.mixer_device = "hw:sofhdadsp"
623 device.description = "sof-hda-dsp Headphones Stereo Microphone"
624 module-udev-detect.discovered = "1"
625 device.icon_name = "audio-card-pci"
626 Ports:
627 [In] Mic2: Headphones Stereo Microphone (priority: 200)
628 Active Port: [In] Mic2
629 Formats:
630 pcm
631
632Source #6
633 State: SUSPENDED
634 Name: alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source
635 Description: sof-hda-dsp Digital Microphone
636 Driver: module-alsa-card.c
637 Sample Specification: s16le 4ch 48000Hz
638 Channel Map: front-left,front-right,rear-left,rear-right
639 Owner Module: 23
640 Mute: no
641 Volume: front-left: 29274 / 45% / -21.00 dB, front-right: 29274 / 45% / -21.00 dB, rear-left: 29274 / 45% / -21.00 dB, rear-right: 29274 / 45% / -21.00 dB
642 balance 0.00
643 Base Volume: 30419 / 46% / -20.00 dB
644 Monitor of Sink: n/a
645 Latency: 0 usec, configured 0 usec
646 Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
647 Properties:
648 alsa.resolution_bits = "16"
649 device.api = "alsa"
650 device.class = "sound"
651 alsa.class = "generic"
652 alsa.subclass = "generic-mix"
653 alsa.name = ""
654 alsa.id = "DMIC (*)"
655 alsa.subdevice = "0"
656 alsa.subdevice_name = "subdevice #0"
657 alsa.device = "6"
658 alsa.card = "0"
659 alsa.card_name = "sof-hda-dsp"
660 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
661 alsa.driver_name = "snd_soc_skl_hda_dsp"
662 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
663 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
664 device.bus = "pci"
665 device.vendor.id = "8086"
666 device.vendor.name = "Intel Corporation"
667 device.product.id = "a0c8"
668 device.string = "hw:sofhdadsp,6"
669 device.buffering.buffer_size = "65536"
670 device.buffering.fragment_size = "16384"
671 device.access_mode = "mmap+timer"
672 device.profile.name = "HiFi: hw:sofhdadsp,6: source"
673 device.profile.description = "Digital Microphone"
674 alsa.mixer_device = "hw:sofhdadsp"
675 device.description = "sof-hda-dsp Digital Microphone"
676 module-udev-detect.discovered = "1"
677 device.icon_name = "audio-card-pci"
678 Ports:
679 [In] Mic1: Digital Microphone (priority: 100)
680 Active Port: [In] Mic1
681 Formats:
682 pcm
683
684Client #0
685 Driver: module-systemd-login.c
686 Owner Module: 17
687 Properties:
688 application.name = "Login Session 2"
689 systemd-login.session = "2"
690
691Client #4
692 Driver: module-x11-xsmp.c
693 Owner Module: 26
694 Properties:
695 application.name = "XSMP Session on gnome-session as 10ec6cc64fba7c34fe163729351342406800000016390060"
696 xsmp.vendor = "gnome-session"
697 xsmp.client.id = "10ec6cc64fba7c34fe163729351342406800000016390060"
698
699Client #5
700 Driver: protocol-native.c
701 Owner Module: 10
702 Properties:
703 application.name = "GNOME Shell Volume Control"
704 native-protocol.peer = "UNIX socket client"
705 native-protocol.version = "33"
706 application.id = "org.gnome.VolumeControl"
707 application.icon_name = "multimedia-volume-control"
708 application.version = "3.36.9"
709 application.process.id = "1654"
710 application.process.user = "u"
711 application.process.host = "u"
712 application.process.binary = "gnome-shell"
713 application.language = "en_US.UTF-8"
714 window.x11.display = ":0"
715 application.process.machine_id = "8f6599b170014e7cbecdf0bcdacb19fd"
716
717Client #6
718 Driver: protocol-native.c
719 Owner Module: 10
720 Properties:
721 application.name = "GNOME Volume Control Media Keys"
722 native-protocol.peer = "UNIX socket client"
723 native-protocol.version = "33"
724 application.id = "org.gnome.VolumeControl"
725 application.icon_name = "multimedia-volume-control"
726 application.version = ""
727 application.process.id = "1785"
728 application.process.user = "u"
729 application.process.host = "u"
730 application.process.binary = "gsd-media-keys"
731 application.language = "en_US.UTF-8"
732 window.x11.display = ":0"
733 application.process.machine_id = "8f6599b170014e7cbecdf0bcdacb19fd"
734
735Client #8
736 Driver: protocol-native.c
737 Owner Module: 10
738 Properties:
739 application.name = "Terminal"
740 native-protocol.peer = "UNIX socket client"
741 native-protocol.version = "33"
742 application.icon_name = "org.gnome.Terminal"
743 window.x11.display = ":0"
744 window.x11.screen = "0"
745 application.process.id = "2071"
746 application.process.user = "u"
747 application.process.host = "u"
748 application.process.binary = "gnome-terminal-server"
749 application.language = "en_US.UTF-8"
750 application.process.machine_id = "8f6599b170014e7cbecdf0bcdacb19fd"
751
752Client #11
753 Driver: protocol-native.c
754 Owner Module: 10
755 Properties:
756 application.name = "Mutter"
757 native-protocol.peer = "UNIX socket client"
758 native-protocol.version = "33"
759 application.process.id = "1654"
760 application.process.user = "u"
761 application.process.host = "u"
762 application.process.binary = "gnome-shell"
763 application.language = "en_US.UTF-8"
764 window.x11.display = ":0"
765 application.process.machine_id = "8f6599b170014e7cbecdf0bcdacb19fd"
766
767Client #12
768 Driver: protocol-native.c
769 Owner Module: 10
770 Properties:
771 application.name = "update-manager"
772 native-protocol.peer = "UNIX socket client"
773 native-protocol.version = "33"
774 application.icon_name = "system-software-update"
775 window.x11.display = ":0"
776 window.x11.screen = "0"
777 application.process.id = "2268"
778 application.process.user = "u"
779 application.process.host = "u"
780 application.process.binary = "python3.8"
781 application.language = "en_US.UTF-8"
782 application.process.machine_id = "8f6599b170014e7cbecdf0bcdacb19fd"
783
784Client #13
785 Driver: protocol-native.c
786 Owner Module: 10
787 Properties:
788 application.name = "pactl"
789 native-protocol.peer = "UNIX socket client"
790 native-protocol.version = "33"
791 application.process.id = "2864"
792 application.process.user = "u"
793 application.process.host = "u"
794 application.process.binary = "pactl"
795 application.language = "en_US.UTF-8"
796 window.x11.display = ":0"
797 application.process.machine_id = "8f6599b170014e7cbecdf0bcdacb19fd"
798
799Card #0
800 Name: alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic
801 Driver: module-alsa-card.c
802 Owner Module: 23
803 Properties:
804 alsa.card = "0"
805 alsa.card_name = "sof-hda-dsp"
806 alsa.long_card_name = "AAEON-UPX_TGL01-V1.0"
807 alsa.driver_name = "snd_soc_skl_hda_dsp"
808 device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
809 sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
810 device.bus = "pci"
811 device.vendor.id = "8086"
812 device.vendor.name = "Intel Corporation"
813 device.product.id = "a0c8"
814 device.string = "0"
815 device.description = "sof-hda-dsp"
816 module-udev-detect.discovered = "1"
817 device.icon_name = "audio-card-pci"
818 Profiles:
819 HiFi: Play HiFi quality Music (sinks: 4, sources: 2, priority: 40768, available: yes)
820 off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
821 Active Profile: HiFi
822 Ports:
823 [Out] HDMI3: HDMI3/DP3 Output (priority: 700, latency offset: 0 usec, not available)
824 Part of profile(s): HiFi
825 [Out] HDMI2: HDMI2/DP2 Output (priority: 600, latency offset: 0 usec, not available)
826 Part of profile(s): HiFi
827 [Out] HDMI1: HDMI1/DP1 Output (priority: 500, latency offset: 0 usec, available)
828 Properties:
829 device.product.name = "BenQ EL2870U"
830 Part of profile(s): HiFi
831 [Out] Speaker: Speaker (priority: 100, latency offset: 0 usec)
832 Part of profile(s): HiFi
833 [Out] Headphones: Headphones (priority: 200, latency offset: 0 usec)
834 Part of profile(s): HiFi
835 [In] Mic2: Headphones Stereo Microphone (priority: 200, latency offset: 0 usec)
836 Part of profile(s): HiFi
837 [In] Mic1: Digital Microphone (priority: 100, latency offset: 0 usec)
838 Part of profile(s): HiFi
diff --git a/checkbox_support/scripts/audio_settings.py b/checkbox_support/scripts/audio_settings.py
index 2cf6a3f..1b3974c 100644
--- a/checkbox_support/scripts/audio_settings.py
+++ b/checkbox_support/scripts/audio_settings.py
@@ -123,7 +123,7 @@ def _guess_hdmi_profile(pactl_list):
123 card, port = available_port.popitem()123 card, port = available_port.popitem()
124 # Keep the shortest string in the profile_list including 'stereo'124 # Keep the shortest string in the profile_list including 'stereo'
125 # it will avoid testing 'surround' profiles125 # it will avoid testing 'surround' profiles
126 profile = min([p for p in port.profile_list if ('stereo' in p) or ('Hdmi' in p)], key=len)126 profile = min([p for p in port.profile_list if ('stereo' in p) or ('Hdmi' in p) or ('HiFi' in p)], key=len)
127 logging.info("[ Selected profile ]".center(80, '='))127 logging.info("[ Selected profile ]".center(80, '='))
128 logging.info("Card #{} Profile: {}".format(card, profile))128 logging.info("Card #{} Profile: {}".format(card, profile))
129 return (card, profile)129 return (card, profile)
diff --git a/checkbox_support/scripts/tests/test_audio_settings.py b/checkbox_support/scripts/tests/test_audio_settings.py
index 6a6b0ba..8427a05 100644
--- a/checkbox_support/scripts/tests/test_audio_settings.py
+++ b/checkbox_support/scripts/tests/test_audio_settings.py
@@ -171,6 +171,15 @@ class SetProfileTest(unittest.TestCase, PactlDataMixIn):
171 _guess_hdmi_profile(self.get_text("desktop-bionic-x13")),171 _guess_hdmi_profile(self.get_text("desktop-bionic-x13")),
172 ('0', 'Hdmi2'))172 ('0', 'Hdmi2'))
173173
174 def test_displayport_monitor_hifi(self):
175 """
176 Displayport profiles can be exposed using Hifi
177 """
178 self.assertEqual(
179 _guess_hdmi_profile(self.get_text("displayport-monitor-hifi")),
180 ('0', 'HiFi'))
181
182
174class RegexTest(unittest.TestCase):183class RegexTest(unittest.TestCase):
175184
176 def test_volume_regex_trusty(self):185 def test_volume_regex_trusty(self):

Subscribers

People subscribed via source and target branches