Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2764769
  • 博文数量: 505
  • 博客积分: 1552
  • 博客等级: 上尉
  • 技术积分: 2514
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-23 18:24
文章分类

全部博文(505)

文章存档

2019年(12)

2018年(15)

2017年(1)

2016年(17)

2015年(14)

2014年(93)

2013年(233)

2012年(108)

2011年(1)

2009年(11)

分类: LINUX

2014-03-20 22:43:54

ALSA打开数据流程
    soc_pcm_open => cpu_dai->driver->ops->startup => platform->driver->ops->open => codec_dai->driver->ops->startup \
    => rtd->dai_link->ops->startup  
 
    ALSA的HW_param流程
    soc_pcm_hw_params => rtd->dai_link->ops->hw_params => codec_dai->driver->ops->hw_params => cpu_dai->driver->ops->hw_params \
    => platform->driver->ops->hw_params
 
    ALSA的Prepare流程
    snd_pcm_prepare => snd_pcm_action_nonatomic => snd_pcm_action_group => snd_pcm_do_prepare => substream->ops->prepare \
    => soc_pcm_prepare => rtd->dai_link->ops->prepare => platform->driver->ops->prepare => codec_dai->driver->ops->prepare \
           => cpu_dai->driver->ops->prepare  
 
    ALSA的Write流程
    snd_pcm_playback_ioctl => snd_pcm_playback_ioctl1 => SNDRV_PCM_IOCTL_WRITEN_FRAMES => snd_pcm_lib_writev => snd_pcm_lib_write1 \
    => |||| =>  snd_pcm_lib_writev_transfer => copy_from_user [copy user speace data to dma]  
    snd_pcm_start => snd_pcm_action => snd_pcm_action_group => snd_pcm_do_start =>  substream->ops->trigger
 
    ALSA的Trigger流程
    substream->ops->trigger => soc_pcm_trigger => codec_dai->driver->ops->trigger => platform->driver->ops->trigger \
    => cpu_dai->driver->ops->trigger
    
    ALSA的cset流程

    snd_ctl_ioctl => SNDRV_CTL_IOCTL_ELEM_WRITE => snd_ctl_elem_write_user => snd_ctl_elem_write => kctl->put => codec->write
阅读(2704) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~