size_t name_len;intret;/*create a new dapm widget*/if((w = dapm_cnew_widget(widget)) ==NULL)returnNULL; 由dapm_cnew_widget完成内存申请和拷贝模板的动作。接下来,根据widget的类型做不同的处理: switch(w->id) {casesnd_soc_dapm_regulator_supply: w->priv = devm_regulator_get(dapm->dev...
snd_soc_register_card(&my_card); return 0; } ``` 通过以上步骤,我们成功地配置了snd_soc_dapm_route,并将其注册到ASoC平台,实现了对音频信号的路由控制。对于刚入行的小白开发者来说,掌握snd_soc_dapm_route的使用方法可以帮助他们更好地理解和控制音频硬件,实现更复杂的音频功能。 希望本文能够帮助您更好...
SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD),SND_SOC_DAPM_PGA("LINEOUT1L PGA", WM8900_REG_POWER2,8,0,NULL,0),SND_SOC_DAPM_PGA("LINEOUT1R PGA", WM8900_REG_POWER2,7,0,NULL,0), SND_SOC_DAPM_MUX("LINEOUT2 LP", SND_SOC_NOPM,0,0, &wm8900_lineout2_lp),SND_SOC_DAPM_...
staticintmsm_audrx_init(struct snd_soc_pcm_runtime *rtd){structsnd_soc_codec*codec=rtd->codec;structsnd_soc_dapm_context*dapm= &codec->dapm;structsnd_soc_dai*cpu_dai=rtd->cpu_dai;intret =0; pr_debug("%s(),dev_name%s\n", __func__, dev_name(cpu_dai->dev)); msm8x10_ext_sp...
struct snd_soc_dapm_path结构体用于连接两个widgets,生成path实例的入口函数是snd_soc_dapm_add_path()。 字段解释 structsnd_soc_dapm_path{constchar*name;/* source (input) and sink (output) widgets */structsnd_soc_dapm_widget*source;// 指向源部件structsnd_soc_dapm_widget*sink;// 指向目的部件...
C++ (Cpp) snd_soc_codec_get_drvdata - 30 examples found. These are the top rated real world C++ (Cpp) examples of snd_soc_codec_get_drvdata extracted from open source projects. You can rate examples to help us improve the quality of examples.
snd_soc_dapm_context *dapm, int snd_soc_dapm_get_pin_status(struct snd_soc_dapm_context *dapm, const char *pin); int snd_soc_dapm_sync(struct snd_soc_dapm_context *dapm); +int snd_soc_dapm_sync_unlocked(struct snd_soc_dapm_context *dapm); ...
regulator_disable(machine->dmic_1v8_reg); } }if(!(machine->gpio_requested & GPIO_INT_MIC_EN))return0; gpio_set_value_cansleep(pdata->gpio_int_mic_en, !!SND_SOC_DAPM_EVENT_ON(event));return0; } 开发者ID:coreentin,项目名称:android_kernel_nvidia_s8515,代码行数:26,代码来源:tegra_...
patch[i].def);break;caseSND_SOC_DAPM_PRE_PMD:break;default:return0; }returnarizona_dvfs_sysclk_ev(w, kcontrol, event); } 开发者ID:513855417,项目名称:linux,代码行数:33,代码来源:wm8997.c 示例3: cs35l33_spkrdrv_event ▲点赞 5▼ ...
snd_soc_dapm_sync(codec); snd_ctl_add(codec->card, snd_ctl_new1(&audio_out_mux, codec));return0; } 开发者ID:AppEngine,项目名称:linux-2.6,代码行数:36,代码来源:s6105-ipcam.c 示例2: cs42l52_beep_work ▲点赞 6▼ staticvoidcs42l52_beep_work(struct work_struct *work){structcs42l52_...