libc: audio: nxstyle fixes

This change is needed to be able to fix the warnings on the audio core
and includes the propagation of the fix in the audio.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea
2020-04-21 10:55:41 +02:00
committed by patacongo
parent fc8522cc97
commit 76c47f6b21
4 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -556,8 +556,8 @@ static int audio_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
/* Perform a simple apb_free operation */
DEBUGASSERT(bufdesc->u.pBuffer != NULL);
apb_free(bufdesc->u.pBuffer);
DEBUGASSERT(bufdesc->u.buffer != NULL);
apb_free(bufdesc->u.buffer);
ret = sizeof(struct audio_buf_desc_s);
}
}
@@ -575,7 +575,7 @@ static int audio_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
DEBUGASSERT(lower->ops->enqueuebuffer != NULL);
bufdesc = (FAR struct audio_buf_desc_s *) arg;
ret = lower->ops->enqueuebuffer(lower, bufdesc->u.pBuffer);
ret = lower->ops->enqueuebuffer(lower, bufdesc->u.buffer);
}
break;
+1 -1
View File
@@ -597,7 +597,7 @@ static int audio_comp_freebuffer(FAR struct audio_lowerhalf_s *dev,
if (ret == -ENOTTY)
{
apb_free(bufdesc->u.pBuffer);
apb_free(bufdesc->u.buffer);
ret = sizeof(*bufdesc);
}