Looking at the current driver code for the ipaq (uda1341.c, sa1100-audio.c, and h3600-uda1341.c) in Linux 2.4.18-rmk3, it appears that volume should range from 0 to 100. What Linux kernel version are you using (or which Familiar version)?
Jamey
> -----Original Message-----
> From: Emmanuel Blot [mailto:emmanuel.blot@free.fr]
> Sent: Thursday, July 25, 2002 7:10 AM
> To: ipaq@handhelds.org
> Subject: [iPAQ] Setting sound volume
>
>
> Hi,
>
> I'm using the following code to set up the output sound
> volume for the iPAQ:
>
> sndVolume = (volume << 8) | volume;
> rc = ioctl(mixerFd, SOUND_MIXER_WRITE_VOLUME, &sndVolume);
>
> I read in the OSS specs that "volume" is supposed to be in
> range [0..100] but with the iPAQ, it
> seems that the range is [0..255], indeed.
>
> Did I miss something in the OSS specs, or is the driver not
> compliant with these specs ?
>
> Thanks
> Emmanuel
>
>
>
>
>
> _______________________________________________
> Open Source Software for Compaq iPAQ Handhelds.
> iPAQ mailing list
> iPAQ@handhelds.org
> http://handhelds.org/mailman/listinfo/ipaq
> irc://irc.openprojects.net #ipaq
>
Received on Thu Jul 25 12:22:26 2002
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:55 EDT