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:
Jérôme Duval 2024-11-05 17:39:22 +01:00 committed by waddlesplash
parent 44d5b89d66
commit 67c520afb0
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);