diff mbox series

[1/3] drm: bridge: adv7511: fill i2s stream capabilities

Message ID 20241210134254.2967524-2-olivier.moysan@foss.st.com (mailing list archive)
State New, archived
Headers show
Series drm: bridge: adv7511: refine actual capabilities | expand

Commit Message

Olivier MOYSAN Dec. 10, 2024, 1:42 p.m. UTC
Set no_i2s_capture flag in hdmi_codec_pdata structure to report
that the ADV7511 HDMI bridge does not support i2s audio capture.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
---
 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Dmitry Baryshkov Dec. 11, 2024, 10:52 p.m. UTC | #1
On Tue, Dec 10, 2024 at 02:42:52PM +0100, Olivier Moysan wrote:
> Set no_i2s_capture flag in hdmi_codec_pdata structure to report
> that the ADV7511 HDMI bridge does not support i2s audio capture.
> 
> Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
> ---
>  drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
> index 61f4a38e7d2b..28ae81ca3651 100644
> --- a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
> +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
> @@ -234,6 +234,7 @@ static const struct hdmi_codec_pdata codec_data = {
>  	.ops = &adv7511_codec_ops,
>  	.max_i2s_channels = 2,
>  	.i2s = 1,
> +	.no_i2s_capture = 1,

Does it support spdif capture?

>  	.spdif = 1,
>  };
>  
> -- 
> 2.25.1
>
Olivier MOYSAN Dec. 19, 2024, 2:49 p.m. UTC | #2
Hi Dmitry,

On 12/11/24 23:52, Dmitry Baryshkov wrote:
> On Tue, Dec 10, 2024 at 02:42:52PM +0100, Olivier Moysan wrote:
>> Set no_i2s_capture flag in hdmi_codec_pdata structure to report
>> that the ADV7511 HDMI bridge does not support i2s audio capture.
>>
>> Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
>> ---
>>   drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
>> index 61f4a38e7d2b..28ae81ca3651 100644
>> --- a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
>> +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
>> @@ -234,6 +234,7 @@ static const struct hdmi_codec_pdata codec_data = {
>>   	.ops = &adv7511_codec_ops,
>>   	.max_i2s_channels = 2,
>>   	.i2s = 1,
>> +	.no_i2s_capture = 1,
> 
> Does it support spdif capture?
> 

"no_i2s_spdif = 1" is relevant also for adv7511 bridge.
I can add it in this serie.

>>   	.spdif = 1,
>>   };
>>   
>> -- 
>> 2.25.1
>>
> 

BRs
Olivier
Dmitry Baryshkov Dec. 20, 2024, 1:30 a.m. UTC | #3
On Thu, Dec 19, 2024 at 03:49:45PM +0100, Olivier MOYSAN wrote:
> Hi Dmitry,
> 
> On 12/11/24 23:52, Dmitry Baryshkov wrote:
> > On Tue, Dec 10, 2024 at 02:42:52PM +0100, Olivier Moysan wrote:
> > > Set no_i2s_capture flag in hdmi_codec_pdata structure to report
> > > that the ADV7511 HDMI bridge does not support i2s audio capture.
> > > 
> > > Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
> > > ---
> > >   drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 1 +
> > >   1 file changed, 1 insertion(+)
> > > 
> > > diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
> > > index 61f4a38e7d2b..28ae81ca3651 100644
> > > --- a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
> > > +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
> > > @@ -234,6 +234,7 @@ static const struct hdmi_codec_pdata codec_data = {
> > >   	.ops = &adv7511_codec_ops,
> > >   	.max_i2s_channels = 2,
> > >   	.i2s = 1,
> > > +	.no_i2s_capture = 1,
> > 
> > Does it support spdif capture?
> > 
> 
> "no_i2s_spdif = 1" is relevant also for adv7511 bridge.
> I can add it in this serie.

I think you mean no_spdif_playback / no_spdif_capture. Yes, please.

> 
> > >   	.spdif = 1,
> > >   };
> > > -- 
> > > 2.25.1
> > > 
> > 
> 
> BRs
> Olivier
diff mbox series

Patch

diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
index 61f4a38e7d2b..28ae81ca3651 100644
--- a/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
+++ b/drivers/gpu/drm/bridge/adv7511/adv7511_audio.c
@@ -234,6 +234,7 @@  static const struct hdmi_codec_pdata codec_data = {
 	.ops = &adv7511_codec_ops,
 	.max_i2s_channels = 2,
 	.i2s = 1,
+	.no_i2s_capture = 1,
 	.spdif = 1,
 };