From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: "Ujfalusi, Peter" <peter.ujfalusi@ti.com>
Cc: linux-omap@vger.kernel.org,
Santosh Shilimkar <santosh.shilimkar@ti.com>,
Liam Girdwood <lrg@ti.com>
Subject: Re: Audio support on OMAP 3430LDP or 4430SDP boards
Date: Fri, 27 Apr 2012 20:31:29 +0100 [thread overview]
Message-ID: <20120427193129.GA3951@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20120427183116.GF28062@n2100.arm.linux.org.uk>
On Fri, Apr 27, 2012 at 07:31:16PM +0100, Russell King - ARM Linux wrote:
> I don't have that in the branch I'm building because I started the
> DMA engine work against v3.4-rc3.
>
> > This is the second patch to separate the twl6040 from twl-core.
> > If you are missing this patch twl6040 will not probe (twl core will
> > not register the audio if we have twl6030).
>
> So it sounds like if I rebase stuff forward to -rc4, it should start
> working?
Right, so that was the problem. Why not say in the first place that
it required -rc4 instead of just saying that it was in v3.4-rc ? It's
taken severeal frustrating hours to get to this point...
But.. if I repeatedly aplay /dev/zero, I get randomly spat out on the
console:
omap_hwmod: mcpdm: _wait_target_disable failed
If I play a raw PCM audio file with aplay (44.1kHz s16le 2ch), I get
several of these from time to time:
DMA synchronization event drop occurred with device 66
and the 'noise' from the small loudspeakers is just about recognizable -
but is not what I was expecting (it's slow, plus it sounds on those small
speakers that it's horribly distorted.) I can't get the headset jack
working to be able to play it through a decent sound system, through which
I'll be able to actually _hear_ what the corruption is. I've tried fiddling
with everything in alsamixer, including turning on the vibras in the hope
of some kind of output (at least that does spin the motors.)
Timing the playback shows that something is very definitely not right:
On the laptop:
rmk@rmk-PC:[linux-rmk]:<2154> time aplay -f s16_le -c 2 -r 44100 NYG.s16.2.le
Playing raw data 'NYG.s16.2.le' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
real 4m56.911s
user 0m0.287s
sys 0m0.571s
rmk@rmk-PC:[linux-rmk]:<2155> md5sum NYG.s16.2.le
291d33b87e8d60556fd461216291889f NYG.s16.2.le
On the SDP4430:
root@omap-4430sdp:~# time aplay -f s16_le -c 2 -r 44100 NYG.s16.2.le
Playing raw data 'NYG.s16.2.le' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
real 5m 53.67s
user 0m 3.17s
sys 0m 0.29s
root@omap-4430sdp:~# md5sum NYG.s16.2.le
291d33b87e8d60556fd461216291889f NYG.s16.2.le
I notice that aplay is having to upconvert the audio to 96kHz 32 bit, so
that could be an ALSA library problem.
Any ideas?
next prev parent reply other threads:[~2012-04-27 19:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-27 13:58 Audio support on OMAP 3430LDP or 4430SDP boards Russell King - ARM Linux
2012-04-27 14:15 ` Shilimkar, Santosh
2012-04-27 14:56 ` Liam Girdwood
2012-04-27 15:09 ` Russell King - ARM Linux
2012-04-27 15:53 ` Ujfalusi, Peter
2012-04-27 16:04 ` Russell King - ARM Linux
2012-04-27 16:32 ` Ujfalusi, Peter
2012-04-27 16:50 ` Russell King - ARM Linux
2012-04-27 17:04 ` Ujfalusi, Peter
2012-04-27 17:19 ` Russell King - ARM Linux
2012-04-27 18:14 ` Ujfalusi, Peter
2012-04-27 18:31 ` Russell King - ARM Linux
2012-04-27 19:17 ` Ujfalusi, Peter
2012-04-27 19:31 ` Russell King - ARM Linux [this message]
2012-04-29 20:35 ` Russell King - ARM Linux
2012-04-30 7:26 ` Peter Ujfalusi
2012-05-01 11:14 ` Russell King - ARM Linux
2012-06-21 12:59 ` Russell King - ARM Linux
2012-06-21 13:16 ` Russell King - ARM Linux
2012-06-21 13:22 ` Russell King - ARM Linux
2012-06-21 18:36 ` Ujfalusi, Peter
2012-06-21 18:58 ` Russell King - ARM Linux
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=20120427193129.GA3951@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-omap@vger.kernel.org \
--cc=lrg@ti.com \
--cc=peter.ujfalusi@ti.com \
--cc=santosh.shilimkar@ti.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox