Skip to contentSkip to conversation

Is there any queston when using ALSA in arm platform?

DISCUSSION Peter Zubaj 1 participant 1 message Dec 3, 2004

lore
Share & tools
lore
#0 lore raw

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/