From: James Courtier-Dutton <James@superbug.co.uk>
To: David Smoot <davidsmoot@gmail.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Question: setting up the hardware for alsa
Date: Fri, 04 Nov 2005 16:14:23 +0000 [thread overview]
Message-ID: <436B88DF.9080501@superbug.co.uk> (raw)
In-Reply-To: <b15982770511040749k3ccbaa07gcbd7bac05689a8e7@mail.gmail.com>
David Smoot wrote:
> Greetings, first post to the list and hopefully a simple question:
>
> My company builds Linux based telemetry systems. We are working on an
> airborne telemetry platform. The customer has expressed a desire to record
> the pilot voice traffic on the data stream with the other data from the
> instruments.
>
> We use a stripped down kernel and build pretty much everything by hand. I'm
> attempting to set up ALSA so I can pull the audio data from the line in.
>
> At this point I at least knew libasound was OK because I could execute some
> simple code that listed libasound data types and parameters.
>
> But I can't open any devices and talk to them. I know I am missing some kind
> of crucial step in setting up the hw:0,0 device but I can't seem to figure
> out the next step. I've read tutorials, googled, but I am stuck. If someone
> would point me to the proper documents I would be grateful.
>
> David
>
The ca0106 alsa driver is quite new and as such might not be the most
reliable driver to use for avionics systems. Line in/Mic input was only
recently added to the driver, so it would be important for you to tell
us which alsa version you are using. The following will tell you.
cat /proc/asound/version.
Another problem you will have is noise on the input. Special care has to
be taken when recording voice in an aircraft.
A good application to use to test voice capture is arecord.
The ca0106 card is very basic, and you should only really use a capture
rate of 48000 Hz if you want any sort of quality captured. You can
resample it in your application to a lower rate, or compress it using a
codec before transmission over the telemetry link. The ca0106 is
particulary bad at 44100 Hz, but should be ok at rates 24000, 12000,8000 Hz
You should open the devices directly, but instead use the libasound
snd_pcm_open() call.
James
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
next prev parent reply other threads:[~2005-11-04 16:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-04 15:49 Question: setting up the hardware for alsa David Smoot
2005-11-04 16:13 ` James Courtier-Dutton
2005-11-04 17:33 ` David Smoot
2005-11-05 23:34 ` Sasha Khapyorsky
2005-11-06 0:32 ` Lee Revell
2005-11-04 16:14 ` James Courtier-Dutton [this message]
2005-11-06 0:45 ` Lee Revell
2005-11-06 17:46 ` David Smoot
2005-11-07 10:26 ` Clemens Ladisch
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=436B88DF.9080501@superbug.co.uk \
--to=james@superbug.co.uk \
--cc=alsa-devel@lists.sourceforge.net \
--cc=davidsmoot@gmail.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 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.