LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2011, 12:49 AM   #1
yethish
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 0
writing a dummy driver


Hi
i want to write a virtual audio driver for play back application similar to the one available in kernel source as dummy alsa driver.
what are the steps in writing a virtual driver.
 
Old 06-14-2011, 01:32 PM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
A virtual driver for what? the kernel? SDL? something else?
 
Old 06-14-2011, 11:26 PM   #3
yethish
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Original Poster
Rep: Reputation: 0
virtual driver

virtual driver for kernel. The audio player has to send the audio data to my driver.
 
Old 06-15-2011, 04:25 PM   #4
scarypajamas
LQ Newbie
 
Registered: May 2009
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
I'm just getting into driver writing myself, but you might find these links useful:

http://lwn.net/Kernel/LDD3/
http://www.freesoftwaremagazine.com/.../drivers_linux

Again, I'm a newbie at drivers, but I think you might want to use whats called a character driver. Take a look at the "memory" driver example (it starts at the bottom of page where it says: The complete driver “memory”: initial part of the driver). Basically, the tutorial will teach you how to write a driver that you can open and read/write too via C functions.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lmms - No audio-driver working - falling back to dummy-audio-driver GuySkarpz Linux - Software 3 01-20-2009 03:58 PM
how to make a dummy driver in kernel 2.6 siddhi817 Linux - Newbie 1 05-12-2008 12:39 AM
Dummy drivers for Nv after update, can't get old driver Hairulfr SUSE / openSUSE 1 02-25-2006 04:52 PM
writing driver alice95089 Linux - Software 0 04-06-2005 03:55 AM
Writing Driver Software dr_who Linux - Networking 3 09-18-2003 08:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration