From: Alexandre Demers <alexandre.f.demers@gmail.com>
To: amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 07/20] drm/amd/display: Don't use stereo sync and audio on RGB signals
Date: Fri, 1 Aug 2025 03:19:07 -0400 [thread overview]
Message-ID: <1ce09488-0384-4d88-a1eb-cdff89c0bed1@gmail.com> (raw)
In-Reply-To: <7bae9003-933d-49bc-969d-abf45424b825@amd.com>
>On 2025-07-30 13:08, Timur Kristóf wrote:
>> On Wed, 2025-07-30 at 10:34 -0400, Harry Wentland wrote:
>>>
>>>
>>> On 2025-07-30 04:19, Timur Kristóf wrote:
>>>> On Tue, 2025-07-29 at 14:21 -0400, Harry Wentland wrote:
>>>>>
>>>>>
>>>>> On 2025-07-23 11:58, Timur Kristóf wrote:
>>>>>> Features like stereo sync and audio are not supported by RGB
>>>>>> signals, so don't try to use them.
>>>>>>
>>>>>
>>>>> Where does it say that?
>>>>>
>>>>> Harry
>>>>
>>>> 1. Audio
>>>>
>>>> VGA ports (and the analog part of DVI-I ports) simply cannot carry
>>>> audio. So there is no hardware to control any audio, therefore
>>>> there is
>>>> nothing for this code to enable, which is why I added those ifs to
>>>> not
>>>> even try to enable audio on analog video signals.
>>>>
>>>
>>> My bad, I was thinking RGB as opposed to YCbCr. Forgot that we use
>>> RGB signal to refer to VGA.
>>
>> Sorry for the confusion.
>>
>>>
>>>> As a side note, DVI-D ports (and the digital part of DVI-I ports)
>>>> may
>>>> have a non-standard extension to carry digital audio signals, but
>>>> that
>>>> is not revelant to supporting analog displays.
>>>>
>>>> 2. Stereo sync
>>>>
>>>> With regards to stereo sync, I didn't find any reference to this in
>>>> the
>>>> legacy display code, so I assumed either it is unsupported or the
>>>> VBIOS
>>>> already sets it up correctly. At least, considering that the legacy
>>>> code didn't bother setting it up, we don't lose any functionality
>>>> if we
>>>> leave it out of DC as well.
>>>>
>>>> That being said, upon some further digging in the DCE register
>>>> files, I
>>>> found a register called DAC_STEREOSYNC_SELECT so maybe I could
>>>> investigate using that. Maybe it would be better to work with the
>>>> registers directly instead of the VBIOS? Would it be okay to
>>>> investigate that further in a future patch series once this one is
>>>> merged?
>>>>
>>>
>>> I don't think DC supports stereo sync currently. I'm not sure there
>>> is
>>> much value in pursuing that.
>>
>> If stereo sync is not supported, what does setup_stereo_sync() do?
>>
>
> My bad. Not sure then. But no objection if you want to explore it.
>
> Harry
> >>>
>>>>>> diff --git a/drivers/gpu/drm/amd/display/include/signal_types.h
>>>>>> b/drivers/gpu/drm/amd/display/include/signal_types.h
>>>>>> index a10d6b988aab..825a08fcb125 100644
>>>>>> --- a/drivers/gpu/drm/amd/display/include/signal_types.h
>>>>>> +++ b/drivers/gpu/drm/amd/display/include/signal_types.h
>>>>>> @@ -118,6 +118,11 @@ static inline bool dc_is_dvi_signal(enum
>>>>>> signal_type signal)
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> +static inline bool dc_is_rgb_signal(enum signal_type signal)
>>>
>>> To avoid confusion with people that haven't worked on analog
>>> signals in years (or ever) it might be better to name this
>>> dc_is_analog_signal.
>>>
>>> Harry
>>
>> Sounds good, I'll rename it in the next version of the series.
>> To further ease the confusion, what do you think about renaming
>> SIGNAL_TYPE_RGB to SIGNAL_TYPE_ANALOG?
I think Harry hasn't answered your proposition. I must say that the
first time I looked for VGA in the legacy code, I stumbled upon the RGB
usage. But then, it began to make sense (I'm not completely sure if
signals and connector types are used properly everywhere), because we
are mostly translating DRM signal types to supported connector
types.That being said, while both dc_is_rgb_signal() and
dc_is_analog_signal() could be used here, we are specifically querying
the signal type and this signal type is RGB. Because of this, I would be
in favor of keeping dc_is_rgb_signal() unless there is another analog
type that could be queried and not rename SIGNAL_TYPE_RGB to
SIGNAL_TYPE_ANALOG in any case. Cheers, Alexandre >>
>> Thanks,
>> Timur
>>
>>
>>>
>>>>>> +{
>>>>>> + return (signal == SIGNAL_TYPE_RGB);
>>>>>> +}
>>>>>> +
>>>>>> static inline bool dc_is_tmds_signal(enum signal_type signal)
>>>>>> {
>>>>>> switch (signal) {
next prev parent reply other threads:[~2025-08-01 7:19 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-23 15:57 [PATCH 00/20] Analog connector support in DC Timur Kristóf
2025-07-23 15:57 ` [PATCH 01/20] drm/amd/display: Determine DRM connector type more accurately Timur Kristóf
2025-07-29 18:03 ` Harry Wentland
2025-07-30 7:40 ` Timur Kristóf
2025-07-30 14:30 ` Harry Wentland
2025-07-30 17:03 ` Timur Kristóf
2025-07-30 17:29 ` Harry Wentland
2025-07-30 18:19 ` Timur Kristóf
2025-08-06 14:56 ` Harry Wentland
2025-08-06 17:45 ` Timur Kristóf
2025-08-06 18:13 ` Harry Wentland
2025-08-20 11:49 ` Timur Kristóf
2025-07-23 15:57 ` [PATCH 02/20] drm/amd/display: Add analog bit to edid_caps Timur Kristóf
2025-07-23 15:57 ` [PATCH 03/20] drm/amd/display: Introduce MAX_LINK_ENCODERS Timur Kristóf
2025-07-29 18:06 ` Harry Wentland
2025-07-30 7:40 ` Timur Kristóf
2025-07-23 15:57 ` [PATCH 04/20] drm/amd/display: Hook up DAC to bios_parser_encoder_control Timur Kristóf
2025-07-23 15:57 ` [PATCH 05/20] drm/amd/display: Add SelectCRTC_Source to BIOS parser Timur Kristóf
2025-07-23 15:57 ` [PATCH 06/20] drm/amd/display: Get maximum pixel clock from VBIOS Timur Kristóf
2025-07-23 15:58 ` [PATCH 07/20] drm/amd/display: Don't use stereo sync and audio on RGB signals Timur Kristóf
2025-07-29 18:21 ` Harry Wentland
2025-07-30 8:19 ` Timur Kristóf
2025-07-30 14:34 ` Harry Wentland
2025-07-30 17:08 ` Timur Kristóf
2025-07-31 15:37 ` Harry Wentland
2025-08-01 7:19 ` Alexandre Demers [this message]
2025-08-01 8:39 ` Timur Kristóf
2025-08-01 14:55 ` Harry Wentland
2025-08-01 15:09 ` Timur Kristóf
2025-07-23 15:58 ` [PATCH 08/20] drm/amd/display: Don't try to enable/disable HPD when unavailable Timur Kristóf
2025-07-23 15:58 ` [PATCH 09/20] drm/amd/display: Add concept of analog encoders Timur Kristóf
2025-07-23 15:58 ` [PATCH 10/20] drm/amd/display: Implement DCE analog stream encoders Timur Kristóf
2025-08-01 18:05 ` Alexandre Demers
2025-08-01 21:29 ` Timur Kristóf
2025-08-03 16:10 ` Alexandre Demers
2025-08-03 20:04 ` Timur Kristóf
2025-08-01 18:06 ` Alexandre Demers
2025-07-23 15:58 ` [PATCH 11/20] drm/amd/display: Implement DCE analog link encoders Timur Kristóf
2025-08-01 19:30 ` Alexandre Demers
2025-08-01 22:02 ` Timur Kristóf
2025-08-03 16:26 ` Alexandre Demers
2025-08-03 20:08 ` Timur Kristóf
2025-07-23 15:58 ` [PATCH 12/20] drm/amd/display: Support DAC in dce110_hwseq Timur Kristóf
2025-07-23 15:58 ` [PATCH 13/20] drm/amd/display: Add analog link detection Timur Kristóf
2025-08-07 19:12 ` Harry Wentland
2025-08-07 20:34 ` Harry Wentland
2025-08-07 21:32 ` Timur Kristóf
2025-08-08 14:03 ` Harry Wentland
2025-08-08 14:22 ` Wheeler, Daniel
2025-08-09 20:17 ` Timur Kristóf
2025-08-15 14:28 ` Wheeler, Daniel
2025-08-20 12:01 ` Timur Kristóf
2025-07-23 15:58 ` [PATCH 14/20] drm/amd/display: Poll analog connectors Timur Kristóf
2025-07-23 15:58 ` [PATCH 15/20] drm/amd/display: Add DCE BIOS_SCRATCH_0 register Timur Kristóf
2025-07-23 15:58 ` [PATCH 16/20] drm/amd/display: Make get_support_mask_for_device_id reusable Timur Kristóf
2025-07-23 15:58 ` [PATCH 17/20] drm/amd/display: Add DAC_LoadDetection to BIOS parser Timur Kristóf
2025-07-23 15:58 ` [PATCH 18/20] drm/amd/display: Use DAC load detection on analog connectors Timur Kristóf
2025-07-23 15:58 ` [PATCH 19/20] drm/amd/display: Add common modes to analog displays without EDID Timur Kristóf
2025-07-23 15:58 ` [PATCH 20/20] drm/amdgpu: Use DC by default for Bonaire Timur Kristóf
2025-07-30 16:29 ` [PATCH 00/20] Analog connector support in DC Harry Wentland
2025-07-30 17:15 ` Timur Kristóf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1ce09488-0384-4d88-a1eb-cdff89c0bed1@gmail.com \
--to=alexandre.f.demers@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).