Tinyalsa框架之(一)声卡和PCM的创建

xxx.proble init.c control.c device.c core.h sound.c pcm.c xxx.probe snd_card_create snd_ctl_create snd_device_new(SNDRV_DEV_PCM,&ops) snd_ctl_dev_register snd_register_device(SNDRV_DEVICE_TYPE_CONTROL,&snd_ctl_f_ops)真正的控制节点 snd_register_device_for_dev [snd_minors[minor] = preg] snd_wss_pcm snd_pcm_new snd_pcm_new_stream(SNDRV_PCM_STREAM_PLAYBACK) snd_pcm_new_stream(SNDRV_PCM_STREAM_CAPTURE) snd_device_new(card, SNDRV_DEV_PCM, pcm, &ops)) snd_pcm_dev_register snd_pcm_set_ops(SNDRV_PCM_STREAM_PLAYBACK) snd_pcm_set_ops(SNDRV_PCM_STREAM_CAPTURE xxx.proble init.c control.c device.c core.h sound.c pcm.c xxx.probe Audio Tinyalsa control节点

你可能感兴趣的:(LINUX,内核驱动)