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


##########
arch/sim/src/sim/posix/sim_alsa.c:
##########
@@ -581,6 +585,12 @@ static int sim_audio_ioctl(struct audio_lowerhalf_s *dev, 
int cmd,
 
           info->nbuffers    = priv->nbuffers;
           info->buffer_size = priv->buffer_size;
+
+          if (!priv->playback && priv->ops->get_samples)
+            {
+              info->buffer_size = priv->ops->get_samples(priv->codec) *

Review Comment:
   Dears, 
   how about use MAX? 
   If user SET_BUFFERINFO and meets condition, use this one.  else give proper 
size.
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to