05 2025 档案

摘要:1 snd_pcm_drain snd_pcm_dain并没有直接call snd_pcm_stop停掉HW static int snd_pcm_drain(struct snd_pcm_substream *substream, struct file *file) { struct snd_c 阅读全文
posted @ 2025-05-28 22:06 Action_er 阅读(17) 评论(0) 推荐(0)
摘要:1 silence size的设置 在snd_pcm_hw_params时设置,设置的目的时防止读旧数据,出现nosie,只有playback才需要 capture不需要,因为capture data都是充足的,只会出现读数据慢的情况,不会读到旧数据。 silence size的设置有一定的要求: 阅读全文
posted @ 2025-05-28 21:53 Action_er 阅读(41) 评论(0) 推荐(0)
摘要:1 snd_pcm_update_hw_ptr0 static int snd_pcm_update_hw_ptr0(struct snd_pcm_substream *substream, unsigned int in_interrupt) { struct snd_pcm_runtime *r 阅读全文
posted @ 2025-05-27 23:11 Action_er 阅读(31) 评论(0) 推荐(0)
摘要:1 第一种size static inline snd_pcm_uframes_t snd_pcm_avail(struct snd_pcm_substream *substream) { if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ret 阅读全文
posted @ 2025-05-27 22:52 Action_er 阅读(13) 评论(0) 推荐(0)
摘要:/* the common loop for read/write data */ snd_pcm_sframes_t __snd_pcm_lib_xfer(struct snd_pcm_substream *substream, void *data, bool interleaved, snd_ 阅读全文
posted @ 2025-05-27 22:47 Action_er 阅读(46) 评论(0) 推荐(0)