-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi everyone,
how is the status now with the headphone jack for H5400? how is it possible to
set the line-out to work and to disable the speakers without any mixer gui?
(taken one already has the patched ak4535.o module)
the below code sniplet didn't work because of:
ioctl: switch to headphones out: Bad address
where do I find more details about the possible ioctls for this device?
SOUND_MIXER_WRITE_RECSRC, SOUND_MASK_LINE and so on?
thanks!
Mike
On Monday 31 January 2005 18:49, Christian Werner wrote:
> Michael Kropfberger wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Monday 31 January 2005 17:20, Jamey Hicks wrote:
> > > I cannot verify that the patch does what it intends by reading it, but
> > > it looks OK so I applied it to CVS. We'll need to build and upload new
> > > kernel packages.
> >
> > I wanted to use the precompiled module which was handed around, but I
> > couldnt find out how to effectively switch the output to the
> > headphones... just connecting a headphone didnt help...
>
> #include <unistd.h>
> #include <fcntl.h>
> #include <errno.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <linux/soundcard.h>
>
> main()
> {
> int fd, ret;
>
> fd = open("/dev/sound/dsp", O_RDWR);
> if (fd < 0) {
> perror("open");
> ret = fd;
> } else {
> ret=ioctl(fd, SOUND_MIXER_WRITE_RECSRC, SOUND_MASK_LINE);
> if (ret < 0) perror("ioctl");
> }
> exit(ret < 0 ? 1 : 0);
> }
>
> Hope that works and helps,
> Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFCCgi7w6IyDgGSsNIRAifVAJ4tY2bDl7W92gY1DGwgtc/X3ASEjgCcDQLv
T5AoC/zVsYGepQSQK9B7pWg=
=gN+V
-----END PGP SIGNATURE-----
Received on Wed Feb 09 2005 - 08:00:06 EST
This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:20:11 EDT