mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
auvia & es1370: let userland access audio buffers
Change-Id: I23873c7e102f0a0ba112f427d72b185887755835 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8521 Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
parent
44d5b89d66
commit
67c520afb0
@ -73,7 +73,7 @@ auvia_mem_new(auvia_dev *card, size_t size)
|
||||
if ((mem = malloc(sizeof(*mem))) == NULL)
|
||||
return (NULL);
|
||||
|
||||
mem->area = alloc_mem(&mem->phy_base, &mem->log_base, size, "auvia buffer", false);
|
||||
mem->area = alloc_mem(&mem->phy_base, &mem->log_base, size, "auvia buffer", true);
|
||||
mem->size = size;
|
||||
if (mem->area < B_OK) {
|
||||
free(mem);
|
||||
|
@ -57,7 +57,7 @@ es1370_mem_new(es1370_dev *card, size_t size)
|
||||
if ((mem = malloc(sizeof(*mem))) == NULL)
|
||||
return (NULL);
|
||||
|
||||
mem->area = alloc_mem(&mem->phy_base, &mem->log_base, size, "es1370 buffer", false);
|
||||
mem->area = alloc_mem(&mem->phy_base, &mem->log_base, size, "es1370 buffer", true);
|
||||
mem->size = size;
|
||||
if (mem->area < B_OK) {
|
||||
free(mem);
|
||||
|
Loading…
Reference in New Issue
Block a user