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.

AIC external codec for DM368 V5.0

Expert 1840 points

Dear,

I am working with V5.0, IPNC DM368 and AIC external CODEC. For V2.6, Our camera has already worked by the modification as below:

http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/t/138908.aspx

When we moved to V5 I also make the same modification except some differences in kernel config:

CONFIG_SND_DM365_AIC3X_CODEC=y
# CONFIG_SND_DM365_VOICE_CODEC=y
CONFIG_SND_SOC_I2C_AND_SPI=y
# CONFIG_SND_SOC_ALL_CODECS is not set
# CONFIG_SND_SOC_CQ0093VC=y

but we got the error message:

IPNC AUTO_IRIS = 0
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4184:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4663:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2212:(snd_pcm_open_noupdate) Unknown PCM default
ERROR (drv_audio.c|DRV_audioplayOpen|202): unable to open pcm device: No such file or directory
ERROR (audioThr.c|AUDIOPLAY_audioTskMain|772): AUDIOPLAY_audioTskCreate()
ERROR (avServerMainThr.c|AVSERVER_tskStart|213):
[ 8.611108] davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode

if you know how to correct this please help me. Thanks

  • Which is AIC codec available on your board. Have you checked the kernel boot up logs to see whether AIC3x driver is properly loaded and detected the codec?

  • Dear Renjith Thomas,

    Our board is using the AIC3101 codec from TI. From the log of kernel booting the AIC3x driver didnot loaded properly and codec was not detected. Our AIC codec has already worked with firmware test and Software V2.6 by above url setting.

    Thanks

  • Bioz,

    Are you using DM36x IPNC platform from Appro? If so, there is no AIC3x codec available on that board. Or, is it your custom board? If so, then you might have to manually add the driver in the kernel. 

  • Dear Renjith Thomas,

    I am using our owned board which refer to the APPRO's design. I have already tested our AIC with firmware test and It worked. Our device also worked with V2.6 software after a little modification in kernel config as below instruction

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/t/138908.aspx


    For software V5.0, I also apply a similar configuration to replace the internal codec by AIC3x codec as I have briefly described in the first post. Please give me some more information to know how to manually replace internal codec by AIC for V5.0. Thank you very much!

  • Bioz,

    You can try to compare the board file of IPNC in arch/arm/mach-davinci with board file of DM36x EVM. In EVM AIC3x codec is supported and you can take those changes here carefully. This is the simplest way you can integrate the driver.

  • thanks, I will try it and let you know the result.