[PATCH v2 3/3] drm: bridge: adv7511: remove s32 format from i2s capabilities

2025-01-08 Thread Olivier Moysan
The ADV7511 chip allows 24 bits samples max in I2S mode, excepted for direct AES3 mode (SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE format). However the HDMI codec exposes S32_LE format as supported. Adapt ADV7511 HDMI I2S format list to expose formats actually supported. Signed-off-by: Olivier Moysan

[PATCH v2 0/3] drm: bridge: adv7511: refine actual capabilities

2025-01-08 Thread Olivier Moysan
messages from Pipewire. Adjust the capabilities reported by the ADV7511 driver, to more accurately reflect its actual capabilities. Changes in v2: - Re-order patches - Set no_spdif_capture flag Olivier Moysan (3): drm: bridge: adv7511: fill stream capabilities ASoC: hdmi-codec: allow to refine

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

2025-01-08 Thread Olivier Moysan
Set no_i2s_capture and no_spdif_capture flags in hdmi_codec_pdata structure to report that the ADV7511 HDMI bridge does not support i2s or spdif audio capture. Signed-off-by: Olivier Moysan --- drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

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

2024-12-19 Thread Olivier MOYSAN
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 --- drivers

Re: [PATCH 2/3] drm: bridge: adv7511: remove s32 format from i2s capabilities

2024-12-19 Thread Olivier MOYSAN
Hi Dmitry, On 12/11/24 23:54, Dmitry Baryshkov wrote: On Tue, Dec 10, 2024 at 02:42:53PM +0100, Olivier Moysan wrote: The ADV7511 chip allows 24 bits samples max in I2S mode, excepted for direct AES3 mode (SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE format). However the HDMI codec exposes S32_LE

[PATCH 2/3] drm: bridge: adv7511: remove s32 format from i2s capabilities

2024-12-10 Thread Olivier Moysan
The ADV7511 chip allows 24 bits samples max in I2S mode, excepted for direct AES3 mode (SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE format). However the HDMI codec exposes S32_LE format as supported. Adapt ADV7511 HDMI I2S format list to expose formats actually supported. Signed-off-by: Olivier Moysan

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

2024-12-10 Thread Olivier Moysan
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 --- drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/adv7511

[PATCH 0/3] drm: bridge: adv7511: refine actual capabilities

2024-12-10 Thread Olivier Moysan
messages from Pipewire. Adjust the capabilities reported by the ADV7511 driver, to more accurately reflect its actual capabilities. Olivier Moysan (3): drm: bridge: adv7511: fill i2s stream capabilities drm: bridge: adv7511: remove s32 format from i2s capabilities ASoC: hdmi-codec: allow to

[PATCH v2 3/3] drm/bridge: sii902x: make audio mclk optional

2019-07-22 Thread Olivier Moysan
The master clock on i2s bus is not mandatory, as sii902X internal PLL can be used instead. Make use of mclk optional. Signed-off-by: Olivier Moysan Reviewed-by: Jyri Sarha Acked-by: Andrzej Hajda --- drivers/gpu/drm/bridge/sii902x.c | 19 ++- 1 file changed, 10 insertions

[PATCH v2 0/3] drm/bridge: sii902x: fix audio mclk management

2019-07-22 Thread Olivier Moysan
Fix audio master clock use for Silab sii902x HDMI transceiver. Make audio master clock optional, as this clock is not mandatory. Changes in v2: - Rely on clk framework to manage undefined mclk case. - Use devm_clk_get_optional instead of devm_clk_get. Olivier Moysan (3): drm/bridge: sii902x

[PATCH v2 1/3] drm/bridge: sii902x: fix missing reference to mclk clock

2019-07-22 Thread Olivier Moysan
Add devm_clk_get call to retrieve reference to master clock. Fixes: ff5781634c41 ("drm/bridge: sii902x: Implement HDMI audio support") Signed-off-by: Olivier Moysan Reviewed-by: Jyri Sarha Acked-by: Andrzej Hajda audio.i2s_fifo_sequence[i] |= audio

