[linux-sunxi] Re: [PATCH v10 00/15] Add Allwinner H3/H5/H6/A64 HDMI audio

2020-10-30 Thread Stefan Monnier
>> Yay! > Note that this doesn't bring HDMI audio card just yet. Another driver will be > needed for that. That's what I suspected, but thanks for clarifying. >> Now, I wonder: will that make it easier to add support for HDMI-Audio for >> the A10/A20? > No, A10/A20 HDMI audio uses completely

Re: [linux-sunxi] Re: [PATCH v10 00/15] Add Allwinner H3/H5/H6/A64 HDMI audio

2020-10-30 Thread Jernej Škrabec
Dne petek, 30. oktober 2020 ob 21:50:43 CET je Stefan Monnier napisal(a): > >> This series add H6 I2S support and the I2S node missing to support > >> HDMI audio in different Allwinner SoC. > > > > Applied to > > > >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git > >

[linux-sunxi] Re: [PATCH v10 00/15] Add Allwinner H3/H5/H6/A64 HDMI audio

2020-10-30 Thread Stefan Monnier
>> This series add H6 I2S support and the I2S node missing to support >> HDMI audio in different Allwinner SoC. > Applied to >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Yay! Now, I wonder: will that make it easier to add support for HDMI-Audio for the A10/A20?

[linux-sunxi] Re: [PATCH v10 14/15] dt-bindings: sound: sun4i-i2s: Document H3 with missing RX channel possibility

2020-10-30 Thread Mark Brown
On Fri, Oct 30, 2020 at 08:05:31PM +0100, Clément Péron wrote: > But basically for the next dt-bindings change you will prefer somethings like: > "ASoC: dt-bindings: sun4i-i2s: Document H3 with missing RX channel > possibility" Yes. -- You received this message because you are subscribed to

[linux-sunxi] Re: [PATCH v10 00/15] Add Allwinner H3/H5/H6/A64 HDMI audio

2020-10-30 Thread Mark Brown
On Fri, 30 Oct 2020 15:46:33 +0100, Clément Péron wrote: > This series add H6 I2S support and the I2S node missing to support > HDMI audio in different Allwinner SoC. > > As we first use some TDM property to make the I2S working with the > simple soundcard. We have now drop this simple sound card

[linux-sunxi] Re: [PATCH v10 01/15] ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode

2020-10-30 Thread Clément Péron
Hi Maxime, On Fri, 30 Oct 2020 at 17:11, Maxime Ripard wrote: > > On Fri, Oct 30, 2020 at 03:46:34PM +0100, Clément Péron wrote: > > Left and Right justified mode are computed using the same formula > > as DSP_A and DSP_B mode. > > Which is wrong and the user manual explicitly says: > > > >

[linux-sunxi] Re: [PATCH v10 14/15] dt-bindings: sound: sun4i-i2s: Document H3 with missing RX channel possibility

2020-10-30 Thread Clément Péron
Hi Mark, On Fri, 30 Oct 2020 at 19:19, Mark Brown wrote: > > On Fri, Oct 30, 2020 at 03:46:47PM +0100, Clément Péron wrote: > > Like A83T the Allwinner H3 doesn't have the DMA reception available for > > some audio interfaces. > > Please if you're going to mix dts updates in with subsystem

[linux-sunxi] Re: [PATCH v10 14/15] dt-bindings: sound: sun4i-i2s: Document H3 with missing RX channel possibility

2020-10-30 Thread Mark Brown
On Fri, Oct 30, 2020 at 03:46:47PM +0100, Clément Péron wrote: > Like A83T the Allwinner H3 doesn't have the DMA reception available for > some audio interfaces. Please if you're going to mix dts updates in with subsystem changes like this keep the bits for different subsystems grouped, this

[linux-sunxi] [PATCH v2] arm64: dts: allwinner: h6: PineH64 model B: Add wifi

