*/staticintsunxi_daudio_init(struct snd_soc_pcm_runtime *rtd){intret;structsnd_soc_codec*codec=rtd->codec;structsnd_soc_dapm_context*dapm= &codec->dapm;structsnd_soc_card*card=rtd->card;runtime = rtd;/* Add imapx specific widgets */snd_soc_dapm_new_controls(dapm, rt3261_dapm_widge...
staticinttegra_wm8903_init(struct snd_soc_pcm_runtime *rtd){structsnd_soc_codec*codec=rtd->codec;structsnd_soc_dapm_context*dapm= &codec->dapm;structsnd_soc_card*card=codec->card;structtegra_wm8903*machine=snd_soc_card_get_drvdata(card);structtegra_wm8903_platform_data*pdata=machine->p...
-->soc_post_component_init// 为pcm runtime实例创建device对象-->soc_new_pcm// 创建PCM 逻辑设备,分FE和BE-->snd_soc_dapm_link_dai_widgets// dai widget 和 stream widget 建立连接-->snd_soc_dapm_connect_dai_link_widgets// BE dai widget和 codec dai widget建立连接,codec dai widget和codec ...
==> snd_pcm_playback_open或者snd_pcm_capture_open ==> snd_pcm_open或者oss的snd_pcm_oss_f_reg.snd_pcm_oss_open,这就对应/dev/dsp了 ==> snd_pcm_open_file或者oss的snd_pcm_oss_open_file ==> snd_pcm_open_substream ==> soc_pcm_open /* ASoC PCM operations */ static struct snd_p...
snd_soc_platform 之 ops:snd_pcm_ops 分析 snd_pcm_ops open 中会有 DMA 的相关设置 注意 其中的 音频数据流向图 就是 dpam 中 流向图 snd_pcm_ops的更多描述
snd_soc_dapm_sync_endpoints(codec);return0; } 开发者ID:ZhizhouTian,项目名称:s3c-linux,代码行数:19,代码来源:smdk6440_s5m8751.c 示例5: sdp4430_twl6040_init ▲点赞 1▼ staticintsdp4430_twl6040_init(struct snd_soc_pcm_runtime *rtd){structsnd_soc_codec*codec=rtd->codec;structsnd_soc_...
在下文中一共展示了snd_soc_jack_add_gpios函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。 示例1: tegra_max98090_asoc_init ▲点赞 6▼ staticinttegra_max98090_asoc_init(struct snd_soc_pcm_runtime *rtd){st...
struct snd_pcm_hw_params *params){structsnd_soc_pcm_runtime*rtd=substream->private_data;structsnd_soc_dai*codec_dai=rtd->codec_dai;structsnd_soc_codec*codec=codec_dai->codec;structsnd_soc_card*card=codec->card;structtegra_wm8753*machine=snd_soc_card_get_drvdata(card);intsrate, mclk;in...
struct snd_pcm_hw_params *params){structsnd_soc_pcm_runtime*rtd=substream->private_data;structsnd_soc_device*socdev=rtd->socdev;structsnd_soc_codec*codec=socdev->codec;structcs4270_private*cs4270=codec->private_data;unsignedintret =0;unsignedinti;unsignedintrate;unsignedintratio;intreg;/* Fi...
err = snd_soc_jack_add_gpios(&smartq_jack, ARRAY_SIZE(smartq_jack_gpios), smartq_jack_gpios);returnerr; } 开发者ID:383530895,项目名称:linux,代码行数:32,代码来源:smartq_wm8987.c 示例6: msm8930_audrx_init ▲点赞 1▼ staticintmsm8930_audrx_init(struct snd_soc_pcm_runtime *rtd){int...