[PATCH v2 2/3] dt-bindings: display: sii902x: Change audio mclk binding

2019-07-22 Thread Olivier Moysan
As stated in SiL9022/24 datasheet, master clock is not required for I2S. Make mclk property optional in DT bindings. Fixes: 3f18021f43a3 ("dt-bindings: display: sii902x: Add HDMI audio bindings") Signed-off-by: Olivier Moysan Reviewed-by: Jyri Sarha Acked-by: Andrzej Hajda --- Doc

[PATCH] drm/bridge: sii902x: add audio graph card support

2019-07-03 Thread Olivier Moysan
Implement get_dai_id callback of audio HDMI codec to support ASoC audio graph card. HDMI audio output has to be connected to sii902x port 3. get_dai_id callback maps this port to ASoC DAI index 0. Signed-off-by: Olivier Moysan --- drivers/gpu/drm/bridge/sii902x.c | 23 +++ 1

[PATCH 0/3] drm/bridge: sii902x: fix audio mclk management

2019-07-02 Thread Olivier Moysan
Fix audio master clock use for Silab sii902x HDMI transceiver. Make audio master clock optional, as this clock is not mandatory. Olivier Moysan (3): drm/bridge: sii902x: fix missing reference to mclk clock dt-bindings: display: sii902x: Change audio mclk binding drm/bridge: sii902x: make

[PATCH 2/3] dt-bindings: display: sii902x: Change audio mclk binding

2019-07-02 Thread Olivier Moysan
As stated in SiL9022/24 datasheet, master clock is not required for I2S. Make mclk property optional in DT bindings. Fixes: 3f18021f43a3 ("dt-bindings: display: sii902x: Add HDMI audio bindings") Signed-off-by: Olivier Moysan --- Documentation/devicetree/bindings/display/bridge/sii90

[PATCH 3/3] drm/bridge: sii902x: make audio mclk optional

2019-07-02 Thread Olivier Moysan
The master clock on i2s bus is not mandatory, as sii902X internal PLL can be used instead. Make use of mclk optional. Fixes: ff5781634c41 ("drm/bridge: sii902x: Implement HDMI audio support") Signed-off-by: Olivier Moysan --- drivers/gpu/drm/bridge/sii9

[PATCH 1/3] drm/bridge: sii902x: fix missing reference to mclk clock

2019-07-02 Thread Olivier Moysan
Add devm_clk_get call to retrieve reference to master clock. Fixes: ff5781634c41 ("drm/bridge: sii902x: Implement HDMI audio support") Signed-off-by: Olivier Moysan --- drivers/gpu/drm/bridge/sii902x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/s

Re: [PATCH v4 6/6] drm/bridge: sii902x: Implement HDMI audio support

2019-03-14 Thread Olivier MOYSAN
Hello Jyri, STM32MP157C-DK2 discovery boards use a SiI9022A HDMI transmitter. see: https://www.st.com/en/evaluation-tools/stm32mp157c-dk2.html On this board audio samples are sent to HDMI transmitter through the i2s link. This i2s link does not provide a master clock. internal PLL is used inste

Re: [PATCH v3 5/6] dt-bindings: display: sii902x: Add HDMI audio bindings

2019-03-14 Thread Olivier MOYSAN
Hello Jyri, On 3/13/19 6:52 PM, Jyri Sarha wrote: > On 13/03/2019 18:47, Laurent Pinchart wrote: >> Hello again, >> >> On Wed, Mar 13, 2019 at 06:29:19PM +0200, Laurent Pinchart wrote: >>> On Wed, Mar 13, 2019 at 06:01:07PM +0200, Jyri Sarha wrote: The sii902x chip family supports also HDMI a

Re: [PATCH v2 0/5] drm/bridge: sii902x: HDMI-audio support and some fixes

2019-03-06 Thread Olivier MOYSAN
Hi Jyri, I also implemented HDMI audio support for sii902x to enable audio on a STM32 board. As you submitted your patches first, I will align on it. I had a first look at the current patch and I have some comments below. I will review more in details and make some tests, asap. I agree with Laur