All of lore.kernel.org
 help / color / mirror / Atom feed
* How to access vendor specific AC97 codec register ?
@ 2006-04-20 15:05 alasinski
  2006-04-20 15:20 ` Takashi Iwai
  2006-04-20 15:27 ` Lee Revell
  0 siblings, 2 replies; 15+ messages in thread
From: alasinski @ 2006-04-20 15:05 UTC (permalink / raw)
  To: alsa-devel

Hi,

I need to do IO specific operation from UCB1400 on Snapper Arm board. This 
has to be done from C code as it is part of a larger project. All what I 
need is to be able to read and write content of the few vendor specific AC97 
codec registers: 0x5A,0x5C. I'm not interested with any other ALSA 
functionality.

I have ALSA installed and running with simple programs that can successfully 
open controller with snd_ctl_open () and list available control elements. 
This is basically J.C.Georgas sample I found. I can read content of all AC97 
registers by cat /proc/asound/card0/codec97#/ac97#0-0+regs. That assures me 
that all driver and lib parts are working. All what I need is to write a 
simple piece of code ....

However, I spent 2 days reading through ALSA back and forth and I find this 
task very daunting to say at least. For one things I was not able to find an 
architecture document explaining how parts of ALSA work, to be able to find 
some sort of direction. There are samples dedicated to solving some of a 
problems, unfortunately not my problem. Man pages and reference are only 
little more then code browsing. Tutorials explain in brief what I don't need 
to know. In summary: typical situation when you are tasked with something 
that is off main stream.

I have an inkling that I should prepare UCB1400.conf file to define control 
elements that map to the registers (how ?). Then I should be able to 
snd_ctl_elem_read() or .._write() to them. Perhaps there is other way 
around: something like making ioctl() call on a driver directly w/o 
libasound. I'm in lost.

I will appreciate any suggestions and helpful hints

cheers
-al

a l a s i n s k i @ r o g e r s . c o m





-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

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

end of thread, other threads:[~2006-04-20 18:54 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20 15:05 How to access vendor specific AC97 codec register ? alasinski
2006-04-20 15:20 ` Takashi Iwai
2006-04-20 15:34   ` alasinski
2006-04-20 15:58     ` Takashi Iwai
2006-04-20 16:15       ` alasinski
2006-04-20 15:27 ` Lee Revell
2006-04-20 15:48   ` How to access vendor specific AC97 codec register? alasinski
2006-04-20 16:13     ` Liam Girdwood
2006-04-20 16:19       ` Takashi Iwai
2006-04-20 16:37         ` Liam Girdwood
2006-04-20 16:37       ` Re: How to access vendor specific AC97 codecregister? alasinski
2006-04-20 16:57         ` Liam Girdwood
2006-04-20 17:40           ` Re: Re: How to access vendor specific AC97codecregister? alasinski
2006-04-20 18:14             ` Liam Girdwood
2006-04-20 18:54               ` Re: Re: Re: How to access vendor specificAC97codecregister? alasinski

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.