imx6q android mic record is silent

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6q android mic record is silent

2,284 Views
ashutoshsrivast
Contributor II

Hi,

I am stuck with audio recording through MIC_IN in sabreauto_6q with android 5.0.2

   we have tried to record through android sound Recorder app and tinycap.

1)  In SoundRecorder app the needle is not deflecting... but the recording continues and onplay it plays silence

   

   2)In Tinycap  it captures few frames but on playback its complete silence

                           #tinycap /data/test.wav -d 1 -c2                    

                              Capturing sample: 2 ch, 44100 hz, 16 bit

                              Captured 577536 frames

Please help us with fix or debussing on above issue.

Other observation is recording through LINE_IN is successful  and audio playback is also working.

Details on make  configuration:

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=5.0.2

TARGET_PRODUCT=sabreauto_6q

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=cortex-a9

TARGET_2ND_ARCH=

TARGET_2ND_ARCH_VARIANT=

TARGET_2ND_CPU_VARIANT=

HOST_ARCH=x86_64

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.13.0-32-generic-x86_64-with-Ubuntu-12.04-precise

HOST_BUILD_TYPE=release

BUILD_ID=1.0.0-ga-rc4

OUT_DIR=out

environment set :

# setenv bootargs 'console=ttymxc3,115200 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off vmalloc=400M androidboot.console=ttymxc3 consoleblank=0 androidboot.hardware=freescale cma=384M androidboot.selinux=disabled'

#cat /proc/asound/cards                           

0 [cs42888audio   ]: cs42888-audio - cs42888-audio

                  cs42888-audio
1 [imxspdif   ]: imx-spdif - imx-spdif
                  imx-spdif

Thanks in advance ...

Labels (3)
0 Kudos
6 Replies

1,241 Views
rohitpatle
Contributor III

Hi Team,

My Build environment is below:

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
TARGET_PRODUCT=sabreauto_6q
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-92-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=1.0.0-ga-rc6
OUT_DIR=out

I connected electret microphone to the Mic in 1, With this I am able to record with below comand

#tinycap /data/local/tmp/test.wav  -d 0 -r 48000 -c . 

But the sound recorder app is silent. Please help me to get it enable.

Thank you in advance.

Rohit Kp####@@

0 Kudos

1,241 Views
rohitpatle
Contributor III

Hi Experts,

Is any update on this for me, i am not able to make the mic up from Android. Please advise.

Thank you,

Rohit

0 Kudos

1,241 Views
jimmychan
NXP TechSupport
NXP TechSupport

according to the cs42888 driver, there is a PWR control. "ADC1" for AIN1/2, "ADC2" for AIN3/4. Please check the "ADC2" is switched on.

0 Kudos

1,241 Views
rohitpatle
Contributor III

Hi Jimmychan,

Please advice how i can make ADC2 switch ON. I want make mic working through Android sound recorder App.

Please help me on this.

Thank You,

Rohit

0 Kudos

1,241 Views
ashutoshsrivast
Contributor II

Hi,

we could record and play successfully with 3 channels

#tinycap /data/local/tmp/test.wav  -d 0 -r 48000 -c 3

But capturing with 1,2 ,4 channels are still silent.

Please suggest the changes required to capture with 1 channel.

1,241 Views
ashutoshsrivast
Contributor II

Thanks for you reply.

Can you please guide on how to check "ADC2" is switched on

0 Kudos