On Tue, Mar 15, 2005 at 12:34:11PM -0500, Jim Kaba wrote:
> 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.
Good find again. I was meaning to get to the other reports of the bad ioctl
call.
The corrected code attached. You can get a precompiled binary (from this
code) here:
http://hovland.org/familiar/hpswitch
E
-- Erik Hovland mail: erik AT hovland DOT org web: http://hovland.org/ PGP/GPG public key available on request
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:20:11 EDT