You are not logged in.

#1 2019-01-06 13:55:37

deisi
Member
Registered: 2015-10-21
Posts: 41

HDMI Audio with Stereo Profile

HDMI Audio only works if I use a a 7.1 or 5.1 Digital Surround HDMI profile in pulse audio. This is okay, but I only have two speakers and I wonder what is going on here.

My Setup
[benutzer@serv ~]$ uname -a

Linux serv 4.14.88-1-lts #1 SMP Thu Dec 13 16:16:08 CET 2018 x86_64 GNU/Linux

extra/pulseaudio 12.2-2 [installed]

And I use gnome 3.30.2

I also tried current 4.19 kernel. But I see the same

PC is connected to a Denon AVR-X2400H via HDMI

[benutzer@serv ~]$  cat /proc/asound/card*/eld#0.*

monitor_present		1
eld_valid		1
monitor_name		DENON-AVR
connection_type		HDMI
eld_version		[0x2] CEA-861D or below
edid_version		[0x3] CEA-861-B, C or D
manufacture_id		0xee11
product_id		0x54
port_id			0x0
support_hdcp		0
support_ai		1
audio_sync_delay	0
speakers		[0x5f] FL/FR LFE FC RL/RR RC RLC/RRC
sad_count		7
sad0_coding_type	[0x1] LPCM
sad0_channels		8
sad0_rates		[0x1ee0] 32000 44100 48000 88200 96000 176400 192000
sad0_bits		[0xe0000] 16 20 24
sad1_coding_type	[0x7] DTS
sad1_channels		6
sad1_rates		[0x6c0] 44100 48000 88200 96000
sad1_max_bitrate	1536000
sad2_coding_type	[0x2] AC-3
sad2_channels		6
sad2_rates		[0xe0] 32000 44100 48000
sad2_max_bitrate	640000
sad3_coding_type	[0xb] DTS-HD
sad3_channels		8
sad3_rates		[0x1ec0] 44100 48000 88200 96000 176400 192000
sad4_coding_type	[0xa] E-AC-3/DD+ (Dolby Digital Plus)
sad4_channels		8
sad4_rates		[0xc0] 44100 48000
sad5_coding_type	[0xc] MLP (Dolby TrueHD)
sad5_channels		8
sad5_rates		[0x1ec0] 44100 48000 88200 96000 176400 192000
sad6_coding_type	[0xb] DTS-HD
sad6_channels		8
sad6_rates		[0x1ec0] 44100 48000 88200 96000 176400 192000
monitor_present		0
eld_valid		0
monitor_present		0
eld_valid		0
monitor_present		0
eld_valid		0
monitor_present		0
eld_valid		0
monitor_present		0
eld_valid		0
monitor_present		0
eld_valid		0
monitor_present		0
eld_valid		0
monitor_present		0
eld_valid		0

Sound Card

