Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 15 Feb 2001 08:58:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 15 Feb 2001 08:58:35 -0500 Received: from mandrakesoft.mandrakesoft.com ([216.71.84.35]:56872 "EHLO mandrakesoft.mandrakesoft.com") by vger.kernel.org with ESMTP id ; Thu, 15 Feb 2001 08:58:21 -0500 Date: Thu, 15 Feb 2001 07:58:19 -0600 (CST) From: Jeff Garzik To: Linux-Kernel Subject: Allocating lots of DMA RAM? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi all. Is the following loop (from drivers/sound/i810_audio.c among others) still the best way to allocate a large amount of DMA RAM for audio? ie. for audio devices that do not support scatter-gather. Thanks, Jeff /* alloc as big a chunk as we can, FIXME: is this necessary ?? */ for (order = DMABUF_DEFAULTORDER; order >= DMABUF_MINORDER; order--) if ((rawbuf = pci_alloc_consistent(state->card->pci_dev, PAGE_SIZE << order, &dmabuf->dma_handle))) break; if (!rawbuf) return -ENOMEM; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/