PCM设备
PCM设备创建流程

上图中ops是struct file_operations snd_pcm_f_ops[2],是PCM设备文件操作入口函数。

打开PCM设备文件时,创建相应的pcm substream实例,通过snd_pcm_set_ops()设置pcm substream的pcm操作。

pcm设备打开流程


pcm设备文件的prepare操作


上图中ops是struct file_operations snd_pcm_f_ops[2],是PCM设备文件操作入口函数。

打开PCM设备文件时,创建相应的pcm substream实例,通过snd_pcm_set_ops()设置pcm substream的pcm操作。



