Hi Ondřej,

I don't use the sunxi-ng driver which is too complicated and asks for a 
complete rewrite
for the A83T (you may find my own driver in my site - bug fixes to come).
Especially, in my ccu clk driver, the resets and bus gates functions are 
included in the main
clocks and I forgot to add the gates in the sun8i-h3.dtsi.

About audio, there are some problems:
- I discovered a bug with set_rate_parent in the clock driver: it does not 
work when the parent
  clock has a rate close enough to the wanted rate, It did work for me with 
the H3 but not with
  the A83T. I fixed it in my ccu clk, but this bug also exists in sunxi-ng.
- the burst width is 4 for the H3 and this value is refused by the DMA 
driver. I will submit a
  new patch soon.

Otherwise, I am using the legacy u-boot which sets most clocks. With the 
official u-boot, setting
some clocks by the kernel may be wrong, as you point to by adding more 
set_rate_parent.
I will fix this in my ccu driver, thanks.

On Sunday, October 23, 2016 at 11:57:03 AM UTC+2, Ondřej Jirman wrote:
>
> Dne 22.10.2016 v 15:28 Jean-Francois Moine napsal(a): 
> > This patchset series adds HDMI audio and video support to the Allwinner 
> > sun8i SoCs which include the display engine 2 (DE2). 
>
> Hi, 
>
> I've tested your patches on top of my 4.9-rc1 changes on Orange Pi PC, 
> and HDMI display output works well -- with some changes to sunxi-ng H3 
> clock driver. I've put those changes here: 
>
>   https://github.com/megous/linux/commits/orange-pi-4.9-hdmi 
>
> When I run firefox, it feels faster and less laggy than armbian 3.4 
> desktop. Very nice! 
>
> The only issue that I've found, is that clk setup for ASoC driver fails 
> with EINVAL. 
>
> When I run pulseaudio, dmesg is filled with this: 
>
> [   29.951468] sun8i-audio 1c22800.i2s: ASoC: can't set 1c22800.i2s hw 
> params: -22 
> [   29.969184] Setting sysclk rate failed -22 
> [   29.982440] sun8i-audio 1c22800.i2s: ASoC: can't set 1c22800.i2s hw 
> params: -22 
> [   30.000148] Setting sysclk rate failed -22 
> [   30.013398] sun8i-audio 1c22800.i2s: ASoC: can't set 1c22800.i2s hw 
> params: -22 
> [   30.032790] Setting sysclk rate failed -22 
> [   30.044411] sun8i-audio 1c22800.i2s: ASoC: can't set 1c22800.i2s hw 
> params: -22 
> [   30.062252] Setting sysclk rate failed -22 
>
> What do you base your patches on? Do you have some patches for the 
> sunxi-ng H3 clock driver that are required for this to work? 
>
> thank you and regards, 
>   o. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to