Signed-off-by: Yakir Yang
---
Changes in v4: None
Changes in v3:
- Setting the .pm member instead of suspend/resume
Changes in v2:
- Add suspend/resume support for dw_hdmi_rockchip driver
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 16
1 file changed, 16 insertions(+)
diff
Wrap irq control in functions, and then we can call in
dw_hdmi_bind/dw_hdmi_unbind/dw_hdmi_resume/dw_hdmi_suspend
functions.
Signed-off-by: Yakir Yang
---
Changes in v4: None
Changes in v3:
- Wrap irq control in fucntions
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 75
, and umnute the interrupt we need in the
resume stage.
Signed-off-by: Yakir Yang
---
Changes in v4: None
Changes in v3:
- Clear Hotplug interrupts before dw_hdmi_fb_register
Changes in v2:
- Add irq control to suspend/resume interfaces
drivers/gpu/drm/bridge/dw_hdmi.c | 41
e rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt
Daniel Kurtz (3):
drm: bridge/dw_hdmi: adjust n/cts setting order
drm: bridge/dw_hdmi: set ncts_atomic_write & cts_manual
drm: bridge/dw_hdmi: add audio sample channel status setting
Yakir Yang (12):
drm: bridge/dw_hdmi
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4: None
Changes in v3:
- Setting the .pm member instead of suspend/resume
Changes in v2:
- Add suspend/resume support for dw_hdmi_rockchip driver
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 16
1 file changed, 16
Add enable and disable callbacks to dw_hdmi_audio interface so that
dw_hdmi_audio can enable and disable the dw_hdmi audio.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4:
- Rename hdmi_audio_* to dw_hdmi_audio_*
Changes in v3:
- Delete hdmi_audio_config interface and modify
, and umnute the interrupt we need in the
resume stage.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4: None
Changes in v3:
- Clear Hotplug interrupts before dw_hdmi_fb_register
Changes in v2:
- Add irq control to suspend/resume interfaces
drivers/gpu/drm/bridge/dw_hdmi.c | 41
Add more n/cts values, in that case we can support audio for more
display resolutions (128 * SampleRate = PixelClock * N / CTS).
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4: None
Changes in v3: None
Changes in v2:
- add more n/cts combinations for more display resolutions
Required properties:
- compatible: platform specific
- i2s-controller: the i2s controller device node
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4: None
Changes in v3:
- modify cpu-of-node to i2s-controller
Changes in v2:
- remove codec-name and codec-dai-name
- rename
/dw_hdmi: adjust n/cts setting order
drm: bridge/dw_hdmi: set ncts_atomic_write cts_manual
drm: bridge/dw_hdmi: add audio sample channel status setting
Yakir Yang (12):
drm: bridge/dw_hdmi: add irq control to suspend/resume
drm: bridge/dw_hdmi: wrap irq control in fucntions
drm: rockchip
Wrap irq control in functions, and then we can call in
dw_hdmi_bind/dw_hdmi_unbind/dw_hdmi_resume/dw_hdmi_suspend
functions.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4: None
Changes in v3:
- Wrap irq control in fucntions
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4: None
Changes in v3:
- Combine hdmi_set_clock_regenerator_n() and hdmi_regenerate_cts()
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 17 ++---
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git
Add a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec
as codec_dai to provide hdmi audio output on rk3288 platforms.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4:
- Add .pm = snd_soc_pm_ops,
Changes in v3:
- Delete the operation of jack in rockchip-hdmi-audio
From: Daniel Kurtz djku...@chromium.org
This patch changes the order to:
- write CTS3 CTS_manual (if supported) | N_shift | CTS[19:16]
- write CTS2 CTS[15:8]
- write CTS1 CTS[7:0]
- write N3 N[19:16]
- write N2 N[15:8]
- write N1 N[7:0]
Signed-off-by: Yakir Yang y...@rock-chips.com
Signed-off
.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4:
- Combine N3 registers setting
Changes in v3:
- Set ncts_atomic_write cts_manual
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 10 +-
drivers/gpu/drm/bridge/dw_hdmi.h | 4
2 files changed, 13 insertions(+), 1
codec driver creat an standard alsa device, than config audio
and report jack status through some callback interfaces that
dw_hdmi driver support.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4:
- Replace delaywork with irq thread, and add suspend/resume interfaces,
Replace dw
By parsing the identification registers we can know what functions
are present on the hdmi ip.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4:
-Correct phy_type assignment bug
Changes in v3:
- Add ID registers parse and record
Changes in v2: None
drivers/gpu/drm/bridge
creat dw-hdmi-audio device dynamically in probe function,
and transfer some interfaces to dw-hdmi-audio driver for
setting hdmi audio format control hdmi audio clock.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4: None
Changes in v3:
- Remove audio_config get_connect_status
From: Daniel Kurtz djku...@chromium.org
When transmitting IEC60985 linear PCM audio, we configure the
Audio Sample Channel Status information of all the channel
status bits in the IEC60958 frame.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4:
- Give HDMI_FC_AUD_SCHNL8
If the monitor support audio, so we should support audio for it, even if
the display resolution is No-CEA mode.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v4:
- Add hdmi audio support when monitor support audio
Changes in v3: None
Changes in v2:
- Enable audio support
klvl & txlvl should be set to 17.
Signed-off-by: Yakir Yang
---
drivers/gpu/drm/bridge/dw_hdmi.c| 14 +++---
drivers/gpu/drm/imx/dw_hdmi-imx.c | 12 ++--
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 14 +++---
include/drm/
% decrease.
- For hdmi single-ended test, we set CKLVL & TXLVL to 17 when pixel
clock is 74.25MHz, keep CKLVL & TXLVL to 13 when pixel clock is 148.5MHz.
Yakir Yang (1):
drm: bridge/dw_hdmi: fixed codec style
drivers/gpu/drm/bridge/dw_hdmi.c |8
1 file changed, 4 insertio
As for 1920x1080 display resolution, we should turn on the Transmitter
Trailer-B, and adjust slopeboost to 25%-35% decrease.
Signed-off-by: Yakir Yang
---
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/rockchip
dw_hdmi_plat_data *plat_data = hdmi->plat_data;
+ const struct dw_hdmi_mpll_config *mpll_config = plat_data->mpll_cfg;
+ const struct dw_hdmi_curr_ctrl *curr_ctrl = plat_data->cur_ctr;
+ const struct dw_hdmi_sym_term *sym_term = plat_data->sym_term;
Signed-off-by: Yakir Yang
---
dr
% decrease.
- For hdmi single-ended test, we set CKLVL & TXLVL to 17 when pixel
clock is 74.25MHz, keep CKLVL & TXLVL to 13 when pixel clock is 148.5MHz.
Yakir Yang (3):
drm: bridge/dw_hdmi: fixed codec style
drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test
drm: bridge/dw_hdmi:
should be set to 17.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
drivers/gpu/drm/bridge/dw_hdmi.c| 14 +++---
drivers/gpu/drm/imx/dw_hdmi-imx.c | 12 ++--
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 14 +++---
include/drm/bridge/dw_hdmi.h
% decrease.
- For hdmi single-ended test, we set CKLVL TXLVL to 17 when pixel
clock is 74.25MHz, keep CKLVL TXLVL to 13 when pixel clock is 148.5MHz.
Yakir Yang (1):
drm: bridge/dw_hdmi: fixed codec style
drivers/gpu/drm/bridge/dw_hdmi.c |8
1 file changed, 4 insertions(+), 4
% decrease.
- For hdmi single-ended test, we set CKLVL TXLVL to 17 when pixel
clock is 74.25MHz, keep CKLVL TXLVL to 13 when pixel clock is 148.5MHz.
Yakir Yang (3):
drm: bridge/dw_hdmi: fixed codec style
drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test
drm: bridge/dw_hdmi: improve
*plat_data = hdmi-plat_data;
+ const struct dw_hdmi_mpll_config *mpll_config = plat_data-mpll_cfg;
+ const struct dw_hdmi_curr_ctrl *curr_ctrl = plat_data-cur_ctr;
+ const struct dw_hdmi_sym_term *sym_term = plat_data-sym_term;
Signed-off-by: Yakir Yang y...@rock-chips.com
---
drivers/gpu/drm/bridge
As for 1920x1080 display resolution, we should turn on the Transmitter
Trailer-B, and adjust slopeboost to 25%-35% decrease.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Add a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec
as codec_dai to provide hdmi audio output on rk3288 platforms.
Signed-off-by: Yakir Yang
---
Changes in v3:
- Delete the operation of jack in rockchip-hdmi-audio driver,
get ready to switch to simple-audio-card driver
Required properties:
- compatible: platform specific
- i2s-controller: the i2s controller device node
Signed-off-by: Yakir Yang
---
Changes in v3:
- modify cpu-of-node to i2s-controller
Changes in v2:
- remove codec-name and codec-dai-name
- rename rockchip,rockchip-hdmi-audio.txt to rockchip
creat dw-hdmi-audio device dynamically in probe function,
and transfer some interfaces to dw-hdmi-audio driver for
setting hdmi audio format & control hdmi audio clock.
Signed-off-by: Yakir Yang
---
Changes in v3:
- Remove audio_config & get_connect_status callback functions
and add wr
Add audio clock enable/disable/restore interfacess, those functions
can be called concurrently on multiple different threads of execution
to change the hdmi audio enable state.
Signed-off-by: Yakir Yang
---
Changes in v3:
- Delete hdmi_audio_config interface and modify audio clock control
codec driver creat an standard alsa device, than config audio
and report jack status through some callback interfaces that
dw_hdmi driver support.
Signed-off-by: Yakir Yang
---
Changes in v3:
- Keep audio format config function in dw-hdmi-audio driver
and remove audio_config
Add more n/cts values, in that case we can support audio for more
display resolutions (128 * SampleRate = PixelClock * N / CTS).
Signed-off-by: Yakir Yang
---
Changes in v3: None
Changes in v2:
- add more n/cts combinations for more display resolutions
drivers/gpu/drm/bridge/dw_hdmi.c | 58
When transmitting IEC60985 linear PCM audio, we configure the
Aduio Sample Channel Status information of all the channel
status bits in the IEC60958 frame.
(am from https://patchwork.kernel.org/patch/5749101/)
Signed-off-by: Yakir Yang
---
Changes in v3:
- Determine whether sample channel should
If the monitor support audio, so we should support audio for it, even if
the display resolution is No-CEA mode.
Signed-off-by: Yakir Yang
---
Changes in v3: None
Changes in v2:
- enable audio support for No-CEA display mode
drivers/gpu/drm/bridge/dw_hdmi.c | 10 +-
1 file changed, 5
This patch changes the order to:
- write CTS3 CTS_manual = 0
- write CTS3 N_shift = 0
- write CTS3 CTS value
- write CTS2 CTS value
- write CTS1 CTS value
- write N3 N value
- write N2 N value
- write N1 N value
Signed-off-by: Yakir Yang
---
Changes in v3:
- Only adjust the n/cts setting order
= 1
- write CTS3 CTS_manual = 1
Signed-off-by: Yakir Yang
---
Changes in v3:
- Set ncts_atomic_write & cts_manual
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 13 +++--
drivers/gpu/drm/bridge/dw_hdmi.h | 6 ++
2 files changed, 17 insertions(+), 2 deletions(-)
di
Signed-off-by: Yakir Yang
---
Changes in v3:
- Combine hdmi_set_clock_regenerator_n() and hdmi_regenerate_cts()
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 16 ++--
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers
By parsing the indentification registers we can know what functions
are present on the hdmi ip.
Signed-off-by: Yakir Yang
---
Changes in v3:
- Add ID registers parse and record
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 59
drivers/gpu/drm
Signed-off-by: Yakir Yang
---
Changes in v3:
- Setting the .pm member instead of suspend/resume
Changes in v2:
- Add suspend/resume support for dw_hdmi_rockchip driver
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 16
1 file changed, 16 insertions(+)
diff --git a/drivers/gpu
Wrap irq control in functions, and then we can call in dw_hdmi_bind /
dw_hdmi_unbind / dw_hdmi_resume / dw_hdmi_suspend functions.
Signed-off-by: Yakir Yang
---
Changes in v3:
- Wrap irq control in fucntions
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 75
, and umnute the interrupt we need in the
resume stage.
Signed-off-by: Yakir Yang
---
Changes in v3:
- Clear Hotplug interrupts before dw_hdmi_fb_register
Changes in v2:
- Add irq control to suspend/resume interfaces
drivers/gpu/drm/bridge/dw_hdmi.c | 41
"codec-name" & "codec-dai-name" an const name
- remove codec-name and codec-dai-name
- rename rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt
Yakir Yang (15):
drm: bridge/dw_hdmi: add irq control to suspend/resume
drm: bridge/dw_h
an const name
- remove codec-name and codec-dai-name
- rename rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt
Yakir Yang (15):
drm: bridge/dw_hdmi: add irq control to suspend/resume
drm: bridge/dw_hdmi: wrap irq control in fucntions
drm: rockchip/dw_hdmi_rockchip: add
By parsing the indentification registers we can know what functions
are present on the hdmi ip.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Add ID registers parse and record
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 59
Required properties:
- compatible: platform specific
- i2s-controller: the i2s controller device node
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- modify cpu-of-node to i2s-controller
Changes in v2:
- remove codec-name and codec-dai-name
- rename rockchip,rockchip-hdmi
Add a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec
as codec_dai to provide hdmi audio output on rk3288 platforms.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Delete the operation of jack in rockchip-hdmi-audio driver,
get ready to switch to simple
, and umnute the interrupt we need in the
resume stage.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Clear Hotplug interrupts before dw_hdmi_fb_register
Changes in v2:
- Add irq control to suspend/resume interfaces
drivers/gpu/drm/bridge/dw_hdmi.c | 41
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Setting the .pm member instead of suspend/resume
Changes in v2:
- Add suspend/resume support for dw_hdmi_rockchip driver
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 16
1 file changed, 16 insertions(+)
diff
This patch changes the order to:
- write CTS3 CTS_manual = 0
- write CTS3 N_shift = 0
- write CTS3 CTS value
- write CTS2 CTS value
- write CTS1 CTS value
- write N3 N value
- write N2 N value
- write N1 N value
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Only adjust the n
- write CTS3 CTS_manual = 1
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Set ncts_atomic_write cts_manual
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 13 +++--
drivers/gpu/drm/bridge/dw_hdmi.h | 6 ++
2 files changed, 17 insertions(+), 2 deletions
When transmitting IEC60985 linear PCM audio, we configure the
Aduio Sample Channel Status information of all the channel
status bits in the IEC60958 frame.
(am from https://patchwork.kernel.org/patch/5749101/)
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Determine whether
If the monitor support audio, so we should support audio for it, even if
the display resolution is No-CEA mode.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3: None
Changes in v2:
- enable audio support for No-CEA display mode
drivers/gpu/drm/bridge/dw_hdmi.c | 10 +-
1
Add more n/cts values, in that case we can support audio for more
display resolutions (128 * SampleRate = PixelClock * N / CTS).
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3: None
Changes in v2:
- add more n/cts combinations for more display resolutions
drivers/gpu/drm/bridge
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Combine hdmi_set_clock_regenerator_n() and hdmi_regenerate_cts()
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 16 ++--
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/bridge
Wrap irq control in functions, and then we can call in dw_hdmi_bind /
dw_hdmi_unbind / dw_hdmi_resume / dw_hdmi_suspend functions.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Wrap irq control in fucntions
Changes in v2: None
drivers/gpu/drm/bridge/dw_hdmi.c | 75
codec driver creat an standard alsa device, than config audio
and report jack status through some callback interfaces that
dw_hdmi driver support.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Keep audio format config function in dw-hdmi-audio driver
and remove audio_config
Add audio clock enable/disable/restore interfacess, those functions
can be called concurrently on multiple different threads of execution
to change the hdmi audio enable state.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Delete hdmi_audio_config interface and modify audio
creat dw-hdmi-audio device dynamically in probe function,
and transfer some interfaces to dw-hdmi-audio driver for
setting hdmi audio format control hdmi audio clock.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v3:
- Remove audio_config get_connect_status callback functions
Required properties:
- compatible: platform specific
- cpu-of-node: the device node of cpu_dai
Signed-off-by: Yakir Yang
---
Changes in v2:
- remove codec-name and codec-dai-name
- rename rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt
.../bindings/sound/rockchip
Add a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec
as codec_dai to provide hdmi audio output on rk3288 platforms.
Signed-off-by: Yakir Yang
---
Changes in v2:
- give "codec-name" & "codec-dai-name" an const name
sound/soc/rockchip/Kconfig
codec driver creat an standard alsa device, than config audio
and report jack status through some callback interfaces that
dw_hdmi driver support.
Signed-off-by: Yakir Yang
---
Changes in v2:
- Update dw_hdmi audio control interfaces, and adjust jack report process
sound/soc/codecs/Kconfig
creat dw-hdmi-audio device dynamically in probe function,
and transfer some interfaces to dw-hdmi-audio driver for
setting hdmi audio format & control hdmi audio clock.
Signed-off-by: Yakir Yang
---
Changes in v2:
- Update the audio control interfaces
drivers/gpu/drm/bridge/dw_hdmi.c
Designware HDMI supports four interfaces to config hdmi audio
(I2S, S/PDIF, Generic Parallel Audio, AHB Audio DMA), but rk3288
only support two ways to config hdmi audio(I2S, S/PDIF), So we
take I2S as hdmi audio operation interfaces.
Signed-off-by: Yakir Yang
---
Changes in v2:
- Add audio
If the monitor support audio, so we should support audio for it, even if
the display resolution is No-CEA mode.
Signed-off-by: Yakir Yang
---
Changes in v2:
- enable audio support for No-CEA display mode
drivers/gpu/drm/bridge/dw_hdmi.c | 10 +-
1 file changed, 5 insertions(+), 5
Add more n/cts values, in that case we can support audio for more
display resolutions (128 * SampleRate = PixelClock * N / CTS).
Signed-off-by: Yakir Yang
---
Changes in v2:
- add more n/cts combinations for more display resolutions
drivers/gpu/drm/bridge/dw_hdmi.c | 58
RK3288's VOP do not support INTERLACE display mode, so we should
remove those modes out of mode_ok list.
Signed-off-by: Yakir Yang
---
Changes in v2:
- filter interlace display mode for rockchip vop
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 ++-
1 file changed, 2 insertions(+), 1
Signed-off-by: Yakir Yang
---
Changes in v2:
- Add suspend/resume support for dw_hdmi_rockchip driver
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
b/drivers/gpu/drm/rockchip/dw_hdmi
, and umnute the interrupt we need in the
resume stage.
Signed-off-by: Yakir Yang
---
Changes in v2:
- Add irq control to suspend/resume interfaces
drivers/gpu/drm/bridge/dw_hdmi.c | 43
include/drm/bridge/dw_hdmi.h | 2 ++
2 files changed, 45 insertions
When transmitting IEC60985 linear PCM audio, we configure the
Aduio Sample Channel Status information of all the channel
status bits in the IEC60958 frame.
Signed-off-by: Yakir Yang
---
Changes in v2:
- Add audio sample channel status setting
drivers/gpu/drm/bridge/dw_hdmi.c | 41
value as in step 1.)
6. aud_n2
7. aud_n1
Signed-off-by: Yakir Yang
---
Changes in v2:
- adjust n/cts setting order
drivers/gpu/drm/bridge/dw_hdmi.c | 37 +
drivers/gpu/drm/bridge/dw_hdmi.h | 6 ++
2 files changed, 27 insertions(+), 16 deletions(-)
diff
t; & "codec-dai-name" an const name
- remove codec-name and codec-dai-name
- rename rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt
Yakir Yang (12):
drm: bridge/dw_hdmi: adjust n/cts setting order
drm: bridge/dw_hdmi: add audio sample channel status setting
dr
When transmitting IEC60985 linear PCM audio, we configure the
Aduio Sample Channel Status information of all the channel
status bits in the IEC60958 frame.
Signed-off-by: Yakir Yang
---
Changes in v2:
- Add audio sample channel status setting
drivers/gpu/drm/bridge/dw_hdmi.c | 41
When transmitting IEC60985 linear PCM audio, we configure the
Aduio Sample Channel Status information of all the channel
status bits in the IEC60958 frame.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- Add audio sample channel status setting
drivers/gpu/drm/bridge/dw_hdmi.c
Add more n/cts values, in that case we can support audio for more
display resolutions (128 * SampleRate = PixelClock * N / CTS).
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- add more n/cts combinations for more display resolutions
drivers/gpu/drm/bridge/dw_hdmi.c | 58
If the monitor support audio, so we should support audio for it, even if
the display resolution is No-CEA mode.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- enable audio support for No-CEA display mode
drivers/gpu/drm/bridge/dw_hdmi.c | 10 +-
1 file changed, 5
name
- remove codec-name and codec-dai-name
- rename rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt
Yakir Yang (12):
drm: bridge/dw_hdmi: adjust n/cts setting order
drm: bridge/dw_hdmi: add audio sample channel status setting
drm: bridge/dw_hdmi: add irq control
value as in step 1.)
6. aud_n2
7. aud_n1
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- adjust n/cts setting order
drivers/gpu/drm/bridge/dw_hdmi.c | 37 +
drivers/gpu/drm/bridge/dw_hdmi.h | 6 ++
2 files changed, 27 insertions(+), 16
Designware HDMI supports four interfaces to config hdmi audio
(I2S, S/PDIF, Generic Parallel Audio, AHB Audio DMA), but rk3288
only support two ways to config hdmi audio(I2S, S/PDIF), So we
take I2S as hdmi audio operation interfaces.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes
codec driver creat an standard alsa device, than config audio
and report jack status through some callback interfaces that
dw_hdmi driver support.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- Update dw_hdmi audio control interfaces, and adjust jack report process
sound/soc
, and umnute the interrupt we need in the
resume stage.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- Add irq control to suspend/resume interfaces
drivers/gpu/drm/bridge/dw_hdmi.c | 43
include/drm/bridge/dw_hdmi.h | 2 ++
2 files
creat dw-hdmi-audio device dynamically in probe function,
and transfer some interfaces to dw-hdmi-audio driver for
setting hdmi audio format control hdmi audio clock.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- Update the audio control interfaces
drivers/gpu/drm/bridge
Add a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec
as codec_dai to provide hdmi audio output on rk3288 platforms.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- give codec-name codec-dai-name an const name
sound/soc/rockchip/Kconfig | 9
When transmitting IEC60985 linear PCM audio, we configure the
Aduio Sample Channel Status information of all the channel
status bits in the IEC60958 frame.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- Add audio sample channel status setting
drivers/gpu/drm/bridge/dw_hdmi.c
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- Add suspend/resume support for dw_hdmi_rockchip driver
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
b/drivers/gpu/drm
RK3288's VOP do not support INTERLACE display mode, so we should
remove those modes out of mode_ok list.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- filter interlace display mode for rockchip vop
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 ++-
1 file changed, 2
Required properties:
- compatible: platform specific
- cpu-of-node: the device node of cpu_dai
Signed-off-by: Yakir Yang y...@rock-chips.com
---
Changes in v2:
- remove codec-name and codec-dai-name
- rename rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt
.../bindings
Add hdmi_audio to rk3288.dtsi, enable hdmi_audio in rk3288-evb.dts
Signed-off-by: Yakir Yang
series-cc: Dominik Behr
---
arch/arm/boot/dts/rk3288-evb.dtsi | 11 +++
arch/arm/boot/dts/rk3288.dtsi | 8
2 files changed, 19 insertions(+)
diff --git a/arch/arm/boot/dts
Required properties:
- compatible: platform specific
- cpu-of-node: the device node of cpu_dai
- codec-name: the dw-hdmi codec's device name
- codec-dai-name: the dw-hdmi codec's dai name
Signed-off-by: Yakir Yang
---
.../bindings/sound/rockchip,rockchip-hdmi-audio.txt | 16
creat dw-hdmi-audio device in probe function, and support
some interfaces to dw-hdmi-audio driver for setting hdmi
audio format.
Signed-off-by: Yakir Yang
---
drivers/gpu/drm/bridge/dw_hdmi.c | 28
include/drm/bridge/dw_hdmi.h | 12
2 files changed
Adds a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec
as codec_dai to provide hdmi audio output on rk3288 platforms.
Signed-off-by: Yakir Yang
---
sound/soc/rockchip/Kconfig | 9 ++
sound/soc/rockchip/Makefile | 2 +
sound/soc/rockchip
codec driver get some interfaces from dw_hdmi driver, than using those
to set hdmi audio formats, corresponding to alsa formats.
Signed-off-by: Yakir Yang
---
sound/soc/codecs/Kconfig | 4 +
sound/soc/codecs/Makefile| 2 +
sound/soc/codecs/dw-hdmi-audio.c | 371
hat should be outputted by the Audio
Packetizer.
Signed-off-by: Yakir Yang
---
drivers/gpu/drm/bridge/dw_hdmi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu/drm/bridge/dw_hdmi.c
index 9ba96de..0c19276 100644
--- a/drivers/gpu/
support
see https://patchwork.kernel.org/patch/5442361/
Yakir Yang (6):
drm: bridge/dw_hdmi: add hdmi audio config interfaces
drm: bridge/bridge: add support for rk3288 hdmi-audio
ASoC: dw-hdmi-audio: add codec driver for dw hdmi audio
ASoC: rockchip-hdmi-audio: add sound driver for hdmi audio
support
see https://patchwork.kernel.org/patch/5442361/
Yakir Yang (6):
drm: bridge/dw_hdmi: add hdmi audio config interfaces
drm: bridge/bridge: add support for rk3288 hdmi-audio
ASoC: dw-hdmi-audio: add codec driver for dw hdmi audio
ASoC: rockchip-hdmi-audio: add sound driver for hdmi audio
be outputted by the Audio
Packetizer.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
drivers/gpu/drm/bridge/dw_hdmi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu/drm/bridge/dw_hdmi.c
index 9ba96de..0c19276 100644
--- a/drivers/gpu
codec driver get some interfaces from dw_hdmi driver, than using those
to set hdmi audio formats, corresponding to alsa formats.
Signed-off-by: Yakir Yang y...@rock-chips.com
---
sound/soc/codecs/Kconfig | 4 +
sound/soc/codecs/Makefile| 2 +
sound/soc/codecs/dw-hdmi-audio.c
1301 - 1400 of 1404 matches
Mail list logo