cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
387 Views
Registered: ‎03-21-2013

ALSA: No soundcards found

Hello. Can somebody help me out?

I have built an HDMI TX-only design on my custom MPSOC board, and am trying to embed audio onto the HDMI TX. The audio originates from an encoded video file. The video is being decoded by the VCU, but I get no audio.

Running 2019.1 Vivado and Petalinux, I have emulated the ZCU106 2019.1 vcu_audio TRD as closely as possible. Initially, I am using the Xilinx custom hdmi_acr_ctrl block:

 
 

AudioCircuit.png

My pl.dtsi seems to show the correct DT binding, as recommended by Xilinx (https://github.com/Xilinx/hdmi-modules/blob/master/Documentation/devicetree/bindings/xlnx%2Cv-hdmi-tx-ss.txt#L137

ch1_v_hdmi_tx_ss_0: v_hdmi_tx_ss@a0020000 {
   clock-names = "s_axi_cpu_aclk", "link_clk", "s_axis_audio_aclk", "video_clk", "s_axis_video_aclk";
   clocks = <&zynqmp_clk 71>, <&misc_clk_3>, <&misc_clk_0>, <&misc_clk_1>, <&misc_clk_2>;
   compatible = "xlnx,v-hdmi-tx-ss-3.1", "xlnx,v-hdmi-tx-ss-3.1";
   interrupt-names = "irq";
   interrupt-parent = <&gic>;
   interrupts = <0 91 4>;
   phy-names = "hdmi-phy0", "hdmi-phy1", "hdmi-phy2";
   phys = <&vphy_lane0 0 1 1 1>, <&vphy_lane1 0 1 1 1>, <&vphy_lane2 0 1 1 1>;
   reg = <0x0 0xa0020000 0x0 0x20000>;
   xlnx,audio-enabled ;
   xlnx,input-pixels-per-clock = <2>;
   xlnx,max-bits-per-component = <8>;
   xlnx,snd-pcm = <&ch1_audio_formatter_0>;
   xlnx,xlnx-hdmi-acr-ctrl = <&ch1_hdmi_acr_ctrl_0>;
   hdmitx_ports_ch1_v_hdmi_tx_ss_0: ports {
    #address-cells = <1>;
    #size-cells = <0>;
    encoder_hdmi_port_ch1_v_hdmi_tx_ss_0: port@0 {
     reg = <0>;
     hdmi_encoder_ch1_v_hdmi_tx_ss_0: endpoint {
      remote-endpoint = <&mixer_crtc>;
     };
    };
   };
  };

However, I get the boot message:

[    4.736046] ALSA device list:
[    4.739003]   No soundcards found.

and

root@minerva_proj2019:~# ./aplay --list-devices
aplay: device_list:272: no soundcards found...

I have attached the full boot dmesg, system-user.dtsi and pl.dtsi files.

Note that this design contains 4 HDMI TX channels. Initially, audio is only being added to Ch1 as an experiment..

Thanks for any help.

 

 

 

0 Kudos
5 Replies
Highlighted
Moderator
Moderator
304 Views
Registered: ‎11-09-2015

HI @clivewmwalker 

Have you enabled the driver (CONFIG_SND_SOC_XILINX_PL_SND_CARD) in your petalinux project?


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Highlighted
Adventurer
Adventurer
288 Views
Registered: ‎03-21-2013

Hello Florent

Thanks for getting back to me.

Yes, this Kernel config option is set to 'y'.

Any other thoughts?

Clive

 

0 Kudos
Highlighted
Adventurer
Adventurer
260 Views
Registered: ‎03-21-2013

FYI I am now getting the following message during boot:

[    2.503954] usbcore: registered new interface driver snd-usb-audio
[    2.504606] xlnx_formatter_pcm a0002000.audio_formatter: sound card device will use DAI link: v_hdmi_tx_ss
[    2.504705] xlnx_formatter_pcm a0002000.audio_formatter: pcm platform device registered
[    2.505110] xlnx_snd_card xlnx_snd_card.0.auto: platform node not found

 

0 Kudos
Highlighted
Moderator
Moderator
229 Views
Registered: ‎04-12-2017

Hello @clivewmwalker 

Do you see this node-enabled in your device tree of HDMI TX_SS?

https://github.com/Xilinx/hdmi-modules/blob/master/Documentation/devicetree/bindings/xlnx%2Cv-hdmi-tx-ss.txt#L137

Regards

Kunal

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Adventurer
Adventurer
215 Views
Registered: ‎03-21-2013

Hi Kunal.

Yes, I see " xlnx,audio-enabled;" in the dts file following DT generation. please find it attached.

Clive

0 Kudos