[benutzer@serv ~]$ pactl list cards 
Card #0
	Name: alsa_card.pci-0000_00_03.0
	Driver: module-alsa-card.c
	Owner Module: 6
	Properties:
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xf7d34000 irq 35"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0c0c"
		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Profiles:
		output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 5900, available: yes)
		output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: yes)
		output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (sinks: 1, sources: 0, priority: 800, available: yes)
		output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-stereo-extra4: Digital Stereo (HDMI 5) Output (sinks: 1, sources: 0, priority: 5700, available: no)
		output:hdmi-surround-extra4: Digital Surround 5.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
		output:hdmi-surround71-extra4: Digital Surround 7.1 (HDMI 5) Output (sinks: 1, sources: 0, priority: 600, available: no)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
	Active Profile: output:hdmi-surround71
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency offset: 0 usec, available)
			Properties:
				device.icon_name = "video-display"
				device.product.name = "DENON-AVR"
			Part of profile(s): output:hdmi-stereo, output:hdmi-surround, output:hdmi-surround71
		hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra1, output:hdmi-surround-extra1, output:hdmi-surround71-extra1
		hdmi-output-2: HDMI / DisplayPort 3 (priority: 5700, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra2, output:hdmi-surround-extra2, output:hdmi-surround71-extra2
		hdmi-output-3: HDMI / DisplayPort 4 (priority: 5600, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra3, output:hdmi-surround-extra3, output:hdmi-surround71-extra3
		hdmi-output-4: HDMI / DisplayPort 5 (priority: 5500, latency offset: 0 usec, not available)
			Properties:
				device.icon_name = "video-display"
			Part of profile(s): output:hdmi-stereo-extra4, output:hdmi-surround-extra4, output:hdmi-surround71-extra4

I changed default sample rate of pulse audio in ~/.config/pulse/daemon.conf  with:

default-sample-rate = 48000
; alternate-sample-rate = 44100

the rest of pulse audio setting is default. I added some sinks and stuff but should not play a role here I think.

Observations

If I select output:hdmi-stereo: I have no audio. Also video gets stuck and doesn't play. However this only happens if alternate-sample-rate = 44100 is set. Once I removed this, video was playing but still no sound.

If I select either output:hdmi-surround or output:hdmi-surround71 sound works, although it works better If I select output:hdmi-surround71 output:hdmi-surround leads to dropouts and at some point delay between video and audio. Same happens for output:hdmi-surround71 but only after some time and it can usually be fixed by changing profile or rebooting. This issue is one of the reasons why I want to understand what is going on here because system works but is not reliable.

Here is the pactl list sinks of the broken stereo setup:

Sink #0
	State: RUNNING
	Name: alsa_output.pci-0000_00_03.0.hdmi-stereo
	Description: Built-in Audio Digital Stereo (HDMI)
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 6
	Mute: no
	Volume: front-left: 65700 / 100% / 0.07 dB,   front-right: 65700 / 100% / 0.07 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_00_03.0.hdmi-stereo.monitor
	Latency: 567892 usec, configured 1576000 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS 
	Properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 0"
		alsa.id = "HDMI 0"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "3"
		alsa.card = "0"
		alsa.card_name = "HDA Intel HDMI"
		alsa.long_card_name = "HDA Intel HDMI at 0xf7d34000 irq 35"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:03.0"
		sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "0c0c"
		device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
		device.form_factor = "internal"
		device.string = "hdmi:0"
		device.buffering.buffer_size = "384000"
		device.buffering.fragment_size = "192000"
		device.access_mode = "mmap+timer"
		device.profile.name = "hdmi-stereo"
		device.profile.description = "Digital Stereo (HDMI)"
		device.description = "Built-in Audio Digital Stereo (HDMI)"
		alsa.mixer_name = "Intel Haswell HDMI"
		alsa.components = "HDA:80862807,80860101,00100000"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, available)
	Active Port: hdmi-output-0
	Formats:
		pcm

If alternate-sample-rate = 44100 was set, this also was set to 44100 in the stereo profile unlike in the case of the below given 7.1. profile. Here it was 48000 no matter the alternate-sample-rate.

Here is the pactl list sinks of the mostly working 7.1 profile

Sink #1
	State: IDLE
	Name: alsa_output.pci-0000_00_1b.0.analog-stereo
	Description: Built-in Audio Analog Stereo
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 7
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
	Latency: 36373 usec, configured 40000 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC887-VD Analog"
		alsa.id = "ALC887-VD Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7d30000 irq 33"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "8c20"
		device.product.name = "8 Series/C220 Series Chipset High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:1"
		device.buffering.buffer_size = "384000"
		device.buffering.fragment_size = "192000"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "Realtek ALC887-VD"
		alsa.components = "HDA:10ec0887,1458fa10,00100302"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Ports:
		analog-output-lineout: Line Out (priority: 9900, available)
		analog-output-speaker: Speakers (priority: 10000, not available)
		analog-output-headphones: Headphones (priority: 9000, not available)
	Active Port: analog-output-lineout
	Formats:
		pcm

So there are quite some differences between the profiles but I cant really make sense of it. In particular the description of the also output up on changing the profile confuses me.
If the description says HDMI, it doesn't work,  if the description says analoge-stereo it works, even though the profile I selected was called 7.1.

Here is also some debug log of pulse audio if I switch to the broken stereo profile during streaming something.

I: [pulseaudio] protocol-native.c: Application "PulseAudio Volume Control" requests card profile change. card = alsa_card.pci-0000_00_03.0, profile = output:hdmi-stereo
D: [pulseaudio] sink-input.c: Starting to move sink input 2 from 'alsa_output.pci-0000_00_03.0.hdmi-surround71'
D: [alsa-sink-HDMI 0] alsa-sink.c: Latency set to 40.00ms
D: [alsa-sink-HDMI 0] alsa-sink.c: hwbuf_unused=1505280
D: [alsa-sink-HDMI 0] alsa-sink.c: setting avail_min=95761
I: [pulseaudio] source-output.c: Freeing output 7 "Peak detect"
D: [alsa-sink-HDMI 0] sink-input.c: Have to rewind 30496 bytes on render memblockq.
D: [alsa-sink-HDMI 0] sink-input.c: Have to rewind 15248 bytes on implementor.
D: [alsa-sink-HDMI 0] alsa-sink.c: Latency set to 40.00ms
D: [alsa-sink-HDMI 0] alsa-sink.c: hwbuf_unused=1505280
D: [alsa-sink-HDMI 0] alsa-sink.c: setting avail_min=95761
D: [alsa-sink-HDMI 0] sink.c: Requesting rewind due to started move
D: [alsa-sink-HDMI 0] alsa-sink.c: Requested to rewind 30720 bytes.
D: [alsa-sink-HDMI 0] alsa-sink.c: Limited to 30144 bytes.
D: [alsa-sink-HDMI 0] alsa-sink.c: before: 1884
D: [alsa-sink-HDMI 0] alsa-sink.c: after: 1884
D: [alsa-sink-HDMI 0] alsa-sink.c: Rewound 30144 bytes.
D: [alsa-sink-HDMI 0] sink.c: Processing rewind...
D: [alsa-sink-HDMI 0] source.c: Processing rewind...
D: [pulseaudio] sink.c: alsa_output.pci-0000_00_03.0.hdmi-surround71: state: RUNNING -> IDLE
D: [pulseaudio] module-zeroconf-publish.c: Removing entry group for benutzer@serv: Built-in Audio Digital Surround 7.1 (HDMI).
D: [pulseaudio] module-rescue-streams.c: No sink inputs to move away.
D: [pulseaudio] sink.c: alsa_output.pci-0000_00_03.0.hdmi-surround71: state: IDLE -> UNLINKED
D: [pulseaudio] module-rescue-streams.c: No evacuation source found.
D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_03.0.hdmi-surround71 becomes idle, timeout in 5 seconds.
D: [pulseaudio] source.c: alsa_output.pci-0000_00_03.0.hdmi-surround71.monitor: state: RUNNING -> IDLE
I: [pulseaudio] source-output.c: Freeing output 5 "Peak detect"
D: [pulseaudio] source.c: alsa_output.pci-0000_00_03.0.hdmi-surround71.monitor: state: IDLE -> UNLINKED
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event.
D: [alsa-sink-HDMI 0] alsa-sink.c: Thread shutting down
I: [pulseaudio] sink.c: Freeing sink 4 "alsa_output.pci-0000_00_03.0.hdmi-surround71"
I: [pulseaudio] source.c: Freeing source 4 "alsa_output.pci-0000_00_03.0.hdmi-surround71.monitor"
D: [pulseaudio] reserve-wrap.c: Successfully acquired reservation lock on device 'Audio0'
D: [pulseaudio] reserve-wrap.c: Successfully create reservation lock monitor for device 'Audio0'
D: [pulseaudio] alsa-util.c: Trying hdmi:0 with SND_PCM_NO_AUTO_FORMAT ...
D: [pulseaudio] alsa-util.c: Managed to open hdmi:0
I: [pulseaudio] alsa-util.c: Trying to disable ALSA period wakeups, using timers only
D: [pulseaudio] alsa-util.c: Maximum hw buffer size is 21845 ms
D: [pulseaudio] alsa-util.c: Set buffer size first (to 96000 samples), period size second (to 96000 samples).
I: [pulseaudio] alsa-util.c: ALSA period wakeups disabled
I: [pulseaudio] alsa-sink.c: Successfully opened device hdmi:0.
I: [pulseaudio] alsa-sink.c: Selected mapping 'Digital Stereo (HDMI)' (hdmi-stereo).
I: [pulseaudio] alsa-sink.c: Successfully enabled mmap() mode.
I: [pulseaudio] alsa-sink.c: Successfully enabled timer-based scheduling mode.
I: [pulseaudio] (alsa-lib)control.c: Invalid CTL hdmi:0
I: [pulseaudio] alsa-util.c: Unable to attach to mixer hdmi:0: No such file or directory
I: [pulseaudio] alsa-util.c: Successfully attached to mixer 'hw:0'
D: [pulseaudio] alsa-mixer.c: Added 1 ports
I: [pulseaudio] module-device-restore.c: Restoring port for sink sink:alsa_output.pci-0000_00_03.0.hdmi-stereo.
I: [pulseaudio] module-device-restore.c: Restoring volume for sink alsa_output.pci-0000_00_03.0.hdmi-stereo: front-left: 99957 / 153%,   front-right: 99957 / 153%
I: [pulseaudio] sink.c: Created sink 5 "alsa_output.pci-0000_00_03.0.hdmi-stereo" with sample spec s16le 2ch 48000Hz and channel map front-left,front-right
I: [pulseaudio] sink.c:     alsa.resolution_bits = "16"
I: [pulseaudio] sink.c:     device.api = "alsa"
I: [pulseaudio] sink.c:     device.class = "sound"
I: [pulseaudio] sink.c:     alsa.class = "generic"
I: [pulseaudio] sink.c:     alsa.subclass = "generic-mix"
I: [pulseaudio] sink.c:     alsa.name = "HDMI 0"
I: [pulseaudio] sink.c:     alsa.id = "HDMI 0"
I: [pulseaudio] sink.c:     alsa.subdevice = "0"
I: [pulseaudio] sink.c:     alsa.subdevice_name = "subdevice #0"
I: [pulseaudio] sink.c:     alsa.device = "3"
I: [pulseaudio] sink.c:     alsa.card = "0"
I: [pulseaudio] sink.c:     alsa.card_name = "HDA Intel HDMI"
I: [pulseaudio] sink.c:     alsa.long_card_name = "HDA Intel HDMI at 0xf7d34000 irq 35"
I: [pulseaudio] sink.c:     alsa.driver_name = "snd_hda_intel"
I: [pulseaudio] sink.c:     device.bus_path = "pci-0000:00:03.0"
I: [pulseaudio] sink.c:     sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
I: [pulseaudio] sink.c:     device.bus = "pci"
I: [pulseaudio] sink.c:     device.vendor.id = "8086"
I: [pulseaudio] sink.c:     device.vendor.name = "Intel Corporation"
I: [pulseaudio] sink.c:     device.product.id = "0c0c"
I: [pulseaudio] sink.c:     device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
I: [pulseaudio] sink.c:     device.form_factor = "internal"
I: [pulseaudio] sink.c:     device.string = "hdmi:0"
I: [pulseaudio] sink.c:     device.buffering.buffer_size = "384000"
I: [pulseaudio] sink.c:     device.buffering.fragment_size = "192000"
I: [pulseaudio] sink.c:     device.access_mode = "mmap+timer"
I: [pulseaudio] sink.c:     device.profile.name = "hdmi-stereo"
I: [pulseaudio] sink.c:     device.profile.description = "Digital Stereo (HDMI)"
I: [pulseaudio] sink.c:     device.description = "Built-in Audio Digital Stereo (HDMI)"
I: [pulseaudio] sink.c:     alsa.mixer_name = "Intel Haswell HDMI"
I: [pulseaudio] sink.c:     alsa.components = "HDA:80862807,80860101,00100000"
I: [pulseaudio] sink.c:     module-udev-detect.discovered = "1"
I: [pulseaudio] sink.c:     device.icon_name = "audio-card-pci"
I: [pulseaudio] source.c: Created source 5 "alsa_output.pci-0000_00_03.0.hdmi-stereo.monitor" with sample spec s16le 2ch 48000Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of Built-in Audio Digital Stereo (HDMI)"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     alsa.card = "0"
I: [pulseaudio] source.c:     alsa.card_name = "HDA Intel HDMI"
I: [pulseaudio] source.c:     alsa.long_card_name = "HDA Intel HDMI at 0xf7d34000 irq 35"
I: [pulseaudio] source.c:     alsa.driver_name = "snd_hda_intel"
I: [pulseaudio] source.c:     device.bus_path = "pci-0000:00:03.0"
I: [pulseaudio] source.c:     sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
I: [pulseaudio] source.c:     device.bus = "pci"
I: [pulseaudio] source.c:     device.vendor.id = "8086"
I: [pulseaudio] source.c:     device.vendor.name = "Intel Corporation"
I: [pulseaudio] source.c:     device.product.id = "0c0c"
I: [pulseaudio] source.c:     device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
I: [pulseaudio] source.c:     device.form_factor = "internal"
I: [pulseaudio] source.c:     device.string = "0"
I: [pulseaudio] source.c:     module-udev-detect.discovered = "1"
I: [pulseaudio] source.c:     device.icon_name = "audio-card-pci"
I: [pulseaudio] alsa-sink.c: Using 2.0 fragments of size 192000 bytes (1000.00ms), buffer size is 384000 bytes (2000.00ms)
I: [pulseaudio] alsa-sink.c: Time scheduling watermark is 20.00ms
D: [pulseaudio] alsa-sink.c: hwbuf_unused=0
D: [pulseaudio] alsa-sink.c: setting avail_min=95041
D: [pulseaudio] alsa-mixer.c: Activating path hdmi-output-0
D: [pulseaudio] alsa-mixer.c: Path hdmi-output-0 (HDMI / DisplayPort), direction=1, priority=59, probed=yes, supported=yes, has_mute=no, has_volume=no, has_dB=no, min_volume=0, max_volume=0, min_dB=inf, max_dB=-inf
D: [pulseaudio] alsa-mixer.c: Jack HDMI/DP, alsa_name='HDMI/DP,pcm=3 Jack', detection possible
I: [pulseaudio] alsa-sink.c: Driver does not support hardware volume control, falling back to software volume control.
I: [pulseaudio] alsa-sink.c: Driver does not support hardware mute control, falling back to software mute control.
D: [pulseaudio] alsa-util.c: snd_pcm_dump():
D: [pulseaudio] alsa-util.c: Hooks PCM
D: [pulseaudio] alsa-util.c: Its setup is:
D: [pulseaudio] alsa-util.c:   stream       : PLAYBACK
D: [pulseaudio] alsa-util.c:   access       : MMAP_INTERLEAVED
D: [pulseaudio] alsa-util.c:   format       : S16_LE
D: [pulseaudio] alsa-util.c:   subformat    : STD
D: [pulseaudio] alsa-util.c:   channels     : 2
D: [pulseaudio] alsa-util.c:   rate         : 48000
D: [pulseaudio] alsa-util.c:   exact rate   : 48000 (48000/1)
D: [pulseaudio] alsa-util.c:   msbits       : 16
D: [pulseaudio] alsa-util.c:   buffer_size  : 96000
D: [pulseaudio] alsa-util.c:   period_size  : 48000
D: [pulseaudio] alsa-util.c:   period_time  : 1000000
D: [pulseaudio] alsa-util.c:   tstamp_mode  : ENABLE
D: [pulseaudio] alsa-util.c:   tstamp_type  : MONOTONIC
D: [pulseaudio] alsa-util.c:   period_step  : 1
D: [pulseaudio] alsa-util.c:   avail_min    : 95041
D: [pulseaudio] alsa-util.c:   period_event : 0
D: [pulseaudio] alsa-util.c:   start_threshold  : -1
D: [pulseaudio] alsa-util.c:   stop_threshold   : 6755399441055744000
D: [pulseaudio] alsa-util.c:   silence_threshold: 0
D: [pulseaudio] alsa-util.c:   silence_size : 0
D: [pulseaudio] alsa-util.c:   boundary     : 6755399441055744000
D: [pulseaudio] alsa-util.c: Slave: Hardware PCM card 0 'HDA Intel HDMI' device 3 subdevice 0
D: [pulseaudio] alsa-util.c: Its setup is:
D: [pulseaudio] alsa-util.c:   stream       : PLAYBACK
D: [pulseaudio] alsa-util.c:   access       : MMAP_INTERLEAVED
D: [pulseaudio] alsa-util.c:   format       : S16_LE
D: [pulseaudio] alsa-util.c:   subformat    : STD
D: [pulseaudio] alsa-util.c:   channels     : 2
D: [pulseaudio] alsa-util.c:   rate         : 48000
D: [pulseaudio] alsa-util.c:   exact rate   : 48000 (48000/1)
D: [pulseaudio] alsa-util.c:   msbits       : 16
D: [pulseaudio] alsa-util.c:   buffer_size  : 96000
D: [pulseaudio] alsa-util.c:   period_size  : 48000
D: [pulseaudio] alsa-util.c:   period_time  : 1000000
D: [pulseaudio] alsa-util.c:   tstamp_mode  : ENABLE
D: [pulseaudio] alsa-util.c:   tstamp_type  : MONOTONIC
D: [pulseaudio] alsa-util.c:   period_step  : 1
D: [pulseaudio] alsa-util.c:   avail_min    : 95041
D: [pulseaudio] alsa-util.c:   period_event : 0
D: [pulseaudio] alsa-util.c:   start_threshold  : -1
D: [pulseaudio] alsa-util.c:   stop_threshold   : 6755399441055744000
D: [pulseaudio] alsa-util.c:   silence_threshold: 0
D: [pulseaudio] alsa-util.c:   silence_size : 0
D: [pulseaudio] alsa-util.c:   boundary     : 6755399441055744000
D: [pulseaudio] alsa-util.c:   appl_ptr     : 0
D: [pulseaudio] alsa-util.c:   hw_ptr       : 0
D: [alsa-sink-HDMI 0] alsa-sink.c: Thread starting up
I: [alsa-sink-HDMI 0] core-util.c: Failed to acquire real-time scheduling: Permission denied
D: [pulseaudio] sink.c: alsa_output.pci-0000_00_03.0.hdmi-stereo: state: INIT -> IDLE
I: [alsa-sink-HDMI 0] alsa-sink.c: Starting playback.
D: [alsa-sink-HDMI 0] ratelimit.c: 29 events suppressed
D: [alsa-sink-HDMI 0] alsa-sink.c: Cutting sleep time for the initial iterations by half.
D: [alsa-sink-HDMI 0] alsa-sink.c: Cutting sleep time for the initial iterations by half.
D: [pulseaudio] source.c: alsa_output.pci-0000_00_03.0.hdmi-stereo.monitor: state: INIT -> IDLE
D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_03.0.hdmi-stereo becomes idle, timeout in 5 seconds.
I: [pulseaudio] sink-input.c: Trying to change sample rate
D: [pulseaudio] sink.c: Default and alternate sample rates are the same, so there is no point in switching.
I: [pulseaudio] protocol-native.c: Requested tlength=200.00 ms, minreq=50.00 ms
D: [pulseaudio] protocol-native.c: Adjust latency mode enabled, configuring sink latency to half of overall latency.
D: [pulseaudio] protocol-native.c: Requested latency=50.00 ms, Received latency=50.00 ms
I: [pulseaudio] resampler.c: Forcing resampler 'copy', because of fixed, identical sample rates.
D: [pulseaudio] resampler.c: Resampler:
D: [pulseaudio] resampler.c:   rate 48000 -> 48000 (method copy)
D: [pulseaudio] resampler.c:   format float32le -> s16le (intermediate s16le)
D: [pulseaudio] resampler.c:   channels 2 -> 2 (resampling 2)
D: [pulseaudio] memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0
D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0
D: [pulseaudio] sink-input.c: Updated resampler for sink input 2
D: [alsa-sink-HDMI 0] alsa-sink.c: Cutting sleep time for the initial iterations by half.
D: [alsa-sink-HDMI 0] alsa-sink.c: Cutting sleep time for the initial iterations by half.
D: [pulseaudio] sink.c: alsa_output.pci-0000_00_03.0.hdmi-stereo: state: IDLE -> RUNNING
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
D: [pulseaudio] sink-input.c: The volume of sink input 2 changed from front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB to front-left: 99957 / 153% / 11.00 dB,   front-right: 99957 / 153% / 11.00 dB.
D: [alsa-sink-HDMI 0] alsa-sink.c: Cutting sleep time for the initial iterations by half.
D: [alsa-sink-HDMI 0] sink.c: Requesting rewind due to finished move
D: [alsa-sink-HDMI 0] alsa-sink.c: Latency set to 50.00ms
D: [alsa-sink-HDMI 0] alsa-sink.c: hwbuf_unused=374400
D: [alsa-sink-HDMI 0] alsa-sink.c: setting avail_min=95041
D: [alsa-sink-HDMI 0] alsa-sink.c: Requesting rewind due to latency change.
D: [alsa-sink-HDMI 0] alsa-sink.c: Requested to rewind 384000 bytes.
D: [pulseaudio] sink-input.c: Successfully moved sink input 2 to alsa_output.pci-0000_00_03.0.hdmi-stereo.
D: [alsa-sink-HDMI 0] alsa-sink.c: Limited to 383488 bytes.
D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_03.0.hdmi-stereo becomes busy, resuming.
D: [alsa-sink-HDMI 0] alsa-sink.c: before: 95872
D: [alsa-sink-HDMI 0] alsa-sink.c: after: 95872
D: [pulseaudio] core-subscribe.c: Dropped redundant event due to change event.
D: [alsa-sink-HDMI 0] alsa-sink.c: Rewound 383488 bytes.
I: [pulseaudio] card.c: Changed profile of card 0 "alsa_card.pci-0000_00_03.0" to output:hdmi-stereo
D: [alsa-sink-HDMI 0] sink.c: Processing rewind...
D: [alsa-sink-HDMI 0] sink-input.c: Have to rewind 383488 bytes on render memblockq.
D: [alsa-sink-HDMI 0] source.c: Processing rewind...
I: [pulseaudio] module-card-restore.c: Storing card profile for card alsa_card.pci-0000_00_03.0.
I: [pulseaudio] module-card-restore.c: Storing profile hdmi-stereo for port hdmi-output-0 on card alsa_card.pci-0000_00_03.0.
D: [pulseaudio] module-udev-detect.c: /dev/snd/controlC0 is accessible: yes
D: [pulseaudio] module-udev-detect.c: Resuming all sinks and sources of card alsa_card.pci-0000_00_03.0.
D: [avahi-ml] module-zeroconf-publish.c: Successfully created entry group for benutzer@serv: Built-in Audio Digital Stereo (HDMI).
D: [pulseaudio] module-stream-restore.c: Not restoring device for stream source-output-by-application-id:org.PulseAudio.pavucontrol, because already set
D: [pulseaudio] module-intended-roles.c: Not setting device for stream Peak detect, because already set.
D: [pulseaudio] source-output.c: Negotiated format: pcm, format.sample_format = "\"float32le\""  format.rate = "25"  format.channels = "1"  format.channel_map = "\"mono\""
I: [pulseaudio] source-output.c: Trying to change sample rate
D: [pulseaudio] source.c: Default and alternate sample rates are the same, so there is no point in switching.
I: [pulseaudio] module-stream-restore.c: Restoring mute state for source output source-output-by-application-id:org.PulseAudio.pavucontrol.
D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_03.0.hdmi-stereo becomes busy, resuming.
D: [pulseaudio] resampler.c: Resampler:
D: [pulseaudio] resampler.c:   rate 48000 -> 25 (method peaks)
D: [pulseaudio] resampler.c:   format s16le -> float32le (intermediate s16le)
D: [pulseaudio] resampler.c:   channels 2 -> 1 (resampling 1)
D: [pulseaudio] resampler.c: Channel matrix:
D: [pulseaudio] resampler.c:        I00   I01 
D: [pulseaudio] resampler.c:     +------------
D: [pulseaudio] resampler.c: O00 | 0.500 0.500
I: [pulseaudio] remap.c: Using stereo to mono remapping
D: [pulseaudio] memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0
D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0
I: [pulseaudio] source-output.c: Created output 8 "Peak detect" on alsa_output.pci-0000_00_03.0.hdmi-stereo.monitor with sample spec float32le 1ch 25Hz and channel map mono
I: [pulseaudio] source-output.c:     media.name = "Peak detect"
I: [pulseaudio] source-output.c:     application.name = "PulseAudio Volume Control"
I: [pulseaudio] source-output.c:     native-protocol.peer = "UNIX socket client"
I: [pulseaudio] source-output.c:     native-protocol.version = "32"
I: [pulseaudio] source-output.c:     application.id = "org.PulseAudio.pavucontrol"
I: [pulseaudio] source-output.c:     application.icon_name = "audio-card"
I: [pulseaudio] source-output.c:     application.version = "3.0"
I: [pulseaudio] source-output.c:     application.process.id = "5011"
I: [pulseaudio] source-output.c:     application.process.user = "benutzer"
I: [pulseaudio] source-output.c:     application.process.host = "serv"
I: [pulseaudio] source-output.c:     application.process.binary = "pavucontrol"
I: [pulseaudio] source-output.c:     application.language = "en_US.UTF-8"
I: [pulseaudio] source-output.c:     window.x11.display = ":0"
I: [pulseaudio] source-output.c:     application.process.machine_id = "fd418a3586c64c6eaa401ee8a8c74edc"
I: [pulseaudio] source-output.c:     application.process.session_id = "c1"
I: [pulseaudio] source-output.c:     module-stream-restore.id = "source-output-by-application-id:org.PulseAudio.pavucontrol"
D: [pulseaudio] memblockq.c: memblockq requested: maxlength=4194304, tlength=0, base=4, prebuf=1, minreq=0 maxrewind=0
D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=4194304, tlength=4194304, base=4, prebuf=4, minreq=4 maxrewind=0
I: [pulseaudio] protocol-native.c: Final latency 80.00 ms = 40.00 ms + 40.00 ms
D: [alsa-sink-HDMI 0] alsa-sink.c: Latency set to 40.00ms
D: [alsa-sink-HDMI 0] alsa-sink.c: hwbuf_unused=376320
D: [alsa-sink-HDMI 0] alsa-sink.c: setting avail_min=95041
D: [alsa-sink-HDMI 0] alsa-sink.c: Requesting rewind due to latency change.
D: [alsa-sink-HDMI 0] alsa-sink.c: Latency set to 40.00ms
D: [alsa-sink-HDMI 0] alsa-sink.c: hwbuf_unused=376320
D: [alsa-sink-HDMI 0] alsa-sink.c: setting avail_min=95041
D: [alsa-sink-HDMI 0] alsa-sink.c: Requested to rewind 9600 bytes.
D: [alsa-sink-HDMI 0] alsa-sink.c: Limited to 9216 bytes.
D: [alsa-sink-HDMI 0] alsa-sink.c: before: 2304
D: [alsa-sink-HDMI 0] alsa-sink.c: after: 2304
D: [alsa-sink-HDMI 0] alsa-sink.c: Rewound 9216 bytes.
D: [alsa-sink-HDMI 0] sink.c: Processing rewind...
D: [alsa-sink-HDMI 0] sink-input.c: Have to rewind 9216 bytes on render memblockq.
D: [alsa-sink-HDMI 0] source.c: Processing rewind...
D: [pulseaudio] source.c: alsa_output.pci-0000_00_03.0.hdmi-stereo.monitor: state: IDLE -> RUNNING
D: [pulseaudio] module-intended-roles.c: Not setting device for stream Peak detect, because already set.
D: [pulseaudio] source-output.c: Negotiated format: pcm, format.sample_format = "\"float32le\""  format.rate = "25"  format.channels = "1"  format.channel_map = "\"mono\""
I: [pulseaudio] source-output.c: Trying to change sample rate
D: [pulseaudio] source.c: Default and alternate sample rates are the same, so there is no point in switching.
I: [pulseaudio] module-stream-restore.c: Restoring mute state for source output source-output-by-application-id:org.PulseAudio.pavucontrol.
D: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_03.0.hdmi-stereo becomes busy, resuming.
D: [pulseaudio] resampler.c: Resampler:
D: [pulseaudio] resampler.c:   rate 48000 -> 25 (method peaks)
D: [pulseaudio] resampler.c:   format s16le -> float32le (intermediate s16le)
D: [pulseaudio] resampler.c:   channels 2 -> 1 (resampling 1)
D: [pulseaudio] resampler.c: Channel matrix:
D: [pulseaudio] resampler.c:        I00   I01 
D: [pulseaudio] resampler.c:     +------------
D: [pulseaudio] resampler.c: O00 | 0.500 0.500
I: [pulseaudio] remap.c: Using stereo to mono remapping
D: [pulseaudio] memblockq.c: memblockq requested: maxlength=33554432, tlength=0, base=4, prebuf=0, minreq=1 maxrewind=0
D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=33554432, tlength=33554432, base=4, prebuf=0, minreq=4 maxrewind=0
I: [pulseaudio] source-output.c: Created output 9 "Peak detect" on alsa_output.pci-0000_00_03.0.hdmi-stereo.monitor with sample spec float32le 1ch 25Hz and channel map mono
I: [pulseaudio] source-output.c:     media.name = "Peak detect"
I: [pulseaudio] source-output.c:     application.name = "PulseAudio Volume Control"
I: [pulseaudio] source-output.c:     native-protocol.peer = "UNIX socket client"
I: [pulseaudio] source-output.c:     native-protocol.version = "32"
I: [pulseaudio] source-output.c:     application.id = "org.PulseAudio.pavucontrol"
I: [pulseaudio] source-output.c:     application.icon_name = "audio-card"
I: [pulseaudio] source-output.c:     application.version = "3.0"
I: [pulseaudio] source-output.c:     application.process.id = "5011"
I: [pulseaudio] source-output.c:     application.process.user = "benutzer"
I: [pulseaudio] source-output.c:     application.process.host = "serv"
I: [pulseaudio] source-output.c:     application.process.binary = "pavucontrol"
I: [pulseaudio] source-output.c:     application.language = "en_US.UTF-8"
I: [pulseaudio] source-output.c:     window.x11.display = ":0"
I: [pulseaudio] source-output.c:     application.process.machine_id = "fd418a3586c64c6eaa401ee8a8c74edc"
I: [pulseaudio] source-output.c:     application.process.session_id = "c1"
I: [pulseaudio] source-output.c:     module-stream-restore.id = "source-output-by-application-id:org.PulseAudio.pavucontrol"
D: [pulseaudio] memblockq.c: memblockq requested: maxlength=4194304, tlength=0, base=4, prebuf=1, minreq=0 maxrewind=0
D: [pulseaudio] memblockq.c: memblockq sanitized: maxlength=4194304, tlength=4194304, base=4, prebuf=4, minreq=4 maxrewind=0
I: [pulseaudio] protocol-native.c: Final latency 80.00 ms = 40.00 ms + 40.00 ms
D: [alsa-sink-HDMI 0] alsa-sink.c: Latency set to 40.00ms
D: [alsa-sink-HDMI 0] alsa-sink.c: hwbuf_unused=376320
D: [alsa-sink-HDMI 0] alsa-sink.c: setting avail_min=95041
D: [alsa-sink-HDMI 0] alsa-sink.c: Latency set to 40.00ms
D: [alsa-sink-HDMI 0] alsa-sink.c: hwbuf_unused=376320
D: [alsa-sink-HDMI 0] alsa-sink.c: setting avail_min=95041
I: [avahi-ml] module-zeroconf-publish.c: Successfully established service benutzer@serv: Built-in Audio Digital Stereo (HDMI).
I: [alsa-sink-HDMI 0] alsa-sink.c: Underrun!
I: [alsa-sink-HDMI 0] alsa-sink.c: Increasing wakeup watermark to 30.00 ms
D: [alsa-sink-HDMI 0] protocol-native.c: Implicit underrun of 'kodi audio stream'
D: [alsa-sink-HDMI 0] protocol-native.c: Requesting rewind due to end of underrun.
D: [alsa-sink-HDMI 0] alsa-sink.c: Requested to rewind 7680 bytes.
D: [alsa-sink-HDMI 0] alsa-sink.c: Limited to 7424 bytes.
D: [alsa-sink-HDMI 0] alsa-sink.c: before: 1856
D: [alsa-sink-HDMI 0] alsa-sink.c: after: 1856
D: [alsa-sink-HDMI 0] alsa-sink.c: Rewound 7424 bytes.
D: [alsa-sink-HDMI 0] sink.c: Processing rewind...
D: [alsa-sink-HDMI 0] sink-input.c: Have to rewind 7424 bytes on render memblockq.
D: [alsa-sink-HDMI 0] source.c: Processing rewind...
I: [alsa-sink-HDMI 0] alsa-sink.c: Underrun!
I: [alsa-sink-HDMI 0] alsa-sink.c: Increasing minimal latency to 1.00 ms
D: [alsa-sink-HDMI 0] alsa-sink.c: Latency set to 40.00ms
D: [alsa-sink-HDMI 0] alsa-sink.c: hwbuf_unused=376320
D: [alsa-sink-HDMI 0] alsa-sink.c: setting avail_min=94561
D: [alsa-sink-HDMI 0] alsa-sink.c: Latency set to 40.00ms
D: [alsa-sink-HDMI 0] alsa-sink.c: hwbuf_unused=376320
D: [alsa-sink-HDMI 0] alsa-sink.c: setting avail_min=94561
D: [alsa-sink-HDMI 0] protocol-native.c: Implicit underrun of 'kodi audio stream'
D: [alsa-sink-HDMI 0] protocol-native.c: Requesting rewind due to end of underrun.
D: [alsa-sink-HDMI 0] alsa-sink.c: Requested to rewind 7680 bytes.
D: [alsa-sink-HDMI 0] alsa-sink.c: Limited to 7424 bytes.
D: [alsa-sink-HDMI 0] alsa-sink.c: before: 1856
D: [alsa-sink-HDMI 0] alsa-sink.c: after: 1856
D: [alsa-sink-HDMI 0] alsa-sink.c: Rewound 7424 bytes.
D: [alsa-sink-HDMI 0] sink.c: Processing rewind...
D: [alsa-sink-HDMI 0] sink-input.c: Have to rewind 7424 bytes on render memblockq.
D: [alsa-sink-HDMI 0] source.c: Processing rewind...
I: [alsa-sink-HDMI 0] alsa-sink.c: Underrun!
I: [alsa-sink-HDMI 0] alsa-sink.c: Increasing minimal latency to 2.00 ms

And this I: [alsa-sink-HDMI 0] alsa-sink.c: Increasing minimal latency to 1.00 ms and on block repeats with increasing times I think forever.

Another observation I made is with the AVR-Receiver. Within its setting I can check its audio settings and if profile is 7.1 it correctly get the sample rate of 48 KHz and shows a Format of 3/4/.1 and I assume this is the speaker setting, so it is indeed a 7.1. signal. If I have the stereo profile running, the AVR-Receiver just says unknown in all these fields. So I guess it either gets no signal or doesn't know what to do with the signal.

So anybody has an idea what is going on here?

Last edited by deisi (2019-01-06 13:58:22)

Offline

Board footer

Powered by FluxBB