[pulseaudio-discuss] [PATCH] Add HDMI Surround 7.1 profiles

Alexander E. Patrakov patrakov at gmail.com
Wed Jul 16 03:59:18 PDT 2014


15.07.2014 22:28, Alexander E. Patrakov wrote:
> 13.07.2014 18:12, Tanu Kaskinen wrote:
>> Someone (not me, at least any time soon) could write a simple
>> patch that measures and logs (at error level - measurements shouldn't be
>> done at debug log level) the time that the probing takes. Then test it
>> on your development machine, and if the time seems negligible, try also
>> e.g. plugging in a USB sound card to a Raspberry Pi.
>
> Done. See the attachment.

Here is some data from the PC that I have to use at work: 0 = onboard 
analog audio, 1 = NVIDIA HDMI (with 4 outputs, out ow which only one 
corresponds to a physical connector), 2 = Logitech USB Headset H340 
(borrowed from a colleague).

I guess I need to redo the patch, because the numbers don't add up, 
especially for the USB headset. I.e. there is significant latency that 
is not covered by tv_this_profile.


E: [pulseaudio] alsa-mixer.c: Checking for profile input:analog-mono 
took 1787 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile input:analog-stereo 
took 3639 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile input:iec958-stereo 
took 325 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:analog-mono 
took 120 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:analog-stereo 
took 372 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-21 took 24 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-40 took 214 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-41 took 232 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-50 took 228 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-51 took 236 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-71 took 213 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:iec958-stereo 
took 304 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-ac3-surround-40 took 6966 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-ac3-surround-51 took 369 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-dts-surround-51 took 584 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:hdmi-stereo 
took 18385 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:hdmi-surround 
took 23026 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-stereo-extra1 took 35001 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-surround-extra1 took 23027 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-stereo-extra2 took 35028 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-surround-extra2 took 23040 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-stereo-extra3 took 35022 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-surround-extra3 took 22996 usec
E: [pulseaudio] alsa-mixer.c: Checking for all profiles on device 1 took 
255536 usec in total
E: [pulseaudio] alsa-mixer.c: Checking for profile input:analog-mono 
took 808 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile input:analog-stereo 
took 587 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
input:analog-4-channel-input took 737 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile input:iec958-stereo 
took 678 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:analog-mono 
took 734 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:analog-stereo 
took 553 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-stereo+input:analog-stereo took 1600 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-stereo+input:iec958-stereo took 995 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-21 took 84 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-40 took 1693 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-41 took 1080 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-50 took 1091 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-51 took 1063 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-71 took 1049 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:iec958-stereo 
took 615 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-stereo+input:analog-stereo took 2712 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-stereo+input:iec958-stereo took 787 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-ac3-surround-40 took 887 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-ac3-surround-51 took 607 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-dts-surround-51 took 2805 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-dts-surround-51+input:analog-stereo took 559 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-dts-surround-51+input:iec958-stereo took 665 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:hdmi-stereo 
took 323 usec
E: [pulseaudio] alsa-mixer.c: Checking for all profiles on device 2 took 
376117 usec in total
E: [pulseaudio] alsa-mixer.c: Checking for profile input:analog-mono 
took 155533 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile input:analog-stereo 
took 2439 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile input:iec958-stereo 
took 266 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:analog-mono 
took 738 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:analog-stereo 
took 11029 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-stereo+input:analog-stereo took 432 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-21 took 33 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-40 took 8521 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-40+input:analog-stereo took 365 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-41 took 8088 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-41+input:analog-stereo took 490 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-50 took 466 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-50+input:analog-stereo took 251 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-51 took 352 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-51+input:analog-stereo took 288 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:analog-surround-71 took 1969 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:iec958-stereo 
took 2181 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-stereo+input:analog-stereo took 287 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-ac3-surround-40 took 2605 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-ac3-surround-51 took 3015 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-ac3-surround-51+input:analog-stereo took 438 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-dts-surround-51 took 4806 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:iec958-dts-surround-51+input:analog-stereo took 327 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:hdmi-stereo 
took 275 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile output:hdmi-surround 
took 241 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-stereo-extra1 took 218 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-surround-extra1 took 238 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-stereo-extra2 took 220 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-surround-extra2 took 238 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-stereo-extra3 took 251 usec
E: [pulseaudio] alsa-mixer.c: Checking for profile 
output:hdmi-surround-extra3 took 301 usec
E: [pulseaudio] alsa-mixer.c: Checking for all profiles on device 0 took 
214921 usec in total

-- 
Alexander E. Patrakov


More information about the pulseaudio-discuss mailing list