Re: Using the sound mixer from within the kernel.

From: Thomas Sailer (sailer@ife.ee.ethz.ch)
Date: Fri Feb 18 2000 - 05:32:12 EST


"Gordon, Brian (NM75)" wrote:

> THE QUESTION:
> I don't believe the mixer is initialized, I can't do an open("/dev/mixer")
> from within the kernel. How do I program the mixer from kernel space?
> (Using ioctls?) Any direction would be greatly appreciated.

You should be able to use open and ioctl if you first
do set_ds(KERNEL_DS). See for example
drivers/sound/sound_firmware.c for an example on how to use
open and friends from kernel space.

Tom

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:21 EST