Update of /cvsroot/alsa/alsa-kernel/ppc In directory usw-pr-cvs1:/tmp/cvs-serv28984
Modified Files: pmac.c Log Message: fixed memory allocation. Index: pmac.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/ppc/pmac.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- pmac.c 16 Aug 2002 15:08:49 -0000 1.14 +++ pmac.c 16 Aug 2002 16:05:30 -0000 1.15 @@ -244,7 +244,10 @@ snd_pmac_dma_set_command(rec, &chip->extra_dma); snd_pmac_dma_run(rec, RUN); } - offset = runtime->dma_addr; + /* continuous DMA memory type doesn't provide the physical address, + * so we need to resolve the address here... + */ + offset = virt_to_bus(runtime->dma_area); for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) { st_le32(&cp->phy_addr, offset); st_le16(&cp->req_count, rec->period_size); @@ -651,9 +654,7 @@ static void pmac_pcm_free(snd_pcm_t *pcm) { -#if 0 snd_pcm_lib_preallocate_free_for_all(pcm); -#endif } int __init snd_pmac_pcm_new(pmac_t *chip) @@ -687,10 +688,8 @@ chip->playback.cur_freqs = chip->freqs_ok; chip->capture.cur_freqs = chip->freqs_ok; -#if 0 /* preallocate 64k buffer */ snd_pcm_lib_preallocate_pages_for_all(pcm, 64 * 1024, 64 * 1024, GFP_KERNEL); -#endif return 0; } ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog