Skip to contentSkip to conversation

testing mic-in for tlv320aic33

DISCUSSION vivek kaushik 2 participants 5 messages Nov 30, 2009 – Dec 3, 2009

lore
Share & tools
lore
#0 lore raw

Hi All,

I am testing MIC IN on tlv320aic33. but getting the following error:
arecord: pcm_read:1338: read error: Input/output error

On my custom board tlv320aic33 is connected mcbsp-1 of omap3530, i am configuring tlv as mater and omap3530 as slave.aplay is working fine for me but getting the above error in case of arecord.

I am testing MIC IN with following command

arecord -fdat record.wav

when i probe signals I am getting proper MCLK, WCLK(48khz) and BCLK(1.5Mhz) but there is no toggling on data line.

would be grateful to any help

Thanks in advance

Cheers

Vivek

#1 lore raw

Hi

Quoted 9 lines · On Tue, 1 Dec 2009 00:29:53 +0530 vivek kaushik <[email protected]> wrote:

Hi All,

I am testing MIC IN on tlv320aic33. but getting the following error:
arecord: pcm_read:1338: read error: Input/output error

On my custom board tlv320aic33 is connected mcbsp-1 of omap3530, i am configuring tlv as mater and omap3530 as slave.aplay is working fine for me but getting the above error in case of arecord.

Quoted 7 lines

I am testing MIC IN with following command

arecord -fdat record.wav

when i probe signals I am getting proper MCLK, WCLK(48khz) and BCLK(1.5Mhz) but there is no toggling on data line.

I believe the reason is that OMAP expects to get McBSP1 receiver clocks from its own CLKR and FSR pins. Does it work if you configure the McBP1 receiver to use CLKX and FSX pins?

You could look help from following commit and file in sound-2.6.git tree:
commit d2c0bdaa9362c4b2ab7416420d034a0a2d1ec979 sound/soc/omap/am3517evm.c

Signature · 1 line
Jarkko
#2 lore raw

Thanks Jarkko for the support.

I have applied the patch. I am kernel 2.6.29.

In my board CLKR and FSR are connected so I am calling functions as:
snd_soc_dai_set_sysclk(cpu_dai, OMAP_MCBSP_CLKR_SRC_CLKR, 0, SND_SOC_CLOCK_IN);
snd_soc_dai_set_sysclk(cpu_dai, OMAP_MCBSP_FSR_SRC_FSR, 0, SND_SOC_CLOCK_IN);

I checked pin muxing is also fine but still I am getting the same error.

Thanks and regards

Vivek

Quoted 36 lines · Jarkko Nikula

Hi

Quoted 7 lines · On Tue, 1 Dec 2009 00:29:53 +0530 vivek kaushik <[email protected]> wrote:

Hi All,

I am testing MIC IN on tlv320aic33. but getting the following error:
arecord: pcm_read:1338: read error: Input/output error

On my custom board tlv320aic33 is connected mcbsp-1 of omap3530, i am configuring tlv as mater and omap3530 as slave.aplay is working fine for

me

Quoted 7 lines

but getting the above error in case of arecord.

I am testing MIC IN with following command

arecord -fdat record.wav

when i probe signals I am getting proper MCLK, WCLK(48khz) and

BCLK(1.5Mhz)

Quoted 2 lines

but there is no toggling on data line.

I believe the reason is that OMAP expects to get McBSP1 receiver clocks from its own CLKR and FSR pins. Does it work if you configure the McBP1 receiver to use CLKX and FSX pins?

You could look help from following commit and file in sound-2.6.git tree:
commit d2c0bdaa9362c4b2ab7416420d034a0a2d1ec979 sound/soc/omap/am3517evm.c

--
Jarkko

#3 lore raw

Hi Jarkko,

Thanks for your support.

There was a mistake in I2C configuration of tlv320aic33 and In pin muxing I tested after that now its working.

Cheers,

Vivek

Quoted 56 lines · vivek kaushik

Thanks Jarkko for the support.

I have applied the patch. I am kernel 2.6.29.

In my board CLKR and FSR are connected so I am calling functions as:
snd_soc_dai_set_sysclk(cpu_dai, OMAP_MCBSP_CLKR_SRC_CLKR, 0, SND_SOC_CLOCK_IN);
snd_soc_dai_set_sysclk(cpu_dai, OMAP_MCBSP_FSR_SRC_FSR, 0, SND_SOC_CLOCK_IN);

I checked pin muxing is also fine but still I am getting the same error.

Thanks and regards

Vivek

Quoted 36 lines · Jarkko Nikula

Hi

Quoted 7 lines · On Tue, 1 Dec 2009 00:29:53 +0530 vivek kaushik <[email protected]> wrote:

Hi All,

I am testing MIC IN on tlv320aic33. but getting the following error:
arecord: pcm_read:1338: read error: Input/output error

On my custom board tlv320aic33 is connected mcbsp-1 of omap3530, i am configuring tlv as mater and omap3530 as slave.aplay is working fine for

me

Quoted 7 lines

but getting the above error in case of arecord.

I am testing MIC IN with following command

arecord -fdat record.wav

when i probe signals I am getting proper MCLK, WCLK(48khz) and

BCLK(1.5Mhz)

Quoted 2 lines

but there is no toggling on data line.

I believe the reason is that OMAP expects to get McBSP1 receiver clocks from its own CLKR and FSR pins. Does it work if you configure the McBP1 receiver to use CLKX and FSX pins?

You could look help from following commit and file in sound-2.6.git tree:
commit d2c0bdaa9362c4b2ab7416420d034a0a2d1ec979 sound/soc/omap/am3517evm.c

--
Jarkko

#4 lore raw
Quoted 7 lines · On Wed, 2 Dec 2009 21:51:24 +0530 vivek kaushik <[email protected]> wrote:

Hi Jarkko,

Thanks for your support.

There was a mistake in I2C configuration of tlv320aic33 and In pin muxing I tested after that now its working.

Ok, thanks for letting us know. This good to know that there is no any underlying problems when using dedicated CLKR and FSR pins found in McBSP1.

Signature · 1 line
Jarkko