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
阅读全文
摘要:1 silence size的设置 在snd_pcm_hw_params时设置,设置的目的时防止读旧数据,出现nosie,只有playback才需要 capture不需要,因为capture data都是充足的,只会出现读数据慢的情况,不会读到旧数据。 silence size的设置有一定的要求:
阅读全文
摘要: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
阅读全文
摘要:1 第一种size static inline snd_pcm_uframes_t snd_pcm_avail(struct snd_pcm_substream *substream) { if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ret
阅读全文
摘要:/* 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_
阅读全文

浙公网安备 33010602011771号