You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/03 14:12:44 UTC

[GitHub] [incubator-nuttx] GUIDINGLI commented on a change in pull request #2124: arch/sim: add sim audio support

GUIDINGLI commented on a change in pull request #2124:
URL: https://github.com/apache/incubator-nuttx/pull/2124#discussion_r516452647



##########
File path: arch/sim/src/Makefile
##########
@@ -202,6 +202,11 @@ ifeq ($(CONFIG_RPTUN),y)
   CSRCS += up_rptun.c
 endif
 
+ifeq ($(CONFIG_AUDIO),y)

Review comment:
       done

##########
File path: arch/sim/src/sim/up_audio.c
##########
@@ -0,0 +1,590 @@
+/****************************************************************************
+ * arch/sim/src/sim/up_audio.c

Review comment:
       done

##########
File path: arch/sim/src/sim/up_initialize.c
##########
@@ -281,4 +282,9 @@ void up_initialize(void)
 #if defined(CONFIG_FS_SMARTFS) && (defined(CONFIG_SIM_SPIFLASH) || defined(CONFIG_SIM_QSPIFLASH))
   up_init_smartfs();
 #endif
+
+#ifdef CONFIG_AUDIO
+  audio_register("pcm0p", sim_audio_initialize(true));

Review comment:
       done




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org