All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ASoC: mxs-pcm: Fix fifo size
@ 2012-10-31 17:06 Fabio Estevam
  2012-11-02 15:06 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2012-10-31 17:06 UTC (permalink / raw)
  To: broonie; +Cc: Fabio Estevam, alsa-devel, dong.aisheng, shawn.guo

From: Fabio Estevam <fabio.estevam@freescale.com>

According to MX28 Reference Manual the SAIF FIFO contains four 32-bit entries.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Changes since v1:
- Fix info about FIFO size
 sound/soc/mxs/mxs-pcm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/mxs/mxs-pcm.c b/sound/soc/mxs/mxs-pcm.c
index f82d766..6b360d0 100644
--- a/sound/soc/mxs/mxs-pcm.c
+++ b/sound/soc/mxs/mxs-pcm.c
@@ -60,7 +60,7 @@ static struct snd_pcm_hardware snd_mxs_hardware = {
 	.periods_min		= 1,
 	.periods_max		= 52,
 	.buffer_bytes_max	= 64 * 1024,
-	.fifo_size		= 32,
+	.fifo_size		= 4,
 
 };
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] ASoC: mxs-pcm: Fix fifo size
  2012-10-31 17:06 [PATCH v2] ASoC: mxs-pcm: Fix fifo size Fabio Estevam
@ 2012-11-02 15:06 ` Mark Brown
  2012-11-02 20:04   ` Dong Aisheng
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2012-11-02 15:06 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: Fabio Estevam, alsa-devel, dong.aisheng, shawn.guo


[-- Attachment #1.1: Type: text/plain, Size: 265 bytes --]

On Wed, Oct 31, 2012 at 03:06:11PM -0200, Fabio Estevam wrote:

> According to MX28 Reference Manual the SAIF FIFO contains four 32-bit entries.

> -	.fifo_size		= 32,
> +	.fifo_size		= 4,

fifo_size should be specified in bytes so the original code looks
correct?

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] ASoC: mxs-pcm: Fix fifo size
  2012-11-02 15:06 ` Mark Brown
@ 2012-11-02 20:04   ` Dong Aisheng
  2012-11-06  9:07     ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Dong Aisheng @ 2012-11-02 20:04 UTC (permalink / raw)
  To: Mark Brown; +Cc: Fabio Estevam, alsa-devel, shawn.guo, Fabio Estevam

On 2 November 2012 23:06, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Wed, Oct 31, 2012 at 03:06:11PM -0200, Fabio Estevam wrote:
>
>> According to MX28 Reference Manual the SAIF FIFO contains four 32-bit entries.
>
>> -     .fifo_size              = 32,
>> +     .fifo_size              = 4,
>
> fifo_size should be specified in bytes so the original code looks
> correct?

Then, probably it should be 16.
BTW, it seems this param is not used anymore:
http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/ch05s05.html
That may be the reason why i see some other platforms pcm code just
set fifo_size to 0.

Regards
Dong Aisheng

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2] ASoC: mxs-pcm: Fix fifo size
  2012-11-02 20:04   ` Dong Aisheng
@ 2012-11-06  9:07     ` Mark Brown
  0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2012-11-06  9:07 UTC (permalink / raw)
  To: Dong Aisheng; +Cc: Fabio Estevam, alsa-devel, shawn.guo, Fabio Estevam


[-- Attachment #1.1: Type: text/plain, Size: 754 bytes --]

On Sat, Nov 03, 2012 at 04:04:02AM +0800, Dong Aisheng wrote:
> On 2 November 2012 23:06, Mark Brown
> > On Wed, Oct 31, 2012 at 03:06:11PM -0200, Fabio Estevam wrote:

> >> According to MX28 Reference Manual the SAIF FIFO contains four 32-bit entries.

> >> -     .fifo_size              = 32,
> >> +     .fifo_size              = 4,

> > fifo_size should be specified in bytes so the original code looks
> > correct?

> Then, probably it should be 16.

Yup.

> BTW, it seems this param is not used anymore:
> http://www.alsa-project.org/~tiwai/writing-an-alsa-driver/ch05s05.html
> That may be the reason why i see some other platforms pcm code just
> set fifo_size to 0.

Hrm, right - that'll be why nobody noticed.  Guess it doesn't matter any
more.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-06  9:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-31 17:06 [PATCH v2] ASoC: mxs-pcm: Fix fifo size Fabio Estevam
2012-11-02 15:06 ` Mark Brown
2012-11-02 20:04   ` Dong Aisheng
2012-11-06  9:07     ` Mark Brown

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.