From: Manu Sharma <manu.sharma@ma.tech.ascom.ch>
To: alsa-devel@lists.sourceforge.net
Subject: alsa issues on h5500 handheld
Date: Wed, 01 Dec 2004 17:46:53 +0100 [thread overview]
Message-ID: <41ADF57D.5090005@ma.tech.ascom.ch> (raw)
Hi,
I am using a iPAQ h5500 runing familiar on it. The alsa drivers for this
device are not part of official alsa sources, they are available from
handhelds cvs. When I try to record sound () for a certain duration, the
recording gets over in half the configured time.
For eg "time arecord -d 10 recording"
gives the following output ...
Recording WAVE 'recording' : Unsigned 8 bit, Rate 8000 Hz, Mono
real 0m 5.16s
user 0m 0.93s
sys 0m 2.78s
As far as I could figure out, the reason seems to be related to strange
arrangement of things. The codec (ak4535) samples mono only, but the
PXA's internal interface between DMA engine and I2S device controller is
stereo. For this reason, all DMA configurations in the driver are done
considering a stereo interface; additionally the driver configures its
'snd_pcm_hardware_t' structure's channel fields (for capture) as :
channels_min = 2
channels_max = 2
My questions are ...
(i) Is forcing the device to be stereo (when it is actually mono), the
right way to implement as per alsa design OR should the driver be
converting DMA samples back to mono, so that things are consistent all
along ?
(ii) What could be the reason of sample times being half of expected
time, specially when the driver is registered as a stereo device ?
Thanks in advance
Manu
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
reply other threads:[~2004-12-01 16:46 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=41ADF57D.5090005@ma.tech.ascom.ch \
--to=manu.sharma@ma.tech.ascom.ch \
--cc=alsa-devel@lists.sourceforge.net \
/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.