This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DVRRDK4.0增加一个新的音频驱动,不仅不生效,会把另外的驱动也给弄坏了,求指教!

Other Parts Discussed in Thread: TVP5158

各位大哥:

1,在sound/soc/codecs/里面我添加了sii9135-audio.c驱动,并且配置好了Makefile

2,在sound/soc/davinci中,我修改代码如下

static struct snd_soc_dai_link ti81xx_mcasp_dai[] = {

{
.name = "TVP5158AUDIO",
.stream_name = "TVP-PCM",
.cpu_dai_name= "davinci-mcasp.0",
.codec_dai_name = "tvp5158-hifi",
.platform_name ="davinci-pcm-audio",
.codec_name = "tvp5158-audio",
.ops = &ti81xx_evm_ops,
},

{
.name = "SII9135AUDIO",
.stream_name = "TVP-PCM",
.cpu_dai_name= "davinci-mcasp.1",
.codec_dai_name = "sii9135-hifi",
.platform_name ="davinci-pcm-audio",
.codec_name = "sii9135-audio",
.ops = &ti81xx_evm_ops,
},

}

这样重新编译并且下载内核后,arecord -l 将看不到任何设备。

如果我去掉 sii9135的部分

static struct snd_soc_dai_link ti81xx_mcasp_dai[] = {

{
.name = "TVP5158AUDIO",
.stream_name = "TVP-PCM",
.cpu_dai_name= "davinci-mcasp.0",
.codec_dai_name = "tvp5158-hifi",
.platform_name ="davinci-pcm-audio",
.codec_name = "tvp5158-audio",
.ops = &ti81xx_evm_ops,
},

那么重新编译并且下载后,我arecord -l 将可以看到tvp5158.

请教大神们,这到底是哪里冲突了?我已经查了整整一天了。求大神们指导一下!