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.

Failed to encode speech buffer with aic3101 on dm365

Hi,all.

We use the chip aic3101 on dm365(dvsdk_2_10_01_18&mv_pro_5.0) to collect the sound. We add the chip driver in kernel. After kernel boot these info printed :

Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50 2006 UTC).
ASoC version 0.13.1
AIC3X Audio Codec 0.2
asoc: aic3x <-> davinci-i2s mapping ok
ALSA device list:
#0: DaVinci DM365 EVM (aic3x)

I think that the driver is worked. Then we loadmodules.sh and do the encode cmd: ./encode -s test.g711

the error comes: 

# ./encode -s test.g711
Encode demo started.
hUI->osd = 0
Error: Failed to encode speech buffer

Do anyone have advices about this problem?

Any information you need feel free to ask me.

Thanks.

jingwei

log_5F00_after_5F00_loadmodules is attached:

# ./loadmodules.sh
CMEMK module: built on Dec 21 2009 at 16:50:01
  Reference Linux version 2.6.18
  File /home/realtimedsp/workdir/dm365/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
ioremap_nocache(0x85000000, 50331648)=0xc8000000
allocated heap buffer 0xc8000000 of size 0x134000
cmem initialized 20 pools between 0x85000000 and 0x88000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x84600000)
ioremap_nocache(0x1000, 28672)=0xc4880000
no remaining memory for heap, no heap created for memory block 1
cmem initialized 1 pools between 0x1000 and 0x8000
IRQK module: built on Dec 21 2009 at 16:50:08
  Reference Linux version 2.6.18
  File /home/realtimedsp/workdir/dm365/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
EDMAK module: built on Dec 21 2009 at 16:50:06
  Reference Linux version 2.6.18
  File /home/realtimedsp/workdir/dm365/dvsdk_2_10_01_18/linuxutils_2_24_02/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
# ./encode -s test.g711
Encode demo started.
hUI->osd = 0
Error: Failed to encode speech buffer
-----------------2
# 

  • Hi, Mr.Song, we  meet the same problem like you. You can try to cat to sure that your hardware and  driver have worked and getted the raw data.

     cat /dev/audio>audio1

    best regards!

  • haichao xu said:

    Hi, Mr.Song, we  meet the same problem like you. You can try to cat to sure that your hardware and  driver have worked and getted the raw data.

     cat /dev/audio>audio1

    best regards!

    Hi,xu !

    Thank you for reply. We try the cmd "cat /dev/audio>1.g711" for 45 seconds, and found that the 1.g711 file recorded the sound.

    But the cmd with "./encode -s test.g711" ERROR happened yet.

    Error: Failed to encode speech buffer

    Could you give me more advise?

    jingwei

    you can change the 1.txt to 1.g711 or others use the player who can decode sample: 8k u-law to listen. 

    6253.1.txt