From: Smilen Dimitrov <sd-0eUWFqAKQRd/SzgSGea1oA@public.gmane.org>
To: sboyce-QgLWrMLu8clzjhtm8Ag3mw@public.gmane.org
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org
Subject: Re: AudioArduino - an ALSA soundcard driver for FTDI-based Arduinos
Date: Mon, 30 May 2011 22:37:57 +0200 [thread overview]
Message-ID: <4DE40025.4010108@imi.aau.dk> (raw)
In-Reply-To: <4DE3EF4A.7090306-QgLWrMLu8clzjhtm8Ag3mw@public.gmane.org>
Hi Sid,
> Are there any possibilities of extending it beyond 8-bit / 44.1 kHz?
The driver currently exposes a stereo, 16-bit, 44.1 kHz on the ALSA
side, since that is the lowest quality with which Audacity works in the
playback direction.
However, Arduino Duemillanove's ATMega328 is not really capable of
16-bit reproduction in this context: it has one 16-bit and two 8-bit
counters, and the 16-bit one is used to derive the 44.1 kHz (PCM) rate,
so the only thing available for PWM (analog) reproduction are the 8-bit
counters (there is a bit more on this in the paper on the webpage).
So what happens during stereo, 16-bit, 44.1 kHz playback, is that the
driver simply extracts the MSB of the left channel, and sends it as an
8-bit sample representation to the Arduino for PWM reproduction.
So in brief - as far as ALSA interfaces are concerned, I believe it is
possible to specify any rate you want (which is supported) - however,
"by default", it would be easy to only get 8-bit resolution (hardware)
reproduction on the Arduino (however, higher rates should in principle
be possible; as I think there should still some of bandwidth left, since
a duplex operation can be demonstrated at 2Mbps).
Hope this helps,
Cheers!
> Regards
> Sid.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-05-30 20:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-30 4:41 AudioArduino - an ALSA soundcard driver for FTDI-based Arduinos sdaau
[not found] ` <4DE31FE4.4040807-0eUWFqAKQRd/SzgSGea1oA@public.gmane.org>
2011-05-30 7:42 ` Greg KH
[not found] ` <20110530074204.GA7806-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2011-05-30 15:28 ` sdaau
2011-06-03 5:37 ` Greg KH
[not found] ` <20110603053728.GA20937-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2011-06-03 18:22 ` sdaau
2011-06-04 0:34 ` Caleb Crome
[not found] ` <4DE3EF4A.7090306@blueyonder.co.uk>
[not found] ` <4DE3EF4A.7090306-QgLWrMLu8clzjhtm8Ag3mw@public.gmane.org>
2011-05-30 20:37 ` Smilen Dimitrov [this message]
2011-05-30 21:51 ` Caleb Crome
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=4DE40025.4010108@imi.aau.dk \
--to=sd-0euwfqakqrd/szgsgea1oa@public.gmane.org \
--cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sboyce-QgLWrMLu8clzjhtm8Ag3mw@public.gmane.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 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.