* Is there any queston when using ALSA in arm platform?
@ 2004-12-03 3:50 sudong
0 siblings, 0 replies; 2+ messages in thread
From: sudong @ 2004-12-03 3:50 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 275 bytes --]
Hi
I'm writing a sound driver based ALSA for Intel PXA27x + Ac97 Codec. The AC97 api in alsa is for pci bus. So I want to know whether I can use it directly, or need write it myself? Is there any queston when using ALSA in arm platform?
Thanks!
Sudong
2004-12-3
[-- Attachment #2: Type: text/html, Size: 291 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is there any queston when using ALSA in arm platform?
@ 2004-12-03 7:18 Peter Zubaj
0 siblings, 0 replies; 2+ messages in thread
From: Peter Zubaj @ 2004-12-03 7:18 UTC (permalink / raw)
To: sudong; +Cc: alsa-devel
Hi,
AFAIK AC97 API is not dependant on bus type.
This is code from emu10k1 driver, it initializes ac97 struct:
ac97_template_t ac97;
static ac97_bus_ops_t ops = {
.write = snd_emu10k1_ac97_write,
.read = snd_emu10k1_ac97_read,
};
if ((err = snd_ac97_bus(emu->card, 0, &ops, NULL, &pbus)) < 0)
return err;
memset(&ac97, 0, sizeof(ac97));
ac97.private_data = emu;
ac97.private_free = snd_emu10k1_mixer_free_ac97;
if ((err = snd_ac97_mixer(pbus, &ac97, &emu->ac97)) < 0)
return err;
.write = snd_emu10k1_ac97_write,
.read = snd_emu10k1_ac97_read,
These 2 functions are responsible to transfer control data to/from
ac97. You should implement it for your chip.
Peter Zubaj
____________________________________
http://www.pobox.sk/ - najvacsi slovensky freemail
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-12-03 7:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-03 3:50 Is there any queston when using ALSA in arm platform? sudong
-- strict thread matches above, loose matches on Subject: below --
2004-12-03 7:18 Peter Zubaj
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.