When porting a codec from kernel 2.6.32 to 2.6.37, getting this compilation error: error: 'struct snd_soc_codec' has no member named 'write' I see that include/sound/soc.h has really changed between those kernel versions. So, what other member of the struct s...
Background: The snd-soc-dummy codec is a dummy codec used for testing and sometimes with i2s codecs that doesn't have their own driver. Example of use: https://github.com/skakri/asoc-i2s-loader/blob/master/asoc-i2s-loader.c It restricts ...
intarizona_set_sysclk(struct snd_soc_codec *codec,intclk_id,intsource,unsignedintfreq,intdir){structarizona_priv*priv=snd_soc_codec_get_drvdata(codec);structarizona*arizona=priv->arizona;char*name;unsignedintreg;unsignedintmask = ARIZONA_SYSCLK_FREQ_MASK | ARIZONA_SYSCLK_SRC_MASK;unsignedintval...
struct snd_kcontrol *kcontrol,intevent){structsnd_soc_codec*codec=snd_soc_dapm_to_codec(w->dapm);structtas6424_data*tas6424=snd_soc_codec_get_drvdata(codec);dev_dbg(codec->dev,"%s() event=0x%0x\n", __func__, event);if(event & SND_SOC_DAPM_POST_PMU) {/* Observe codec shutdow...
snd_soc_read(codec, STA32X_B1CF1 + i);return0; } 开发者ID:383530895,项目名称:linux,代码行数:28,代码来源:sta32x.c 示例3: speaker_mode_put ▲点赞 4▼ /* * Stop any attempts to change speaker mode while the speaker is enabled. ...
wm8741_snd_controls_mono_right, ARRAY_SIZE(wm8741_snd_controls_mono_right));break;default:return-EINVAL; }return0; } 开发者ID:020gzh,项目名称:linux,代码行数:27,代码来源:wm8741.c 示例3: sirf_audio_codec_probe ▲点赞 5▼ staticintsirf_audio_codec_probe(struct snd_soc_codec *codec){str...
intpcm179x_common_exit(struct device *dev){snd_soc_unregister_codec(dev);return0; } 开发者ID:020gzh,项目名称:linux,代码行数:5,代码来源:pcm179x.c 示例4: ak4642_i2c_remove ▲点赞 2▼ static__devexitintak4642_i2c_remove(struct i2c_client *client){snd_soc_unregister_codec(&client->dev...
在下文中一共展示了snd_soc_register_codec函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。 示例1: gbcodec_i2c_probe ▲点赞 9▼ staticintgbcodec_i2c_probe(struct i2c_client *i2c,conststruct i2c_device_id *id...
struct snd_kcontrol *kcontrol,intevent){structsnd_soc_codec*codec=snd_soc_dapm_to_codec(w->dapm);structarizona*arizona=dev_get_drvdata(codec->dev->parent);structregmap*regmap=arizona->regmap;conststructreg_default*patch=NULL;inti, patch_size;switch(arizona->rev) {case0: ...