DMA, CMA and SWIOTLB

2016-06-29 Thread Jose Abreu
Hi all, I am writing a very simple KMS driver that uses Xilinx VDMA to transfer data between the host and a FPGA. To handle memory allocation for DMA I am using the CMA helpers available in the DRM subsystem. When setting for low video modes (small memory requirements) everything works fine, but i

[PATCH] adv7511: Set picture aspect ratio

2016-03-23 Thread Jose Abreu
. Signed-off-by: Jose Abreu --- drivers/gpu/drm/i2c/adv7511.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/adv7511.c index a02112b..c9aa83a 100644 --- a/drivers/gpu/drm/i2c/adv7511.c +++ b/drivers/gpu

[PATCH 0/4] Add I2S/ADV7511 audio support for ARC AXS10x boards

2016-03-28 Thread Jose Abreu
ARC AXS10x platforms consist of a mainboard with several peripherals. One of those peripherals is an HDMI output port controlled by ADV7511 transmitter. This patch set adds audio for the ADV7511 transmitter and I2S audio for the AXS10x platform. Jose Abreu (4): drm/i2c/adv7511: Add audio

[PATCH 1/4] drm/i2c/adv7511: Add audio support

2016-03-28 Thread Jose Abreu
ode is automatically started at boot and the audio (when enabled) registers as a codec into ALSA. SPDIF DAI format was also added to ASoC as it is required by adv7511 audio. Signed-off-by: Jose Abreu --- drivers/gpu/drm/i2c/Kconfig |8 + drivers/gpu/drm/i2c/Makefile|2 +

[PATCH 2/4] ARC: axs10x: Update defconfigs so that audio is enabled

2016-03-28 Thread Jose Abreu
The defconfigs for the AXS boards were updated so that ALSA SoC is enabled and also the audio for the ADV7511 HDMI transmitter. Signed-off-by: Jose Abreu --- arch/arc/configs/axs101_defconfig | 3 +++ arch/arc/configs/axs103_defconfig | 5 + arch/arc/configs/axs103_smp_defconfig | 5

[PATCH 3/4] ASoC: dwc: Add I2S HDMI audio support using custom platform driver

2016-03-28 Thread Jose Abreu
HDMI audio support was added to the AXS board using an I2S cpu driver and a custom platform driver. The platform driver supports two channels @ 16 bits with rates 32k, 44.1k and 48k. ALSA Simple audio card is used to glue the cpu, platform and codec driver (adv7511). Signed-off-by: Jose Abreu

[PATCH 4/4] ARC: axs10x: Update defconfigs so that I2S is enabled

2016-03-28 Thread Jose Abreu
The defconfigs for the AXS boards were updated to enable Designware I2S driver. Signed-off-by: Jose Abreu --- arch/arc/configs/axs101_defconfig | 1 + arch/arc/configs/axs103_defconfig | 1 + arch/arc/configs/axs103_smp_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a

[PATCH 0/3 v2] Add I2S/ADV7511 audio support for ARC AXS10x boards

2016-03-28 Thread Jose Abreu
to separate patch (as suggested by Alexey Brodkin) * Removed defconfigs entries (as suggested by Alexey Brodkin) Jose Abreu (3): drm/i2c/adv7511: Add audio support ASoC: dwc: Add I2S HDMI audio support arc: axs10x: Add support for Designware I2S on DT arch/arc/boot/dts/axs10x_mb.dtsi|

[PATCH 1/3 v2] drm/i2c/adv7511: Add audio support

2016-03-28 Thread Jose Abreu
ode is automatically started at boot and the audio (when enabled) registers as a codec into ALSA. SPDIF DAI format was also added to ASoC as it is required by adv7511 audio. Signed-off-by: Jose Abreu --- No changes v1 -> v2. drivers/gpu/drm/i2c/Kconfig | 11 + drivers/gpu/drm/i2c

[PATCH 2/3 v2] ASoC: dwc: Add I2S HDMI audio support

2016-03-28 Thread Jose Abreu
HDMI audio support was added to the AXS board using an I2S cpu driver and a custom platform driver. The platform driver supports two channels @ 16 bits with rates 32k, 44.1k and 48k. ALSA Simple audio card is used to glue the cpu, platform and codec driver (adv7511). Signed-off-by: Jose Abreu

[PATCH 3/3 v2] arc: axs10x: Add support for Designware I2S on DT

2016-03-28 Thread Jose Abreu
Synopsys Designware ARC SDP boards support HDMI audio output using the ADV7511 HDMI transmitter. This patchs enables audio output using Designware I2S driver, ALSA SoC simple audio card and ADV7511 codec. Signed-off-by: Jose Abreu --- Changes v1 -> v2: * This change was introduced in

[PATCH 2/3 v2] ASoC: dwc: Add I2S HDMI audio support

2016-03-28 Thread Jose Abreu
Hi Alexey, On 28-03-2016 16:35, Alexey Brodkin wrote: > Hi Jose, > > On Mon, 2016-03-28 at 15:36 +0100, Jose Abreu wrote: >> HDMI audio support was added to the AXS board using an >> I2S cpu driver and a custom platform driver. >> >> The platform driver sup

[PATCH 2/3 v2] ASoC: dwc: Add I2S HDMI audio support

2016-03-29 Thread Jose Abreu
Hi Mark, On 29-03-2016 18:31, Mark Brown wrote: > On Mon, Mar 28, 2016 at 03:36:10PM +0100, Jose Abreu wrote: >> HDMI audio support was added to the AXS board using an >> I2S cpu driver and a custom platform driver. >> >> The platform driver supports two channels

[PATCH 1/3 v2] drm/i2c/adv7511: Add audio support

2016-03-29 Thread Jose Abreu
Hi Archit, On 29-03-2016 09:05, Archit Taneja wrote: > Hi, > > On 03/28/2016 08:06 PM, Jose Abreu wrote: >> This patch adds audio support for the ADV7511 HDMI transmitter >> using ALSA SoC. >> >> The code was ported from Analog Devices linux tree from >

Re: [RFC] drm: Parse HDMI 2.0 YCbCr 4:2:0 VDB and VCB

2017-01-11 Thread Jose Abreu
Hi Ville, On 10-01-2017 17:21, Ville Syrjälä wrote: [snip] >> But we already have color_formats field in drm_display_info >> struct, right? Shouldn't we instead create for example a helper >> which returns the best output colorspace? According to what you >> said it would be something like: >>

<    1   2   3   4