Re: more general audio question (was [iPAQ] SpeakFreely with 16k/stereo works)

From: Nicolas Pitre <nico.a.t.cam.org>
Date: Thu Mar 15 2001 - 13:41:15 EST

On Thu, 15 Mar 2001, Brian Delaney wrote:

> On Thu, Mar 15, 2001 at 04:04:32PM +0100, Tilman Schweitzer wrote:
>
> > I've read somewhere (probably in this mailing list) that the iPAQ
> > soundhardware or driver is only capable of stereo. I don't know if this
> > is a hardware or software/driver issue. I guess one speaker can only
> > play mono or two stereo channels mixed to one mono channel. But the iPAQ
> > has got a headphone plug which is surely stereo.
>
> Yes, the headphone jack is stereo, but it seems odd that it does not support
> mono at all. My main concern is if this is a driver issue or a hardware
> limitation. I read in the archives that the audio driver still needs work.
>
> If it is the driver, then we can probably expect a fix sometime in the
> future. If its the hardware, then I still think the appropriate place
> for the conversion from stereo to mono is in the driver code. Am I wrong
> here? Should the application be responsible for conversion from stereo
> to mono? what about 16-bit to 8-bit?

You are wrong.

The current limitation is due to the hardware. The kernel is not the place
to fake hardware capabilities. It has to be handled by the applications.

The kernel only provides mecanisms, the user space decides policies.

> I only ask because it affects how I write code from here on out. If these
> things will be fixed in the driver, then a quick hack will get me up and
> running for now. However, if the driver stays as is, I might craft a more
> elegant solution into my code.

That's the way to go.

Nicolas
Received on Thu Mar 15 10:45:13 2001

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:43:56 EDT