Costmetic changes

This commit is contained in:
Gregory Nutt 2014-08-05 10:03:29 -06:00
parent 6e71fa30f1
commit bb29ba0a00
2 changed files with 7 additions and 4 deletions

View File

@ -716,7 +716,8 @@ static inline void audio_dequeuebuffer(FAR struct audio_upperhalf_s *upper,
msg.session = session; msg.session = session;
#endif #endif
apb->flags |= AUDIO_APB_DEQUEUED; apb->flags |= AUDIO_APB_DEQUEUED;
mq_send(upper->usermq, &msg, sizeof(msg), CONFIG_AUDIO_BUFFER_DEQUEUE_PRIO); mq_send(upper->usermq, &msg, sizeof(msg),
CONFIG_AUDIO_BUFFER_DEQUEUE_PRIO);
} }
} }
@ -754,7 +755,7 @@ static inline void audio_complete(FAR struct audio_upperhalf_s *upper,
msg.session = session; msg.session = session;
#endif #endif
mq_send(upper->usermq, &msg, sizeof(msg), mq_send(upper->usermq, &msg, sizeof(msg),
CONFIG_AUDIO_BUFFER_DEQUEUE_PRIO); CONFIG_AUDIO_BUFFER_DEQUEUE_PRIO);
} }
} }

View File

@ -1371,7 +1371,8 @@ static void wm8904_returnbuffers(FAR struct wm8904_dev_s *priv)
apb = (FAR struct ap_buffer_s *)dq_remfirst(&priv->doneq); apb = (FAR struct ap_buffer_s *)dq_remfirst(&priv->doneq);
irqrestore(flags); irqrestore(flags);
audvdbg("Returning apb=%p flags=%04x\n", apb, apb->flags); audvdbg("Returning: apb=%p curbyte=%d nbytes=%d flags=%04x\n",
apb, apb->curbyte, apb->nbytes, apb->flags);
/* Are we returning the final buffer in the stream? */ /* Are we returning the final buffer in the stream? */
@ -1679,7 +1680,8 @@ static int wm8904_enqueuebuffer(FAR struct audio_lowerhalf_s *dev,
struct audio_msg_s term_msg; struct audio_msg_s term_msg;
int ret = -EAGAIN; int ret = -EAGAIN;
audvdbg("apb=%p\n", apb); audvdbg("Enqueueing: apb=%p curbyte=%d nbytes=%d flags=%04x\n",
apb, apb->curbyte, apb->nbytes, apb->flags);
/* Take a reference on the new audio buffer */ /* Take a reference on the new audio buffer */