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.

[参考译文] TDA4VH-Q1:音频驱动器

Guru**** 2482775 points
Other Parts Discussed in Thread: TDA4VH-Q1

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1445044/tda4vh-q1-audio-driver

器件型号:TDA4VH-Q1

工具与软件:

您好!

我目前正在从事 TDA4VH-Q1 EVM 板的音频驱动器启动活动。 配置音频驱动程序时、我遇到以下探测器错误(Yocto):

[  13.051645]平台6000000.usb:延迟探测待定
[  13.056957]平台声音0:延迟探测器待定
[  13.061832]平台声音1:延迟探测器待定
[13.066703]  平台声音3:延迟探测器待定

此外、在中、日志中存在以下与时钟相关的错误:

 root@j784s4-EVM:~# dmesg | grep -i "clk\|audio"
[   0.229474] ti-sci-clk 440830.system-controller:clock-controller:get-parent 在 dev=157、clk=34、ret=-19下失败
[   0.229562] ti-sci-clk 440830.system-controller:clock-controller:get-parent 在 dev=157、clk=34、ret=-19下失败
[   0.229680] ti-sci-clk 440830.system-controller:clock-controller:get-parent 对于 dev=157、clk=34、ret=-19失败
[   3.595019] clk:禁用未使用的时钟\

以下是相关的设备树配置:

codec_audio0:sound0 {
               Compatible ="简单音频卡";
               simple-audio-card、name ="J784S4-test";
               simple-audio-card、format ="I2S";
               simple-audio-card、bitclock-master =<&sound_master0>;
               simple-audio-card、frame-master =<&sound_master0>;

 

               sound_master0:simple-audio-card、CPU {
               Sound-Dai =<&McASP0>;
               系统时钟方向输出;
               };

 

               简单音频卡、编解码器{
                       sound-Dai =<&codec_test>;
               };
       };

&McASP0{
       状态="正常";
       #sound-Di-cells =<0>;
       pinctrl-names ="默认值";
       PINCTL-0 =<&McASP0_PINS_DEFAULT>;
       OP-MODE =<0>;         /* MCASP_IIS_MODE */
       TDM-slots =<2>;
       auxclk-fs-ratio =<256>;
       serial-dir =</* 0:无效、1:TX、2:Rx */  //第一行0 1 0
               0 0 0 0 0
               2 2 1 0
               0 0 0 0 0
               0 0 0 0 0
>;
       tx-num-evt =<0>;
       Rx-num-evt =<0>;
};

您能否帮助确定和解决问题以使音频驱动程序正常工作?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Karthilkeyan:

    您是否为定制电路板创建了器件树?

    您使用的是哪个 SDK 版本? 仅在 SDK 10.0中添加了对 J784s4的 McASP 支持。

    此致!
    Jared

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jared:
                您是否为定制电路板创建了器件树? ->是的
        
                您使用的是哪个 SDK 版本? 我正在使用的只有 SDK 10版本
    仅在 SDK 10.0中添加了对 J784s4的 McASP 支持。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Karthikean:

    您是否可以对 CODEC_AUDIO 节点尝试以下操作:

    codec_audio: sound {
        compatible= "simple-audio-card";
        simple-audio-card,name = "j784s4-test";
        simple-audio-card,format = "i2s";
        simple-audio-card,bitclock-master = <&sound_master>;
        simple-audio-card,frame-master = <&sound_master>;
        
        sound_master: simple-audio-card,cpu {
            sound-dai = <&mcasp0>;
            system-clock-direction-out;
        };
        
        simple-audio-card,codec {
            sound-dai = <&codec_test>;
        };
    };

    此致!
    Jared

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jared:
                  我已经尝试过,如你上面提到的编解码器节点,但它仍然不变,没有解决

    dmesg:              
    [13.647236]  平台声音0:延迟探测器待定

    root@j784s4-EVM:~#
    root@j784s4-EVM:~#
    root@j784s4-EVM:~#
    root@j784s4-EVM:~#
    root@j784s4-EVM:~#
    root@j784s4-EVM:~# dmesg | grep -i "clk\|audio"
    [   0.236129] ti-sci-clk 440830.system-controller:clock-controller:get-parent 对于 dev=157、clk=34、ret=-19失败
    [   0.236218] ti-sci-clk 440830.system-controller:clock-controller:get-parent 对于 dev=157、clk=34、ret=-19失败
    [   0.236343] ti-sci-clk 440830.system-controller:clock-controller:get-parent 在 dev=157、clk=34、ret=-19下失败
    [   3.439424] clk:禁用未使用的时钟

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Karhtikeyan:

    您能发送整个 dmesg 日志吗?

    此致!
    Jared