You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/04/21 22:42:04 UTC
[incubator-nuttx-apps] 02/04: examples: i2sloop: nxstyle fixes
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit c9eaf0beaafac20f56ec48968998d45aa2781d49
Author: Alin Jerpelea <al...@sony.com>
AuthorDate: Tue Apr 21 17:37:52 2020 +0200
examples: i2sloop: nxstyle fixes
nxstyle fixes for i2sloop exaple
Signed-off-by: Alin Jerpelea <al...@sony.com>
---
examples/i2sloop/i2sloop_main.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/examples/i2sloop/i2sloop_main.c b/examples/i2sloop/i2sloop_main.c
index 861d76d..d0c8470 100644
--- a/examples/i2sloop/i2sloop_main.c
+++ b/examples/i2sloop/i2sloop_main.c
@@ -88,7 +88,7 @@ int main(int argc, FAR char *argv[])
freq = 16000;
while ((opt = getopt(argc, argv, "c:f:")) != -1)
- {
+ {
switch (opt)
{
case 'c':
@@ -99,7 +99,7 @@ int main(int argc, FAR char *argv[])
freq = atoi(optarg);
break;
}
- }
+ }
/* Open the I2S character device */
@@ -120,7 +120,7 @@ int main(int argc, FAR char *argv[])
/* Allocate an audio buffer */
desc.numbytes = 1024;
- desc.u.ppBuffer = &apb;
+ desc.u.pbuffer = &apb;
ret = apb_alloc(&desc);
DEBUGASSERT(ret == sizeof(desc));
@@ -139,7 +139,6 @@ int main(int argc, FAR char *argv[])
bufsize = sizeof(struct ap_buffer_s) + apb->nbytes;
ret = write(fd, apb, bufsize);
}
-
}
apb_free(apb);