From: Dong Aisheng <b29396@freescale.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: Shawn Guo <shawn.guo@linaro.org>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Lauri Hintsala <lauri.hintsala@bluegiga.com>
Subject: Re: Error with "Unsigned 8 bit, Rate 8000 Hz, Mono" track
Date: Fri, 10 Aug 2012 19:00:05 +0800 [thread overview]
Message-ID: <20120810110004.GA7142@shlinux2.ap.freescale.net> (raw)
In-Reply-To: <CAOMZO5Dc38HSZRXFeZ-55KN83v1NNPCAAuoiFdixJ0K2dw90vg@mail.gmail.com>
On Fri, Aug 10, 2012 at 12:25:13PM +0800, Fabio Estevam wrote:
> Hi,
>
> Running 3.6-rc1 on a mx28evk I get the following error with this wav format:
>
> root@freescale /home$ aplay k3b_error1.wav
> Playing WAVE 'k3b_error1.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
> [ 303.640000] asoc: machine hw_params failed: -22
It failed at here:
/* Sgtl5000 sysclk should be >= 8MHz and <= 27M */
if (mclk < 8000000 || mclk > 27000000)
return -EINVAL;
Since sgtl5000 on slave mode, the mclk can only be 256*fs, 384*fs, 512*fs,
the maximum mclk of 8Khz 4096000(512 * 8000) < 8Mhz, it does not meet
the minimum clock requirement of mclk.
It looks like hw limitation on slave mode.
Will spend some time double check if any solution for this later.
If anyone else know it, please share the comments.
Regards
Dong Aisheng
> aplay: set_params:959: Unable to install hw params:
> ACCESS: RW_INTERLEAVED
> FORMAT: U8
> SUBFORMAT: STD
> SAMPLE_BITS: 8
> FRAME_BITS: 8
> CHANNELS: 1
> RATE: 8000
> PERIOD_TIME: 125000
> PERIOD_SIZE: 1000
> PERIOD_BYTES: 1000
> PERIODS: 4
> BUFFER_TIME: 500000
> BUFFER_SIZE: 4000
> BUFFER_BYTES: 4000
> TICK_TIME: 0
>
> Haven't started debugging yet, but if anyone sees something obvious,
> please let me know.
>
> This same file plays correctly on mx31/mx27/mx51/mx6q boards.
>
> Regards,
>
> Fabio Estevam
>
next prev parent reply other threads:[~2012-08-10 10:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-10 4:25 Error with "Unsigned 8 bit, Rate 8000 Hz, Mono" track Fabio Estevam
2012-08-10 11:00 ` Dong Aisheng [this message]
2012-08-10 11:31 ` Mark Brown
2012-08-10 11:51 ` Dong Aisheng
2012-08-10 12:52 ` Fabio Estevam
2012-08-10 13:04 ` Fabio Estevam
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=20120810110004.GA7142@shlinux2.ap.freescale.net \
--to=b29396@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=festevam@gmail.com \
--cc=lauri.hintsala@bluegiga.com \
--cc=shawn.guo@linaro.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.