2020-10-30 Thread Jernej Skrabec
PineH64 model B contains RTL8723CS wifi+bt combo module. Since bluetooth support is not yet squared away, only wifi is enabled for now. Acked-by: Chen-Yu Tsai Signed-off-by: Jernej Skrabec --- Changes from v1: - added Chen-Yu tag - added vqmmc-supply

[linux-sunxi] Re: [PATCH 07/14] dt-bindings: media: i2c: Add A31 MIPI CSI-2 bindings documentation

2020-10-30 Thread Rob Herring
On Fri, Oct 23, 2020 at 07:45:39PM +0200, Paul Kocialkowski wrote: > This introduces YAML bindings documentation for the A31 MIPI CSI-2 > controller. > > Signed-off-by: Paul Kocialkowski > --- > .../media/allwinner,sun6i-a31-mipi-csi2.yaml | 168 ++ > 1 file changed, 168

[linux-sunxi] Re: [PATCH v10 01/15] ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode

2020-10-30 Thread Maxime Ripard
On Fri, Oct 30, 2020 at 03:46:34PM +0100, Clément Péron wrote: > Left and Right justified mode are computed using the same formula > as DSP_A and DSP_B mode. > Which is wrong and the user manual explicitly says: > > LRCK_PERDIOD: > PCM Mode: Number of BCLKs within (Left + Right) channel width. >

[linux-sunxi] [PATCH v10 13/15] arm64: defconfig: Enable Allwinner i2s driver

2020-10-30 Thread Clément Péron
Enable Allwinner I2S driver for arm64 defconfig. Acked-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 17a2df6a263e..3f89f427a355 100644 ---

[linux-sunxi] [PATCH v10 14/15] dt-bindings: sound: sun4i-i2s: Document H3 with missing RX channel possibility

2020-10-30 Thread Clément Péron
Like A83T the Allwinner H3 doesn't have the DMA reception available for some audio interfaces. As it's already documented for A83T convert this to an enum and add the H3 interface. Acked-by: Rob Herring Signed-off-by: Clément Péron ---

[linux-sunxi] [PATCH v10 15/15] arm: dts: sunxi: h3/h5: Add I2S2 node

2020-10-30 Thread Clément Péron
From: Marcus Cooper Add H3/H5 I2S2 node connected to the HDMI interface. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Acked-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git

[linux-sunxi] [PATCH v10 12/15] arm64: dts: allwinner: a64: Add I2S2 node

2020-10-30 Thread Clément Péron
From: Marcus Cooper Add the I2S2 node connected to the HDMI interface. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Acked-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 14 ++ 1 file changed, 14 insertions(+)

[linux-sunxi] [PATCH v10 11/15] arm64: dts: allwinner: h6: Add I2S1 node

2020-10-30 Thread Clément Péron
From: Jernej Skrabec Add Allwinner H6 I2S1 node connected to HDMI interface. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Acked-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 13 + 1 file changed, 13 insertions(+)

[linux-sunxi] [PATCH v10 02/15] ASoC: sun4i-i2s: Change set_chan_cfg() params

2020-10-30 Thread Clément Péron
As slots and slot_width can be set manually using set_tdm(). These values are then kept in sun4i_i2s struct. So we need to check if these values are set or not. This is not done actually and will trigger a bug. For example, if we set to the simple soundcard in the device-tree dai-tdm-slot-width =

[linux-sunxi] [PATCH v10 10/15] dt-bindings: ASoC: sun4i-i2s: Add H6 compatible

2020-10-30 Thread Clément Péron
From: Jernej Skrabec H6 I2S is very similar to H3, except that it supports up to 16 channels and thus few registers have fields on different position. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Acked-by: Maxime Ripard Acked-by: Rob Herring Acked-by: Chen-Yu Tsai

[linux-sunxi] [PATCH v10 06/15] ASoC: sun4i-i2s: Add 20 and 24 bit support

2020-10-30 Thread Clément Péron
From: Marcus Cooper Extend the functionality of the driver to include support of 20 and 24 bits per sample. Signed-off-by: Marcus Cooper Acked-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-i2s.c | 11 +-- 1 file changed, 9

