各位大哥:
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.
请教大神们,这到底是哪里冲突了?我已经查了整整一天了。求大神们指导一下!
Chris Meng:
Koo Gun,
请看看下面链接的信息是否有帮助?
http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide#Audio_driver_.28McASP.29