All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Enric Balletbo Serra <eballetbo@gmail.com>, alsa-devel@alsa-project.org
Cc: Lars-Peter Clausen <lars@metafoo.de>,
	Takashi Iwai <tiwai@suse.de>, Liam Girdwood <lgirdwood@gmail.com>,
	Jyri Sarha <jsarha@ti.com>, Mark Brown <broonie@kernel.org>
Subject: Re: Audio play problem with tlv320aic3106 in mainline.
Date: Fri, 29 May 2015 10:20:26 +0300	[thread overview]
Message-ID: <5568133A.6010006@ti.com> (raw)
In-Reply-To: <CAFqH_5332TNp+3cTH6O-UgqP8Ah-ZUiZpaTJpy3ZoL4-42fo_g@mail.gmail.com>

On 05/28/2015 02:36 PM, Enric Balletbo Serra wrote:
> Dear all,
> 
> Recently I sent some patches to add support for a new board based on
> AM335x processor [1]. The board has the TLV320AIC3106 audio codec, the
> MCLK signal is provided by an external oscillator of 12MHz. The
> problem is that when I play a wav file for example I heard the song a
> double speed. This is with v4.0 and current mainline.
> 
> In dts file I defined "ti,codec-clock-rate = <12000000>;" which is the
> correct value. Curiously when I changed the clock rate value to
> 24000000 I heard the song at normal speed. AFAIK the correct value for
> clock-rate is 12MHz so I suspect that something is wrong in the
> driver, maybe it sets a wrong clock divider/multiplier ? Anyone can
> point me in the right direction to fix the issue ? I see that
> am335x-evm and am335x-pepper boards also uses this audio codec, did
> anyone with those boards have the same problem?

It might be really 24MHz.
If the MCLK in your board is wired like am335x-evmsk or how BeagleBone's audio
capes are wired (MCLK is coming from AM335x's EVENT_INTR0/1 pin as CLKOUT1/2)
then 24MHz is correct. On the am335x-evm there is a dedicated crystal
providing the 12MHz.

> 
> [1] https://patchwork.kernel.org/patch/6480071/
> 
> Thanks in advance,
> Enric
> 

-- 
Péter
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2015-05-29  7:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-28 11:36 Audio play problem with tlv320aic3106 in mainline Enric Balletbo Serra
2015-05-29  7:20 ` Peter Ujfalusi [this message]
2015-05-29  9:24   ` Enric Balletbo Serra
2015-05-29 12:16     ` Peter Ujfalusi
2015-06-01  9:16       ` Enric Balletbo Serra
2015-06-01 12:10         ` Peter Ujfalusi

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=5568133A.6010006@ti.com \
    --to=peter.ujfalusi@ti.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=eballetbo@gmail.com \
    --cc=jsarha@ti.com \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=tiwai@suse.de \
    /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.