static struct snd_soc_component_driver my_component_driver = { .probe = my_component_probe, // 其他成员可以根据需要添加 }; ``` ### 步骤 3:调用snd_soc_register_component函数 最后,在主函数或模块初始化函数中调用snd_soc_register_component函数注册音频组件。 ```c static int __init my_compone...
此处来看一下snd_soc_register_component函数,此函数中主要通过devm_kzalloc函数来完成了资源的申请,然后通过snd_soc_component_initialize函数来完成component组件的初始化,最后通过snd_soc_add_component函数将component添加到component->list当中,具体代码实现如下: intsnd_soc_register_component(structdevice *dev,constst...
[ 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...
接下来,我们需要使用devm_snd_soc_register_component函数来注册音频组件。这一步是非常关键的,它将会将音频组件注册到SoC架构中。 ```c // 注册音频组件 static int audio_register_component(struct snd_soc_card *card, struct snd_soc_component *component) { int ret; // 使用devm_snd_soc_register_comp...
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 ...
rc =snd_soc_register_component(&pdev->dev, &msm_dai_stub_component, &msm_dai_stub_host_playback_rx_dai[1],1);break; }returnrc; } 开发者ID:Nothing-Dev,项目名称:android_kernel_huawei_hwY635,代码行数:60,代码来源:msm-dai-stub-v2.c ...
TLV320AIC3104-Q1: Need Help to solve Error:error at snd_soc_component_update_bits and error at soc_c Options 12-11-2021 12:53 AM 1,998 Views divyeshmarne0 Contributor III Hi Team, CODEC: TLV320AIC3104 External Codec. CHANGES: + sound-tlv320aic3x ...
1.2、snd_soc_register_component 此处来看一下snd_soc_register_component函数,此函数中主要通过devm_kzalloc函数来完成了资源的申请,然后通过snd_soc_component_initialize函数来完成component组件的初始化,最后通过snd_soc_add_component函数将component添加到component->list当中,具体代码实现如下: int snd_soc_register_...
通过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宏 ...
[ 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 w...