LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-24-2007, 12:44 PM   #1
Pete Abel
LQ Newbie
 
Registered: Oct 2004
Location: US
Distribution: Slackware 10.2 & 11.0, Debian 3.1 sarge and FreeBSD 6.2
Posts: 4

Rep: Reputation: 0
AC97 interface question


Hi,

For a while now, I have been going around asking this question, yet fellow Linux-users seem to shy away from it, which is causing me to be somewhat alarmed.

Im trying to write a library/module to allow another user-space app to access the audio codec (sound chip) using the AC 97' interface. I have looked at the Linux sound driver code (ac97.h, ac97.c and ac97_codec.c) and the Intel documentation, and I still cant figure out how the 'actual' controlling the sound chip is done. The FreeBSD book was the closest thing I got to having my questions answered. I run Slackware (10.2 and 11), Debian 3.1 sarge and FreeBSD 6.2 on my machines.

Lemme see if I can summarize my questions:

1) What is the lowest module that does the actual communication with the AC97 interface in that linux driver?
2) Whats the method used to do the communication? Device I/O thru ports, DMA, etc.?

What Im looking for really, is a general description of the process starting with being passed a pointer to the audio data buffer and ending with sending that data to the AC97 to be played.

Best
Pete
 
Old 04-29-2007, 04:00 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
ac97.c and the other files are the right ones. If you search closely, there's register reading/writing there. And that's how AC97 chips are controlled. You can view documentation of an example chip, like the one you can download from http://www.analog.com/en/prod/0,2877,AD1881A,00.html
 
  


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
Interface communication question Pinguix Linux - Networking 1 11-30-2006 08:56 AM
SLED 10 b9 user interface question tongar SUSE / openSUSE 1 04-20-2006 05:44 AM
AC97 Audio Driver question javey Linux - Newbie 1 05-23-2004 02:45 AM
KDE Interface Question defubar Linux - General 2 02-03-2004 11:52 PM
Config shorewall-two-interface question satimis Linux - Networking 0 11-04-2003 10:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:29 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