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.

DM8168的HDMI音频采集问题



你们好,

     我根据CONFIG_SND_SOC_TI81XX_HDMI的代码修改了board-ti8168etv.c的内容:可以生成个设备,但使用是报错的。

我有个疑问,我添加的

static struct snd_hdmi_platform_data ti8168_snd_hdmi_pdata_mcasp0 = {
.dma_addr = TI81xx_HDMI_WP + HDMI_WP_AUDIO_DATA,
.channel = 53,
.data_type = 4,
.acnt = 4,
.fifo_level = 0x20,
};

查了数据手册,有以下信息:

8Ch        HDMI_WP_AUDIO_DATA          TX Data of FIFO

这个地址是用于Playback,如果我要用于Capture,我这函数要怎么修改 ?

static struct snd_soc_dai_link ti81xx_hdmi_dai[] = {

{
.name = "SII9233A_SOC_LINK",
.stream_name = "SII9233A_HIFI",
.cpu_dai_name = "hdmi-dai", //.cpu_dai_name = "davinci-mcasp.0", //
.codec_dai_name = "SII9233A-DAI-CODEC",
.codec_name = "sii9233a-dummy-codec", //.codec_name = "sii9233a-audio.1-0031",//
.platform_name = "davinci-pcm-audio",
},

};

 

  • WJ,

    你配置的是DM8168片上的HDMI,这个片上HDMI只是输出。你需要控制的是外部HDMI的音频输入,和片上HDMI是两个不同的东西。

  • Hi ChrisMeng,
    我有根据这个文档:http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide#Audio_driver_.28McASP.29,
    arecord去录音出现了这个错误:
    mcasp_start: PDSET=0x00000000
    arecord: pcm_read:1801: read error: Input/output error
    看到了这个帖:
    http://www.deyisupport.com/question_answer/dsp_arm/davinci_digital_media_processors/f/39/p/80505/269923.aspx#269923
    最后一个人提到: 如果McASP接口仅仅配置为接收且未使能发送时钟ACLKX,则应该将时钟配置为异步方式。
    问题:他的分析是对的么?