Jim Deas | 8 Mar 2003 23:35

Using /dev/dsp from a kernel driver

I have a good tone generator running in user space.
This device uses /dev/dsp write and ioctl to do what
I want.
 I would now like to move this to the driver that creates
the audio data.
Right now I have to open both devices and transfer the
data via user space between the two devices.

How do I open and use ioctl from another driver?
I know about the ksyms but have not been able to
understand the move from opening a file pointer and 
using ioctls in user space to directly connecting two
drives using the kernels symbol table (ksyms).

Thanks,
J. Deas

-
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Jim Deas | 21 Mar 2003 19:37

Illegal seek using file_operations write command from kernel

I am having trouble linking my driver
to the sound subsystem. I can open the file
correctly but have trouble writing to it.
The open and close sections seem to work
including a test seek command in the open area.
The writeAudioFrame always returns an illegal
seek (-29).

Here is the code:
----------------------------------------------------------------
int OpenAudioDevice(char* AudioDev){

 int speed,format;

//-------------------Open Audio Device ----------------
// if((audio_fd = open(AudioDev, O_WRONLY, 0)) == -1){
//	 printk("ltc -> Error Opening audio Device.\n");
//	 return -1;
// }
	pbuffer = kmalloc(BUF_SIZE,GFP_KERNEL);//Create audio buffer
	fs = get_fs();
	set_fs(KERNEL_DS);//Setup for user space commands

	fd = filp_open(AudioDev, O_WRONLY, 0);
	if(IS_ERR(fd)){
		printk("Failed to open %s.\n",AudioDev);
		return -1;
	}
	if(fd->f_op->llseek(fd,0,SEEK_SET) < 0){
		printk("ltc -> Error seeking to zero.\n");
(Continue reading)

W. L. Estes | 31 Mar 2003 17:07
Favicon

azt1008 on HP Vectra

I have an old HP Vectra with a sound card in it that seems to identify
itself as an azt1008. Using a fresh redhat 8.0 install, sndconfig sees
the card as the azt1008 and tries to use the ad1848.o module. But no
go, no sound comes out the card and I get error messages from ad1848.o
that don't really seem very helpful.

Any ideas or suggestions?

Thanks,

--Will

--

-- 
Will Estes
Unix Systems Programmer
UNCG MIS, Systems Group
-
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Robert.Siemer | 31 Mar 2003 17:05
Picon
Picon

Re: azt1008 on HP Vectra

On Mon, Mar 31, 2003 at 10:07:49AM -0500, W. L. Estes wrote:

> ... and I get error messages from ad1848.o
> that don't really seem very helpful.
> 
> Any ideas or suggestions?

Yeah, include the error messages.

Rob
-
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

W. L. Estes | 31 Mar 2003 20:53
Favicon

Re: azt1008 on HP Vectra

On Monday, 31 March 2003,17:05 +0200, Robert.Siemer <at> gmx.de wrote:

> Yeah, include the error messages.

/lib/modules/2.4.18-14/kernel/drivers/sound/ad1848.o: init_modlue: no such device

This is the error I get when trying the modprobe step in running
sndconfig with my azt1008  inside my HP Vectra.

Any suggestions?

--Will
-
To unsubscribe from this list: send the line "unsubscribe linux-sound" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane