Message ID | 20201030144648.397824-1-peron.clem@gmail.com |
---|---|
Headers | show |
Series | Add Allwinner H3/H5/H6/A64 HDMI audio | expand |
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. > I2S/Left-Justified/Right-Justified Mode: Number of BCLKs within each > individual channel width(Left or Right) > > Fix this by using the same formula as the I2S mode. > > Fixes: 7ae7834ec446 ("ASoC: sun4i-i2s: Add support for DSP formats") > Signed-off-by: Clément Péron <peron.clem@gmail.com> Acked-by: Maxime Ripard <mripard@kernel.org> Thanks! Maxime
Hi Maxime, On Fri, 30 Oct 2020 at 17:11, Maxime Ripard <maxime@cerno.tech> 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: > > > > LRCK_PERDIOD: > > PCM Mode: Number of BCLKs within (Left + Right) channel width. > > I2S/Left-Justified/Right-Justified Mode: Number of BCLKs within each > > individual channel width(Left or Right) > > > > Fix this by using the same formula as the I2S mode. > > > > Fixes: 7ae7834ec446 ("ASoC: sun4i-i2s: Add support for DSP formats") > > Signed-off-by: Clément Péron <peron.clem@gmail.com> > > Acked-by: Maxime Ripard <mripard@kernel.org> Thanks for the ACK just noticed that the case was not properly sorted. Do you agree that sorting like this is better ? case SND_SOC_DAIFMT_I2S: + case SND_SOC_DAIFMT_LEFT_J: + case SND_SOC_DAIFMT_RIGHT_J: If I have to push a new series I will fix it Regards, Clement > Thanks! > Maxime
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 > > for-next > > Yay! Note that this doesn't bring HDMI audio card just yet. Another driver will be needed for that. > > 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 different interface. > > (there was a patch for that submitted earlier this year by Stefan > Mavrodiev <stefan@olimex.com>, but it seems there hasn't been any > progress on it since then (I think the last message on it concluded that > it should be rewritten to use ALSA instead of ASoC)). IIUC original author left Olimex, so work stalled. Best regards, Jernej > > [ To clarify, don't know what's the difference between ALSA and ASoC; > I'm only interested here as an owner of an A20 box on which I'd > love to be able to use the HDMI-Audio. ] > > > -- Stefan
On Fri, Oct 30, 2020 at 07:41:21PM +0000, Mark Brown wrote: > 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 and a > > proper dedicated soundcard will be introduce later. > > > > [...] > > Applied to > > https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next > > Thanks! > > [01/11] ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode > commit: 93c0210671d8f3ec2262da703fab93a1497158a8 > [02/11] ASoC: sun4i-i2s: Change set_chan_cfg() params > commit: c779e2de0ac6156bea63e759481ee383587336cc > [03/11] ASoC: sun4i-i2s: Add support for H6 I2S > commit: 73adf87b7a5882408b0a17da59e69df4be12a968 > [04/11] ASoC: sun4i-i2s: Change get_sr() and get_wss() to be more explicit > commit: 9c2d255f0e63f8e54bd8345f9c59c4060cf4bbd4 > [05/11] ASoC: sun4i-i2s: Set sign extend sample > commit: d8659dd9a13ce7a92c017c352aea1c390f300937 > [06/11] ASoC: sun4i-i2s: Add 20 and 24 bit support > commit: 6ad7ca6297f8679162ee62ed672b603e8d004146 > [07/11] ASoC: sun4i-i2s: Fix sun8i volatile regs > commit: 64359246abe4421ad409be5b0bc9a534caa18b7d > [08/11] ASoC: sun4i-i2s: Fix setting of FIFO modes > commit: 38d7adc0a003298013786cfffe5f4cc907009d30 > [09/11] ASoC: sun4i-i2s: fix coding-style for callback definition > commit: 08c7b7d546fddce76d500e5e5767aa08836f7cae > [10/11] ASoC: sun4i-i2s: Add H6 compatible > commit: e84f44ba4604e55a51e7caf01464f220d0eabef4 > [11/11] ASoC: sun4i-i2s: Document H3 with missing RX channel possibility > commit: 0bc1bf241de551842535c3d0b080e0f38c11aed1 Applied the rest, thanks! Maxime