public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ASoC: sun4i-codec: fixed 32bit audio capture support for H3/H2+
Date: Tue, 31 Oct 2017 11:19:28 +0100	[thread overview]
Message-ID: <20171031101928.bztbv2vqugb7cvbg@flea> (raw)
In-Reply-To: <20171030121603.GB12678@andrea-laptop>

On Mon, Oct 30, 2017 at 01:16:03PM +0100, Andrea Bondavalli wrote:
> Hello Maxime, everyone,
> 
> see comments inline.
> 
> On Mon, Oct 30, 2017 at 09:55:42AM +0100, Maxime Ripard wrote:
> > On Sun, Oct 29, 2017 at 02:41:01AM -0700, Andrea Bondavalli wrote:
> > > Fixed support for 32bit audio capture for Allwinner H3/H2+ SoC
> > > 
> > > Signed-off-by: Andrea Bondavalli <andrea.bondavalli74@gmail.com>
> > 
> > A more detailed commit log would be welcome.
> > 
> > What are the issues involved would be the more valuable information,
> > and then how you'ring fixing it and why would be great.
> > 
> 
> H3 audio codec supports 16 and 24 bits capture formats (same for the playback).
> Switching between these two modes can be achieved by using the RX_SAMPLE_BITS (bit 6)
> of the AC_ADC_FIFOC register (offset 0x10) of the audio codec. 
> The RX_FIFO_MODE (bit 24) register must also be set accordingly to have
> the desired RX FIFO output mode.
> 
> The current implementation declares support for 16bit and 32bit (with a 
> resolution of 24bit) capture formats but the 32bit implementation is broken 
> because the RX_SAMPLE_BITS and the RX_FIFO_MODE bits are not set correctly and 
> in addition to this the DMA bus transfer width is left to 2 bytes instead of 
> 4 bytes causing invalid captures whose durating is double than the expected period.
> 
> The following patch sets the H3 audio codec registers properly when a
> 24/32bit capture is requested.
> Similar approach was already implemented for the audio playback part.

Thanks.

Can you put that in your commit log and resend the patch?

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171031/9e6cb033/attachment.sig>

  reply	other threads:[~2017-10-31 10:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-29  9:41 [PATCH] ASoC: sun4i-codec: fixed 32bit audio capture support for H3/H2+ Andrea Bondavalli
2017-10-30  8:55 ` Maxime Ripard
2017-10-30 12:16   ` Andrea Bondavalli
2017-10-31 10:19     ` Maxime Ripard [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-10-31 11:58 Andrea Bondavalli
2017-10-28  9:38 Andrea Bondavalli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171031101928.bztbv2vqugb7cvbg@flea \
    --to=maxime.ripard@free-electrons.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox