Re: [alsa-devel] [pulseaudio-discuss] Issue with multiple hdmi codecs in radeonhd, hacked to work
Codec: ATI R6xx HDMI
Address: 0 AFG Function Id: 0x1 (unsol 0) Vendor Id: 0x1002aa01 Subsystem Id: 0x00aa0100 Revision Id: 0x100300
seem that your codec may get Audio-Video Association Port ID and Sink Information for your DENON-AVAMP
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pc...
Revision ID 3 and later (0x100300 as reported by procfs codec#X) have support for providing more information than the previous revisions (but only if supported by the display driver).
manufacture_id 0x0 product_id 0x0 port_id 0x0
you have to find out those values return by hda_codec_read ATI_VERB_GET_SINK_INFO_DATA as your codec are revision 3 and your graphic driver got the product_id, manufacture_id, port_id
Manufacturer: DON Model 26 Serial Number 16843009 Made week 0 of 2011 Monitor name: DENON
Audio data block Linear PCM, max channels 7 Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1 32 Supported sample sizes (bits): 24 20 16 DTS, max channels 5 Supported sample rates (kHz): 96 88.2 48 44.1 Maximum bit rate: 1016 kHz AC-3, max channels 5 Supported sample rates (kHz): 48 44.1 32 Maximum bit rate: 1016 kHz DTS-HD, max channels 7 Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1 Dolby Digital+, max channels 7 Supported sample rates (kHz): 48 44.1 MAT (MLP), max channels 7 Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1 Speaker allocation data block
Do those SAD in EDID in xorg.log match with the specification of your Denon HDMI receiver ?
speakers [0x5f] FL/FR LFE FC RL/RR RC RLC/RRC sad_count 6 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 [0x2] AC-3 sad1_channels 6 sad1_rates [0xe0] 32000 44100 48000 sad1_max_bitrate 640000 sad2_coding_type [0x7] DTS sad2_channels 6 sad2_rates [0x6c0] 44100 48000 88200 96000 sad2_max_bitrate 1536000 sad3_coding_type [0xa] E-AC-3/DD+ (Dolby Digital Plus) sad3_channels 8 sad3_rates [0xc0] 44100 48000 sad4_coding_type [0xb] DTS-HD sad4_channels 8 sad4_rates [0x1ec0] 44100 48000 88200 96000 176400 192000 sad5_coding_type [0xc] MLP (Dolby TrueHD) sad5_channels 8 sad5_rates [0x1ec0] 44100 48000 88200 96000 176400 192000
seem emulated ELD 's max bitrate are different from those in SAD of EDID
Do AC3 or DTS passthrough hdmi work (using alsa and pulseaudio) or not ?
Do your Denon HDMI receiver support 7.1 ?
Profiles: output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 400) output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 3300) output:hdmi-stereo-extra1: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 200) output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 3100) output:hdmi-stereo-extra2: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 200) output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 3100) output:hdmi-stereo-extra3: Digital Stereo (HDMI) Output (sinks: 1, sources: 0, priority: 200) output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI) Output (sinks: 1, sources: 0, priority: 3100)
seem no 7.1 in pulseaudio ?
Do pulseaudio select the first HDMI as active port the default sink ?
I am not sure.
seem no output of pactl stat
http://cgit.freedesktop.org/pulseaudio/pulseaudio/plain/src/modules/alsa/mix...
you may comment the last three hdmi devices until monitor_presence bug is fixed
10.12.2013 15:54, Raymond Yau kirjoitti:
Codec: ATI R6xx HDMI Address: 0 AFG Function Id: 0x1 (unsol 0) Vendor Id: 0x1002aa01 Subsystem Id: 0x00aa0100 Revision Id: 0x100300 seem that your codec may get Audio-Video Association Port ID and Sink Information for your DENON-AVAMP
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pc...
Revision ID 3 and later (0x100300 as reported by procfs codec#X) have support for providing more information than the previous revisions (but only if supported by the display driver).
manufacture_id 0x0 product_id 0x0 port_id 0x0
you have to find out those values return by hda_codec_read ATI_VERB_GET_SINK_INFO_DATA as your codec are revision 3 and your graphic driver got the product_id, manufacture_id, port_id
Not sure what you are after exactly, but I don't think those are supported by the radeon driver just yet. The filled fields currently are (per dce6_afmt.c): latency fields, speaker allocation, short audio descriptors, connector type.
Should be relatively trivial to add support for the rest, though, as the correct registers are named clearly in sid.h (AZ_F0_CODEC_PIN_CONTROL_SINK_INFOx). It is not very high on my TODO at the moment, though.
Manufacturer: DON Model 26 Serial Number 16843009 Made week 0 of 2011 Monitor name: DENON
Audio data block Linear PCM, max channels 7 Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1 32 Supported sample sizes (bits): 24 20 16 DTS, max channels 5 Supported sample rates (kHz): 96 88.2 48 44.1 Maximum bit rate: 1016 kHz AC-3, max channels 5 Supported sample rates (kHz): 48 44.1 32 Maximum bit rate: 1016 kHz DTS-HD, max channels 7 Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1 Dolby Digital+, max channels 7 Supported sample rates (kHz): 48 44.1 MAT (MLP), max channels 7 Supported sample rates (kHz): 192 176.4 96 88.2 48 44.1 Speaker allocation data block
Do those SAD in EDID in xorg.log match with the specification of your Denon HDMI receiver ?
speakers [0x5f] FL/FR LFE FC RL/RR RC RLC/RRC sad_count 6 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 [0x2] AC-3 sad1_channels 6 sad1_rates [0xe0] 32000 44100 48000 sad1_max_bitrate 640000 sad2_coding_type [0x7] DTS sad2_channels 6 sad2_rates [0x6c0] 44100 48000 88200 96000 sad2_max_bitrate 1536000 sad3_coding_type [0xa] E-AC-3/DD+ (Dolby Digital Plus) sad3_channels 8 sad3_rates [0xc0] 44100 48000 sad4_coding_type [0xb] DTS-HD sad4_channels 8 sad4_rates [0x1ec0] 44100 48000 88200 96000 176400 192000 sad5_coding_type [0xc] MLP (Dolby TrueHD) sad5_channels 8 sad5_rates [0x1ec0] 44100 48000 88200 96000 176400 192000
seem emulated ELD 's max bitrate are different from those in SAD of EDID
Whatever you used to decode the EDID misdecoded the bitrates. The SADs from the Xorg log are: 0f7f07 3d1ec0 150750 5f7e01 570600 677e00 PCM DTS AC-3 DTS-HD E-AC-3 TrueHD
As per CEA-861 maximum bitrate for format codes 2 to 8 (DTS and AC-3 in this case) is encoded in 3rd byte, divided by 8kHz. DTS: 0xC0 * 8k = 1536k AC-3: 0x50 * 8k = 640k
[...]
participants (2)
-
Anssi Hannula
-
Raymond Yau