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.

TLV320DAC3100 -CARD Detected but --NO SOUND-- going to Hang state after aplay command

Other Parts Discussed in Thread: TLV320DAC3100, TLV320AIC3100, TLV320AIC3106

Hi ,

we are using TLV320DAC3100, for that , no driver is available so we choose tlv320aic3100 as the reference.

we are having Headphone(HPLOUT,HPROUT) and a Speaker(SPK). 

Now the card is detected in the ALSA List and we tried with :

CMD: # aplay /usr/share/sound/alsa/Front_Center.wav

[ 227.277403] davinci_mcasp_set_sysclk:
[ 227.298161] davinci_mcasp_hw_params:
[ 227.301965] mcasp_i2s_hw_param:slots:2
[ 227.314739] davinci_mcasp_start:


[ 227.318174] mcasp_start_tx:
[ 227.321133] mcasp_start_tx:tdm_slots:2, op_mode:0,num_serializer:4,txnumevt:32,rxnumevt:32
[ 227.329815] mcasp_start_tx:wait for XDATA to be cleared
[ 227.335302] mcasp_start_tx:enable transmit underrun IRQ

here the the command interface going to hang state -- and NO SOUND. until terminate: these all printk statements only. 

in the starter kit - with tlv320aic3106 it is coming once mcasp_stop_tx once the audio is completed we tested with Front_Center.wav sample pcm formated file it is 48KHZ file.


unless we terminate the instance -- mcasp_stop_tx event is not generating -- my doubt is :"is that interrupt is related to mcasp or DMA interrupt is not generating to transmit and the streams is not reaching to end and then command interface- instance is not getting the status and which is leads to hang , until we terminate.

Q 1: MCLK is the CLKOUT1 - to DAC - do we need to configure this in dts -- in the am335x-evmsk.dts file clkout 2 is configured but not clkout is not mentioned any         thywhere.    --   other clocks i need to check.

Here we are not getting how to debug the next step to make play sound. Please guide me.

Every required parameters are given in the dts file too.

regards,

Viswanath K

  • Do we need post this in sitara processor forum Audio-sw support-- this is audio related so posted here --

    regards,
    Viswanath K

  • Hi ,

    These are the values we are writing to registers as configuration : ofcourse these are for tlv320aic3100 -- might require to change or add for tlv320dac3100 -- for headphone -HPLOUT and HPROUT and speaker -SPK.

    static const struct reg_default aic31xx_reg_defaults[] = {
    { AIC31XX_CLKMUX, 0x00 },
    { AIC31XX_PLLPR, 0x11 },
    { AIC31XX_PLLJ, 0x04 },
    { AIC31XX_PLLDMSB, 0x00 },
    { AIC31XX_PLLDLSB, 0x00 },
    { AIC31XX_NDAC, 0x01 },
    { AIC31XX_MDAC, 0x01 },
    { AIC31XX_DOSRMSB, 0x00 },
    { AIC31XX_DOSRLSB, 0x80 },
    { AIC31XX_NADC, 0x01 },
    { AIC31XX_MADC, 0x01 },
    { AIC31XX_AOSR, 0x80 },
    { AIC31XX_IFACE1, 0x00 },
    { AIC31XX_DATA_OFFSET, 0x00 },
    { AIC31XX_IFACE2, 0x00 },
    { AIC31XX_BCLKN, 0x01 },
    { AIC31XX_DACSETUP, 0x14 },
    { AIC31XX_DACMUTE, 0x0c },
    { AIC31XX_LDACVOL, 0x00 },
    { AIC31XX_RDACVOL, 0x00 },
    { AIC31XX_ADCSETUP, 0x00 },
    { AIC31XX_ADCFGA, 0x80 },
    { AIC31XX_ADCVOL, 0x00 },
    { AIC31XX_HPDRIVER, 0x04 },
    { AIC31XX_SPKAMP, 0x06 },
    { AIC31XX_DACMIXERROUTE, 0x00 },
    { AIC31XX_LANALOGHPL, 0x7f },
    { AIC31XX_RANALOGHPR, 0x7f },
    { AIC31XX_LANALOGSPL, 0x7f },
    { AIC31XX_RANALOGSPR, 0x7f },
    { AIC31XX_HPLGAIN, 0x02 },
    { AIC31XX_HPRGAIN, 0x02 },
    { AIC31XX_SPLGAIN, 0x00 },
    { AIC31XX_SPRGAIN, 0x00 },
    { AIC31XX_MICBIAS, 0x00 },
    { AIC31XX_MICPGA, 0x80 },
    { AIC31XX_MICPGAPI, 0x00 },
    { AIC31XX_MICPGAMI, 0x00 },
    };

    regards,

    Viswanath K

  • we referring to EVM SK schematic and to our custom board, we got a doubt. CLKOUT is given to audio codec as MCLK and that configuration i didnt find in any DTS file, but CLKOUT2 is mentioned in am335x-evmsk.dts file which is connected to level-translator and that is interfaced to WIFI.

    Please anyone find this please help us : do we need to configure the clkout1 in dts file for the mclk out to codec and where it is configured.

    regards,
    Viswanath K
  • We like to move this post to sitara fourm -- as we are not getting any help in this Audio group.