All of lore.kernel.org
 help / color / mirror / Atom feed
From: joerg.krause@embedded.rocks (Jörg Krause)
To: linux-arm-kernel@lists.infradead.org
Subject: noise issues when recording sound on i.MX28
Date: Tue, 10 Jan 2017 17:17:34 +0100	[thread overview]
Message-ID: <1484065054.28705.1.camel@embedded.rocks> (raw)
In-Reply-To: <20160217085502.39e4cb24@ipc1.ka-ro>

Hi all,

On Wed, 2016-02-17 at 08:55 +0100, Lothar Wa?mann wrote:
> Hi,
> 
> On Tue, 16 Feb 2016 13:01:19 -0200 Fabio Estevam wrote:
> > On Thu, Feb 11, 2016 at 6:40 AM, Uwe Kleine-K?nig
> > <u.kleine-koenig@pengutronix.de> wrote:
> > 
> > > root at hostname:/sys/kernel/debug/clk find -name saif?_sel
> > > ./ref_xtal/pll0/saif0_sel
> > > ./ref_xtal/pll0/saif1_sel
> > > 
> > > root at hostname:/sys/kernel/debug/clk cat
> > > ./ref_xtal/pll0/saif?_sel/clk_rate
> > > 480000000
> > > 480000000
> > 
> > Ok, what about the SAIF0 and SAIF1 sampling rates: are they always
> > the same?
> > 
> 
> Yes, of course. The driver wouldn't allow using both interfaces with
> different sample rates any way.

Are there any updates about this issue?

I am facing the same problem when using SAIF1 for capture and SAIF0 for
playback. SAIF1 uses SAIF0 as the master and I do set
MXS_DIGCTL_SAIF_CLKMUX_EXTMSTR0 when bringing up the board. However,
whenever I record with

$ arecord -D hw:0,1 -t wav -c 2 -r 48000 -f S16_LE -d 5 /tmp/out.wav

and playback afterwards:

$ aplay -D hw:0,0 /tmp/out.wav

I only get noise.

Note, that I am using the Audio Codec Board from Mikroelectronika, but
replaced the on-board 12.288MHz quarz with the MCLK line from SAIF0.

Best regards,
J?rg Krause

      reply	other threads:[~2017-01-10 16:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27 10:56 noise issues when recording sound on i.MX28 Uwe Kleine-König
2016-01-27 11:53 ` Fabio Estevam
2016-01-27 14:43   ` Uwe Kleine-König
2016-01-28  6:38     ` Lothar Waßmann
2016-02-02 13:00     ` Fabio Estevam
2016-02-10 15:03       ` Uwe Kleine-König
2016-02-10 20:10         ` Fabio Estevam
2016-02-11  8:40           ` Uwe Kleine-König
2016-02-11 14:25             ` Lothar Waßmann
2016-02-16 15:01             ` Fabio Estevam
2016-02-16 19:35               ` Uwe Kleine-König
2016-02-17  7:55               ` Lothar Waßmann
2017-01-10 16:17                 ` Jörg Krause [this message]

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=1484065054.28705.1.camel@embedded.rocks \
    --to=joerg.krause@embedded.rocks \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.