Trying to build an IOAudioFamily driver for the first time...
Trying to build an IOAudioFamily driver for the first time...
- Subject: Trying to build an IOAudioFamily driver for the first time...
- From: Nathan Aschbacher <email@hidden>
- Date: Tue, 19 Nov 2002 00:35:35 -0800
Howdy,
This has been sitting latent on the Darwin driver development list so I
thought I'd ask here too.
I have a couple of questions that I was hoping would have quick answers.
1) In the SamplePCIAudioDriver project in the file
SamplePCIAudioDevice.h there is a struct called
SamplePCIAudioDeviceRegisters which houses four Uint32's named reg1
through reg4. These are never used in the project with the lone
exception of in SamplePCIAudioDevice.cpp where the struct is the cast
type for the return from (SamplePCIAudioDeviceRegisters
*)deviceMap->getVirtualAddress(); , so given that, it hasn't been clear
to me how I ought to define the registers for the device I'm working
with because I don't really know what role reg1 through reg4 are
playing. Are they just Uint32's, do they later become pointers to
structs which house additional information about the register like in
the Linux driver model, etc?
As it stands right now I'm thinking that I just need to do something
like this, currently all my registers are #defines in a seperate header
file, so I'd have something like this in a seperate file:
#define IPR_FXDSP 0x00800000
And then in my MyAudioDevice.h I would do something like this:
typedef struct MyDeviceRegisters {
UInt32 ipr_fxdsp = IPR_FXDSP;
...
...
...
} MyDeviceRegisters;
Does that seem right? And I'd do that for all the registers on the
device that it looked like I was going to need to use at some point or
another. The device has a large number of registers which are for
legacy PC specific operation that I think I can ignore.
Alright, now onto the next question...
2) Is Apple's AC97 codec implementation from the Darwin CNS tree
cross-platform? That is can I use the AC97 compatibility of the
hardware I'm working with in concert with the AC97 implementation from
Apple to quickly get basic analog input and output functioning on my
device through an IOAudioFamily driver?
Thanks very much, you can be rest assured as I move forward I'll have
plenty more. Thanks in advance, while the documentation for things
like this isn't very robust or even recent it's nice to know that the
bright folks who monitor these mailings lists are always there to lend
a hand.
-Nathan
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.