Ross,
...just a helpful hint -- that program won't do it as written: you'll get
some kind of error back (bad value or bad argument or somesuch) -- the
ioctl won't take a constant as the last argument. You'll have to do
something like :
unsigned int value = SOUND_MASK_LINE;
and
ioctl(fd, SOUND_MIXER_WRITE_RECSRC, (void *) &value);
for it to work.
Jim
Erik Hovland wrote:
>
> On Tue, Mar 15, 2005 at 10:28:18AM +0700, Ross Golder wrote:
> > Hi,
> >
> > As you can guess from the subject, I'm trying redirect sound output from
> > the speaker get the headphone socket, so I can listen to music on the
> > move etc. I know this was discussed a couple of weeks ago, and there was
> > some devmem2 voodoo you could do to make it work.
> >
> > So, rather than clutter the list with the same question again, I went to
> > check the archives. But they end around 19 November 2004, so the posts
> > I'm looking for seem to be unarchived.
> >
> > So, sorry to bother the list again, but can anyone remind me how this is
> > done?
>
> The list is archived by gmane now:
> http://news.gmane.org/gmane.comp.handhelds.linux.h5400
>
> The answer is that you do need a recent kernel (familiar 0.8.1 has it)
> and an ioctl call to make it work. This post ought to do:
> http://article.gmane.org/gmane.comp.handhelds.linux.h5400/16
>
> E
>
> --
> Erik Hovland
> mail: erik_at_hovland.org
> web: http://hovland.org/
> PGP/GPG public key available on request
> _______________________________________________
> H5400-port mailing list
> H5400-port_at_handhelds.org
> https://www.handhelds.org/mailman/listinfo/h5400-port
-- ---------------------------------------------------------------------- James T. Kaba Sarnoff Corporation There are 10 kinds of people in the world: jkaba_at_sarnoff.com those who understand binary, and those who don't. 609-734-2246Received on Tue Mar 15 2005 - 12:36:47 EST
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:20:11 EDT