All of lore.kernel.org
 help / color / mirror / Atom feed
* Writing a driver for Sound Card
@ 2010-11-23 12:33 Ramya Desai
  2010-11-23 23:27 ` 
  0 siblings, 1 reply; 4+ messages in thread
From: Ramya Desai @ 2010-11-23 12:33 UTC (permalink / raw)
  To: linux-sound

Dear All,

I am new to this Linux Sound driver architecture (ALSA). I developed a
few drivers in Linux kernel environment for PCI based devices which
are of type character and block. I am going through the following link
for writing a driver for my custom sound card.

http://www.kernel.org/pub/linux/kernel/people/tiwai/docs/writing-an-alsa-driver.pdf

I have a doubt about the Linux sound driver architecture. I need to
develop the driver with mixer, player, recorder, MIDI etc. components.
Do I need to develop these components in single driver OR Do I need to
develop as a individual component (one driver for one component).

I looked into the /usr/src/linux-2.6.35/sound directory. I did not
understand it completely. Is there any driver (sample) which I can go
through?

Please let me know.

Any help greatly appreciated and helpful to me.

Thanks and Regards,
Srinivas G

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Writing a driver for Sound Card
@ 2010-11-23 12:47 Ramya Desai
  2010-11-23 14:27 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Ramya Desai @ 2010-11-23 12:47 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai

Dear All,

I am new to this Advanced Linux Sound Architecture (ALSA) driver. I developed a
few drivers in Linux kernel environment for PCI based devices which
are of type character and block. I am going through the following link
for writing a driver for my custom sound card.

http://www.kernel.org/pub/linux/kernel/people/tiwai/docs/writing-an-alsa-driver.pdf

I have a doubt about the Linux sound driver architecture. I need to
develop the driver with mixer, player, recorder, MIDI etc. components.
Do I need to develop these components in single driver OR Do I need to
develop as a individual component (one driver for one component).

I looked into the /usr/src/linux-2.6.35/sound directory. I did not
understand it completely. Is there any driver (sample) which I can go
through?

Please let me know.

Any help greatly appreciated and helpful to me.

Thanks and Regards,
Srinivas G

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Writing a driver for Sound Card
  2010-11-23 12:47 Writing a driver for Sound Card Ramya Desai
@ 2010-11-23 14:27 ` Clemens Ladisch
  0 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2010-11-23 14:27 UTC (permalink / raw)
  To: Ramya Desai; +Cc: tiwai, alsa-devel

Ramya Desai wrote:
> I have a doubt about the Linux sound driver architecture. I need to
> develop the driver with mixer, player, recorder, MIDI etc. components.
> Do I need to develop these components in single driver OR Do I need to
> develop as a individual component (one driver for one component).

You can do this however you want; ALSA doesn't impose any restriction.

Many drivers choose put the code for different components in separate
source files because the components are actually independent.

When a driver uses other modules, this is usually because that hardware
is common for multiple sound cards (e.g., most MIDI interfaces are
compatible with the Roland MPU-401).

> I looked into the /usr/src/linux-2.6.35/sound directory. I did not
> understand it completely. Is there any driver (sample) which I can go
> through?

The basic driver structure is explained in the documentation; most of
the additional code in drivers handles the quirks of actual hardware
and would not be very helpful for you.  Do you have any specific
questions?

Please tell us more about the architecture of your hardware.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Writing a driver for Sound Card
  2010-11-23 12:33 Ramya Desai
@ 2010-11-23 23:27 ` 
  0 siblings, 0 replies; 4+ messages in thread
From:  @ 2010-11-23 23:27 UTC (permalink / raw)
  To: linux-sound

On 11/23/2010 01:21 PM, Ramya Desai wrote:
> Dear All,
> 
> I am new to this Linux Sound driver architecture (ALSA). I developed a
> few drivers in Linux kernel environment for PCI based devices which
> are of type character and block. I am going through the following link
> for writing a driver for my custom sound card.

your best bet might be to subscribe to the either linux audio
developers' mailing list or the alsa-devel list and re-post your
question there. this list tends to be mainly for maintenance and the
occasional trading of patches.

good luck with your project,

jörn


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-23 23:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 12:47 Writing a driver for Sound Card Ramya Desai
2010-11-23 14:27 ` Clemens Ladisch
  -- strict thread matches above, loose matches on Subject: below --
2010-11-23 12:33 Ramya Desai
2010-11-23 23:27 ` 

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.