You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "qiaohaijiao (via GitHub)" <gi...@apache.org> on 2023/07/05 01:27:41 UTC

[GitHub] [nuttx] qiaohaijiao commented on a diff in pull request #9693: audio: add AUDIOIOC_FLUSH ioctl

qiaohaijiao commented on code in PR #9693:
URL: https://github.com/apache/nuttx/pull/9693#discussion_r1252448280


##########
arch/sim/src/sim/posix/sim_alsa.c:
##########
@@ -549,14 +559,56 @@ static int sim_audio_resume(struct audio_lowerhalf_s *dev)
 }
 #endif
 
+static int sim_audio_flush(struct audio_lowerhalf_s *dev)
+{
+  struct sim_audio_s *priv = (struct sim_audio_s *)dev;
+  int ret;
+
+  if (!priv->pcm)
+    {
+      return 0;

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.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

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