From: Craig McQueen <craig.mcqueen@beamcommunications.com>
To: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Stale data at start of audio recording on Freescale i.MX28 EVK with SGTL5000
Date: Fri, 14 Nov 2014 09:41:56 +1100 [thread overview]
Message-ID: <546533B4.90303@beamcommunications.com> (raw)
I was testing the 3.14.19 kernel on Freescale i.MX28 EVK. Since then,
I've retested and confirmed this also on 3.18-rc4 kernel.
I am doing audio recordings through the SGTL5000 driver as such:
arecord -D hw:0,1 -f s16 -c 2 -r 16000 -d 5 test.wav
I'm finding that the first 400-500 ms of the saved data is actually
stale data from the end of the previous recording. To see this, do the
following:
1. Provide some test audio input in the LINE INPUT jack. E.g. a 100
Hz sine wave, or some music.
2. Record audio with e.g. arecord -D hw:0,1 -f s16 -c 2 -r 16000 -d
5 test1.wav
3. Change the test audio input, e.g. a 150 Hz sine wave, or some
different music.
4. Record a new audio file with e.g. arecord -D hw:0,1 -f s16 -c 2
-r 16000 -d 5 test2.wav
Observe that the first 400-500 ms of test2.wav contains stale data from
the end of the previous recording.
--
Craig McQueen
reply other threads:[~2014-11-13 22:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=546533B4.90303@beamcommunications.com \
--to=craig.mcqueen@beamcommunications.com \
--cc=alsa-devel@alsa-project.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox