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.

PROCESSOR-SDK-AM62X: [AUDIO not enabling in the kernel ] davinci-mcasp 2b00000.mcasp: IRQ common not found

Part Number: PROCESSOR-SDK-AM62X

.Hi ,

i am working on my customer board , Audio is not enabling in the kernel .

we are using same audio chipset which is used by TI AM62X for our customer board .

i am getting in the boot up logs as

"davinci-mcasp 2b00000.mcasp: IRQ common not found "

[   1.593944] davinci-mcasp 2b00000.mcasp: IRQ common not found

please find attached Device tree nodes .

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
&main_i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&main_i2c1_pins_default>;
clock-frequency = <100000>;
tlv320aic3106: audio-codec@1b {
#sound-dai-cells = <0>;
compatible = "ti,tlv320aic3106";
reg = <0x1b>;
/* Regulators */
AVDD-supply = <&vcc_3v3_sys>;
IOVDD-supply = <&vcc_3v3_sys>;
DRVDD-supply = <&vcc_3v3_sys>;
DVDD-supply = <&vcc_1v8>;
};
&mcasp0 {
status = "okay";
//added below properties
#sound-dai-cells = <0>;
pinctrl-names = "default";
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

please let me know whether  i need to add /configure any thing in thee device tree file ?

Thanks ,

Naresh

  • Hello Naresh,

    Which Kernel version are you using? Also, what happens when you try to use aplay to play a wave file?

    Regards,
    Krunal

  • Hey Krunal ,

    its customer board , kernel version : 5.4 .

    we didnt tried yet aplay command to test audio .

    we are seeing error messages for mcasp as : 

    davinci-mcasp 2b10000.mcasp: IRQ common not found

    root@am62xx-evm:/home# aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: AM62xSKEVM [AM62x-SKEVM], device 0: davinci-mcasp.0-tlv320aic3x-hifi tlv320aic3x-hifi-0 [davinci-mcasp.0-tlv320aic3x-hifi tlv320aic3x-hifi-0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    root@am62xx-evm:/home#

    root@am62xx-evm:/home# aplay -c 2 -r 44100 -d 10 file_example_WAV_2MG.wav
    Playing raw data 'file_example_WAV_2MG.wav' : Unsigned 8 bit, Rate 44100 Hz, Stereo
    [ 2378.060551] ti-bcdma 485c0100.dma-controller: chan2 teardown timeout!

     

    Thanks,

    Naresh

  • Hi Krunal ,

    i was found in dmesg logs as :

    No soundcards found.

    Thanks,

    Naresh

  • Hi Krunal ,

    i am observing this .

    root@am62xx-evm:~# cat /proc/asound/cards
     0 [AM62xSKEVM     ]: AM62x-SKEVM - AM62x-SKEVM
                          AM62x-SKEVM

  • Hello,

    When you ran the above command " aplay -c 2 -r 44100 -d 10 file_example_WAV_2MG.wav", do you see any activity on your output clocks? Is it possible to collect the BCLK and FSYNC clock while running the aplay command?

    Regards,
    Krunal

  • Hi Krunal ,

    do you see any activity on your output clocks? 

    >> please let me know how to check  (i didnt see anything ) .

    Is it possible to collect the BCLK and FSYNC clock while running the aplay command?  

    >> may i know how to collect BLCK and FSYNC clock 

    Thanks,

    Naresh

  • Hello Naresh, 

    You need to physically probe the pins and measure the clocks.

    Regards,
    Krunal

  • Hi Bhargav ,

    My Audio interface is MCASP0.

    MCASP0_ACLK -> BCLK

    MCASP0_AFSX -> WCLK

    MCASP0_AXR2 -> DIN

    MCASP0_AXR1 -> DOUT

    Thanks,

    Naresh

  • Hi Bhargav, 

    in dmesh i am getting :

    [ 1071.180615] ti-bcdma 485c0100.dma-controller: chan2 teardown timeout!
    [ 1179.212614] ti-bcdma 485c0100.dma-controller: chan2 teardown timeout!

    while testing audio i am getting below :

    root@am62xx-evm:/home# aplay -c 2 -r 48000 -d 20 -v file_example_WAV_2MG.wav
    Playing raw data 'file_example_WAV_2MG.wav' : Unsigned 8 bit, Rate 48000 Hz, Stereo
    Plug PCM: Linear conversion PCM (S16_LE)
    Its setup is:
      stream       : PLAYBACK
      access       : RW_INTERLEAVED
      format       : U8
      subformat    : STD
      channels     : 2
      rate         : 48000
      exact rate   : 48000 (48000/1)
      msbits       : 8
      buffer_size  : 24000
      period_size  : 6000
      period_time  : 125000
      tstamp_mode  : NONE
      tstamp_type  : MONOTONIC
      period_step  : 1
      avail_min    : 6000
      period_event : 0
      start_threshold  : 24000
      stop_threshold   : 24000
      silence_threshold: 0
      silence_size : 0
      boundary     : 6755399441055744000
    Slave: Hardware PCM card 0 'AM62x-SKEVM' device 0 subdevice 0
    Its setup is:
      stream       : PLAYBACK
      access       : MMAP_INTERLEAVED
      format       : S16_LE
      subformat    : STD
      channels     : 2
      rate         : 48000
      exact rate   : 48000 (48000/1)
      msbits       : 16
      buffer_size  : 24000
      period_size  : 6000
      period_time  : 125000
      tstamp_mode  : NONE
      tstamp_type  : MONOTONIC
      period_step  : 1
      avail_min    : 6000
      period_event : 0
      start_threshold  : 24000
      stop_threshold   : 24000
      silence_threshold: 0
      silence_size : 0
      boundary     : 6755399441055744000
      appl_ptr     : 0
      hw_ptr       : 0
    [ 1071.180615] ti-bcdma 485c0100.dma-controller: chan2 teardown timeout!

  • Hello,

    I believe the chan2 teardown timeout warning is expected but I will internally check with our dev team and get back to you. Also, are you able to hear anything on the output side? Have you probed the clock to make sure your FSYNC and BCLK are correct.

    Regards,
    Krunal

  • Hi Bhargav ,

    Also, are you able to hear anything on the output side?  - not yet

    could you reply on previous to previous post ?

    Thanks ,

    Naresh

  • Hi Naresh,

    Let me review the above post and get back to you.

    Regards,
    Krunal

  • Hi Krunal ,

    Any update ?

    Thanks,

    Naresh

  • Hi Krunal ,

    could you please share amixer settings or alsa mixer setting to playback the audio clip ?

    Thanks,

    Naresh

  • Naresh,

    its customer board , kernel version : 5.4 .

    Are you sure about the kernel version?

    Kernel v5.4 doesn't support AM62x.

  • Hi ,

    we used TI SDK -  Platform AM62x – BSP bsp_08_03_00_19

    song is playing , but Noise is not coming  .

    Do we need to set amixer settings ? please let me know what changes are required to get the sound ?

    root@am62xx-evm:/home# aplay Test_WAV_1MG.wav
    Playing WAVE 'Test_WAV_1MG.wav' : [ 417.638574] line = 1389 fun =sound/soc/codecs/tlv320aic3x.c file
    Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
    [ 588.230254] line = 1054 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_hw_params
    [ 588.239951] line = 1203 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_prepare
    [ 588.251979] line = 1445 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_set_bias_level
    [ 588.259469] line = 1389 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_set_power
    X 588.331194] line = 1445 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_set_bias_level
    [ 588.341808] line = 1445 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_set_bias_level

    [ 588.349922] line = 1224 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_mute


    root@am62xx-evm:/home#
    root@am62xx-evm:/home#
    root@am62xx-evm:/home#

  • HI Krunal ,

    please find Dmesg logs :dmesg | grep aic
    [ 2.192001] line = 1784 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_i2c_probe
    [ 2.192370] line = 1715 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_configure_ocmv
    [ 3.417068] line = 1622 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_probe
    [ 3.421025] line = 1535 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_init
    [ 3.428372] line = 1511 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_mono_init
    [ 3.442918] line = 1009 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_add_widgets
    [ 3.454241] line = 1241 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_set_dai_sysclk
    [ 3.477933] line = 1258 fun =sound/soc/codecs/tlv320aic3x.c file =aic3x_set_dai_fmt
    [ 6.634242] Error: Driver 'tlv320aic3x-codec' is already registered, aborting...
    [ 6.785079] Error: Driver 'tlv320aic3x-codec' is already registered, aborting...
    [ 9.745364] line = 174 fun =sound/soc/codecs/tlv320aic3x.c file =snd_soc_dapm_put_volsw_aic3x
    [ 9.745397] line = 174 fun =sound/soc/codecs/tlv320aic3x.c file =snd_soc_dapm_put_volsw_aic3x
    [ 9.759210] line = 174 fun =sound/soc/codecs/tlv320aic3x.c file =snd_soc_dapm_put_volsw_aic3x
    [ 9.768170] line = 174 fun =sound/soc/codecs/tlv320aic3x.c file =snd_soc_dapm_put_volsw_aic3x
    [ 9.777036] line = 174 fun =sound/soc/codecs/tlv320aic3x.c file =snd_soc_dapm_put_volsw_aic3x
    [ 9.785900] line = 174 fun =sound/soc/codecs/tlv320aic3x.c file =snd_soc_dapm_put_volsw_aic3x
    [ 9.794756] line = 174 fun =sound/soc/codecs/tlv320aic3x.c file =snd_soc_dapm_put_volsw_aic3x
    [ 9.803646] line = 174 fun =sound/soc/codecs/tlv320aic3x.c file =snd_soc_dapm_put_volsw_aic3x
    [ 9.812514] line = 174 fun =sound/soc/codecs/tlv320aic3x.c file =snd_soc_dapm_put_volsw_aic3x
    [ 9.812540] line = 174 fun =sound/soc/codecs/tlv320aic3x.c file =snd_soc_dapm_put_volsw_aic3x
    root@am62xx-evm:~#

    Thanks,

    Naresh

  • Hi Krunal ,

    Now getting some noise while playing .

    please find my Device amixer controls :

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    oot@am62xx-evm:~# amixer
    Simple mixer control 'PCM',0
    Capabilities: pvolume
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 127
    Mono:
    Front Left: Playback 100 [79%] [-13.50dB]
    Front Right: Playback 100 [79%] [-13.50dB]
    Simple mixer control 'Line',0
    Capabilities: pvolume pswitch
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 9
    Mono:
    Front Left: Playback 9 [100%] [9.00dB] [on]
    Front Right: Playback 9 [100%] [9.00dB] [on]
    Simple mixer control 'Line DAC',0
    Capabilities: pvolume
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 118
    Mono:
    Front Left: Playback 100 [85%] [-9.00dB]
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    root@am62xx-evm:~# amixer scontrols
    Simple mixer control 'PCM',0
    Simple mixer control 'Line',0
    Simple mixer control 'Line DAC',0
    Simple mixer control 'Line Line2 Bypass',0
    Simple mixer control 'Line PGA Bypass',0
    Simple mixer control 'Mono',0
    Simple mixer control 'Mono DAC',0
    Simple mixer control 'Mono Line2 Bypass',0
    Simple mixer control 'Mono Mixer DACL1',0
    Simple mixer control 'Mono Mixer DACR1',0
    Simple mixer control 'Mono Mixer Line2L Bypass',0
    Simple mixer control 'Mono Mixer Line2R Bypass',0
    Simple mixer control 'Mono Mixer PGAL Bypass',0
    Simple mixer control 'Mono Mixer PGAR Bypass',0
    Simple mixer control 'Mono PGA Bypass',0
    Simple mixer control 'ADC HPF Cut-off',0
    Simple mixer control 'AGC',0
    Simple mixer control 'De-emphasis',0
    Simple mixer control 'HP',0
    Simple mixer control 'HP DAC',0
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Thanks,

    Naresh.

  • Hi Krunal ,

    any suggestions please?

    Thanks,

    Naresh

  • Hello,

    Have you tried running the above on the AM62x-SK EVM?

    Regards,
    Krunal