该函数只是一个简单的一个循环,为传入的widget模板数组依次调用snd_soc_dapm_new_control函数,实际的工作由snd_soc_dapm_new_control完成。 在驱动中定义的snd_soc_dapm_widget数组,只是作为一个模板,所以snd_soc_dapm_new_control所做的第一件事,就是为该widget重新分配内存,并把模板的内容拷贝过来 staticstructs...
ARRAY_SIZE(es8388_dapm_widgets));snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); snd_soc_dapm_enable_pin(dapm,"Ext Spk"); snd_soc_dapm_enable_pin(dapm,"Headphone Jack"); snd_soc_dapm_enable_pin(dapm,"Mic Jack"); snd_soc_dapm_enable_pin(dapm,"HeadSet Mic");...
snd_soc_dapm_ignore_suspend(&codec->dapm,"AIF2ADCDAT"); snd_soc_dapm_ignore_suspend(&codec->dapm,"AIF3ADCDAT"); snd_soc_dapm_ignore_suspend(&codec->dapm,"FM In"); snd_soc_dapm_ignore_suspend(&codec->dapm,"LINE"); snd_soc_dapm_ignore_suspend(&codec->dapm,"HDMI"); snd_soc_da...
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.
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_...
示例1: msm8930_spkramp_event ▲点赞 9▼ staticintmsm8930_spkramp_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *k,intevent){ pr_debug("%s() %x\n", __func__,SND_SOC_DAPM_EVENT_ON(event));if(SND_SOC_DAPM_EVENT_ON(event)) {if(!strncmp(w->name,"Ext Spk Left Pos"...
snd_soc_dapm_force_enable_pin(dapm,"MICBIAS1");return0; } 开发者ID:byxorna,项目名称:linux-samus,代码行数:55,代码来源:bdw-rt5677.c 示例4: hx4700_ak4641_init ▲点赞 1▼ staticinthx4700_ak4641_init(struct snd_soc_pcm_runtime *rtd){structsnd_soc_codec*codec=rtd->codec;structsnd_...
reg =snd_soc_read(codec, WM8961_CLOCKING_4); reg &= ~WM8961_CLK_SYS_RATE_MASK; reg |= wm8961_clk_sys_ratio[i].val << WM8961_CLK_SYS_RATE_SHIFT; snd_soc_write(codec, WM8961_CLOCKING_4, reg); reg =snd_soc_read(codec, WM8961_AUDIO_INTERFACE_0); ...
snd_soc_dapm_nc_pin(dapm,"ROUT1");/* set endpoints to default off mode */snd_soc_dapm_disable_pin(dapm,"Headphone Jack");/* Headphone jack detection */err =snd_soc_jack_new(codec,"Headphone Jack", SND_JACK_HEADPHONE, &smartq_jack);if(err)returnerr; ...