intsnd_soc_register_codec(structdevice *dev,conststructsnd_soc_codec_driver *codec_drv,structsnd_soc_dai_driver *dai_drv,intnum_dai) {... codec->write = codec_drv->write; codec->read = codec_drv->read; codec->volatile_register = codec_drv->volatile_register; OK,这里和我们soc_codec_...
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...
staticintgbcodec_i2c_probe(struct i2c_client *i2c,conststruct i2c_device_id *id){returnsnd_soc_register_codec(&i2c->dev, &soc_codec_dev_gbcodec, gbcodec_dai, ARRAY_SIZE(gbcodec_dai)); } 开发者ID:AresHou,项目名称:audio,代码行数:6,代码来源:virtual-codec.c 示例2: adau1701_i2c_probe ...
CPU DAI和codec DAI 驱动用结构体 struct snd_soc_dai_driver描述,其字段ops的类型是 struct snd_soc_dai_ops,定义了DAI驱动的操作接口。 代码如下: struct snd_soc_dai_ops { /* * DAI clocking
structsnd_soc_dai_ops接口介绍 structsnd_soc_dai_ops接⼝介绍 CPU DAI和codec DAI 驱动⽤结构体 struct snd_soc_dai_driver描述,其字段ops的类型是 struct snd_soc_dai_ops,定义了DAI驱动的操作接⼝。代码如下:struct snd_soc_dai_ops { /* * DAI clocking configuration, all optional.* Called ...
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...
Alsa驱动snd_soc_read的底层实现 2015-01-27 22:43 −在分析snd_soc_codec_driver的结构体时,发现有些芯片的驱动中定义了字段reg_word_size, reg_cache_size, reg_cache_default,但没有定义read/write,如wm8993: static struct snd_soc_codec_dri... ...
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 ...
... // audio machine driver表示音频设备结构体,我的ep9312作为一个arm-SoC芯片, // 就是这里的machine,一个machine当然要包含自己内部的音频控制接口单元--cpu_dai和 // 外部音频设备通信协议转换接口单元--codec_dai这两部分,这样ep9312才能使用自己 // ...
Expand Up @@ -1198,14 +1198,14 @@ static int pm860x_set_bias_level(struct snd_soc_codec *codec, return 0; } static struct snd_soc_dai_ops pm860x_pcm_dai_ops = { static const struct snd_soc_dai_ops pm860x_pcm_dai_ops = { .digital_mute = pm860x_digital_mute, .hw_params...