[linux-sunxi] [PATCH v10 01/15] ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode

2020-10-30 Thread Clément Péron
Left and Right justified mode are computed using the same formula as DSP_A and DSP_B mode. Which is wrong and the user manual explicitly says: LRCK_PERDIOD: PCM Mode: Number of BCLKs within (Left + Right) channel width. I2S/Left-Justified/Right-Justified Mode: Number of BCLKs within each

[linux-sunxi] [PATCH v10 07/15] ASoC: sun4i-i2s: Fix sun8i volatile regs

2020-10-30 Thread Clément Péron
The FIFO TX reg is volatile and sun8i i2s register mapping is different from sun4i. Even if in this case it's doesn't create an issue, Avoid setting some regs that are undefined in sun8i. Acked-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai Signed-off-by: Clément Péron ---

[linux-sunxi] [PATCH v10 08/15] ASoC: sun4i-i2s: Fix setting of FIFO modes

2020-10-30 Thread Clément Péron
From: Samuel Holland Because SUN4I_I2S_FIFO_CTRL_REG is volatile, writes done while the regmap is cache-only are ignored. To work around this, move the configuration to a callback that runs while the ASoC core has a runtime PM reference to the device. Signed-off-by: Samuel Holland Reviewed-by:

[linux-sunxi] [PATCH v10 09/15] ASoC: sun4i-i2s: fix coding-style for callback definition

2020-10-30 Thread Clément Péron
Checkpatch script produces warning: WARNING: function definition argument 'const struct sun4i_i2s *' should also have an identifier name. Let's fix this by adding identifier name to get_bclk_parent_rate() and set_fmt() callback definition. Acked-by: Maxime Ripard Signed-off-by: Clément Péron

[linux-sunxi] [PATCH v10 05/15] ASoC: sun4i-i2s: Set sign extend sample

2020-10-30 Thread Clément Péron
From: Marcus Cooper On the newer SoCs such as the H3 and A64 this is set by default to transfer a 0 after each sample in each slot. However the A10 and A20 SoCs that this driver was developed on had a default setting where it padded the audio gain with zeros. This isn't a problem while we have

[linux-sunxi] [PATCH v10 03/15] ASoC: sun4i-i2s: Add support for H6 I2S

2020-10-30 Thread Clément Péron
From: Jernej Skrabec H6 I2S is very similar to that in H3, except it supports up to 16 channels. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Reviewed-by: Chen-Yu Tsai Acked-by: Maxime Ripard Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-i2s.c | 222

[linux-sunxi] [PATCH v10 04/15] ASoC: sun4i-i2s: Change get_sr() and get_wss() to be more explicit

2020-10-30 Thread Clément Péron
We are actually using a complex formula to just return a bunch of simple values. Also this formula is wrong for sun4i when calling get_wss() the function return 4 instead of 3. Replace this with a simpler switch case. Also drop the i2s params which is unused and return a simple int as returning

[linux-sunxi] [PATCH v10 00/15] Add Allwinner H3/H5/H6/A64 HDMI audio

2020-10-30 Thread Clément Péron
Hi, This series add H6 I2S support and the I2S node missing to support HDMI audio in different Allwinner SoC. As we first use some TDM property to make the I2S working with the simple soundcard. We have now drop this simple sound card and a proper dedicated soundcard will be introduce later.

[linux-sunxi] Re: [PATCH v9 01/14] ASoC: sun4i-i2s: Change set_chan_cfg() params

2020-10-30 Thread Clément Péron
Hi Samuel On Fri, 30 Oct 2020 at 02:20, Samuel Holland wrote: > > On 10/27/20 4:43 PM, Clément Péron wrote: > > Hi Pierre-Louis, > > > > On Tue, 27 Oct 2020 at 19:59, Pierre-Louis Bossart > > wrote: > >> > >> > >>> @@ -452,11 +454,11 @@ static int sun8i_i2s_set_chan_cfg(const struct > >>>