Hi,
I have ported code "Enable sound on mx31_3ds" from Philippe R?tornaz to
MX27 3DS platform on master branch of linux-next (tag next-20120806).
I also applied patch "dma: imx-dma: Fix kernel crash due to missing clock
conversion" of Fabio Estevam which is not yet merged in linux-next.
Thanks to them, everything is working good on MX27 3DS platform except that
sound is played too fast.
Which parameter must be adjusted to have sound playing at normal speed ?
In mc13783 codec driver, imx_add_imx_ssi(), clock configuration in
mach-mx27_3ds file ?
Thanks for your help.
Signed-off-by: Ga?tan Carlier <redacted>
---
arch/arm/mach-imx/Kconfig | 1 +
arch/arm/mach-imx/mach-mx27_3ds.c | 19 ++++++++++++++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
Hi Ga?tan,
On Mon, Aug 6, 2012 at 10:07 AM, Ga?tan Carlier [off-list ref] wrote:
Hi,
I have ported code "Enable sound on mx31_3ds" from Philippe R?tornaz to
MX27 3DS platform on master branch of linux-next (tag next-20120806).
I also applied patch "dma: imx-dma: Fix kernel crash due to missing clock
conversion" of Fabio Estevam which is not yet merged in linux-next.
Thanks to them, everything is working good on MX27 3DS platform except that
sound is played too fast.
Which parameter must be adjusted to have sound playing at normal speed ?
In mc13783 codec driver, imx_add_imx_ssi(), clock configuration in
mach-mx27_3ds file ?
Thanks for your help.
Signed-off-by: Ga?tan Carlier <redacted>
I have added audio support for mx27pdk:
https://patchwork.kernel.org/patch/1152951/
,and in my tests the audio was played at the correct rate.
Can you please have a try?
What is the sampling rate of your file?
Regards,
Fabio Estevam
Hi Fabio,
Sorry, I have missed your patch in my email archive. I didn't search the
right keywords.
I applied your [patch 1/2] (2/2 is already merged) but I have same
effect. I use aplay with file k3b_error1.wav (Unsigned 8 bit, Rate 8000
Hz, Mono) and alsa/Front_Left.wav (Signed 16 bit Little Endian, Rate
48000 Hz, Mono). Two sounds are played too fast.
It is maybe a bad configuration of Alsa (but this is working with kernel
2.6.22 from Freescale).
Thanks.
Ga?tan.
On 08/06/2012 03:36 PM, Fabio Estevam wrote:
Hi Ga?tan,
On Mon, Aug 6, 2012 at 10:07 AM, Ga?tan Carlier [off-list ref] wrote:
quoted
Hi,
I have ported code "Enable sound on mx31_3ds" from Philippe R?tornaz to
MX27 3DS platform on master branch of linux-next (tag next-20120806).
I also applied patch "dma: imx-dma: Fix kernel crash due to missing clock
conversion" of Fabio Estevam which is not yet merged in linux-next.
Thanks to them, everything is working good on MX27 3DS platform except that
sound is played too fast.
Which parameter must be adjusted to have sound playing at normal speed ?
In mc13783 codec driver, imx_add_imx_ssi(), clock configuration in
mach-mx27_3ds file ?
Thanks for your help.
Signed-off-by: Ga?tan Carlier <redacted>
I have added audio support for mx27pdk:
https://patchwork.kernel.org/patch/1152951/
,and in my tests the audio was played at the correct rate.
Can you please have a try?
What is the sampling rate of your file?
Regards,
Fabio Estevam
On Mon, Aug 6, 2012 at 11:24 AM, Ga?tan Carlier [off-list ref] wrote:
Hi Fabio,
Sorry, I have missed your patch in my email archive. I didn't search the
right keywords.
I applied your [patch 1/2] (2/2 is already merged) but I have same effect. I
use aplay with file k3b_error1.wav (Unsigned 8 bit, Rate 8000 Hz, Mono) and
alsa/Front_Left.wav (Signed 16 bit Little Endian, Rate 48000 Hz, Mono). Two
sounds are played too fast.
It is maybe a bad configuration of Alsa (but this is working with kernel
2.6.22 from Freescale).
Ok, we will need to debug this problem then.
Can you please send me offline these two files?
Regards,
Fabio Estevam
Ga?tan,
On Mon, Aug 6, 2012 at 11:24 AM, Ga?tan Carlier [off-list ref] wrote:
Hi Fabio,
Sorry, I have missed your patch in my email archive. I didn't search the
right keywords.
I applied your [patch 1/2] (2/2 is already merged) but I have same effect. I
use aplay with file k3b_error1.wav (Unsigned 8 bit, Rate 8000 Hz, Mono) and
alsa/Front_Left.wav (Signed 16 bit Little Endian, Rate 48000 Hz, Mono). Two
sounds are played too fast.
It is maybe a bad configuration of Alsa (but this is working with kernel
2.6.22 from Freescale).
I have just sent the following patch to the alsa-list which fixes this
mono playback issue.
Regards,
Fabio Estevam
From bc46087110bd48a41f1f7dcb826853349662c766 Mon Sep 17 00:00:00 2001
From: Fabio Estevam <redacted>
Date: Mon, 6 Aug 2012 16:30:51 -0300
Subject: [PATCH] ASoC: imx-ssi: Fix mono playback
Currently mono playback is played on a faster rate.
Adjust channels_min to 2 channels in order to play it back correctly.
Reported-by: Ga?tan Carlier <redacted>
Signed-off-by: Fabio Estevam <redacted>
---
sound/soc/fsl/imx-ssi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)