通过devm_snd_soc_register_component源码可知,此函数主要通过devres_alloc函数完成了devm_component_release的注册,并申请了资源,然后通过snd_soc_register_component完成了snd_soc_component_driver和snd_soc_dai_driver完成了dai的注册。 1.1、devres_alloc宏 我么来看一下devres_alloc这个宏,它是通过调研__devres_all...
intsnd_soc_component_initialize(structsnd_soc_component *component,conststructsnd_soc_component_driver *driver,structdevice *dev){INIT_LIST_HEAD(&component->dai_list);INIT_LIST_HEAD(&component->dobj_list);INIT_LIST_HEAD(&component->card_list);INIT_LIST_HEAD(&component->list);mutex_init(&comp...
通过devm_snd_soc_register_component源码可知,此函数主要通过devres_alloc函数完成了devm_component_release的注册,并申请了资源,然后通过snd_soc_register_component完成了snd_soc_component_driver和snd_soc_dai_driver完成了dai的注册。 1.1、devres_alloc宏 我么来看一下devres_alloc这个宏,它是通过调研__devres_all...
### 步骤 3:调用snd_soc_register_component函数 最后,在主函数或模块初始化函数中调用snd_soc_register_component函数注册音频组件。 ```c static int __init my_component_init(void) { int ret; ret = snd_soc_register_component(&my_component, &my_component_driver, &my_component_pm); if (ret <...
[ 75.897933] tlv320aic3x-codec 2-0018: ASoC: error at snd_soc_component_update_bits on tlv320aic3x-codec.2-0018: -6 Please check Image and Boot logs: TAG to search in txt file: divyeh ,tlv320aic. I think master IMX8MMEVK is not able to communicate with slave address...
-->soc_probe_link_components// 遍历每个pcm runtime实例-->soc_probe_component// cpu dai和codec dai都是以component实例注册。probe cpu dai component-->snd_soc_dapm_new_controls// 注册component widgets。-->snd_soc_dapm_new_dai_widgets// 遍历component上的每个dai实例,创建 dai widget实例-->调用...
snd_soc_codec_driver soc_codec_dev_uda134x = { .probe = uda134x_soc_probe, .remove...ret = snd_soc_component_initialize(&codec->component, &codec_drv->component_driver, dev); 3...ret = snd_soc_register_dais(&codec->component, dai_drv, num_dai, false); if (ret < 0) { dev...
snd_soc_component_init_regmap(component, regmap);/* set alc mux to none */snd_soc_component_update_bits(component, AC97_VIDEO,0x3000,0x3000);return0; } 开发者ID:Lyude,项目名称:linux,代码行数:35,代码来源:wm9712.c 示例2: cs4270_set_dai_fmt ...
&mt6351_soc_component_driver, mt6351_dai_driver, ARRAY_SIZE(mt6351_dai_driver)); } 开发者ID:AlexShiLucky,项目名称:linux,代码行数:26,代码来源:mt6351.c 示例6: s3c24xx_iis_dev_probe ▲点赞 1▼ staticints3c24xx_iis_dev_probe(struct platform_device *pdev){structresource*res;intret; ...
NULL pointer deref when reloading snd_soc_simple_card Description: