在驱动中定义的snd_soc_dapm_widget数组,只是作为一个模板,所以snd_soc_dapm_new_control所做的第一件事,就是为该widget重新分配内存,并把模板的内容拷贝过来 staticstructsnd_soc_dapm_widget * snd_soc_dapm_new_control(structsnd_soc_dapm_context *dapm,conststructsnd_soc_dapm_widget *widget) {structsnd...