Skip to contentSkip to conversation

Audio Click Issue on OMAP

DISCUSSION Suresh Rajashekara 2 participants 2 messages Mar 11, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I am using the ALSA SoC driver on the OMAP2430 SDP. The codec initialization is being done in the soc->startup and uninitialized in the soc->shutdown routine. Since these routines gets executed every time some audio sample is played, there is a click noise heard just before the sample starts playing. Any idea how this can be resolved?

One idea that I have thought of is to move this initialization of the codec stuff to bootup time so that click is heard only during the bootup and never again. The codec is kept initialized until the board is switched off. I am not sure, but I think this might affect the battery life of the device. Please let me know if I am incorrect?

Thanks in advance

Best Regards,
Suresh

#1 lore raw
Quoted 8 lines · On Tue, 11 Mar 2008 16:01:22 +0530 "ext Suresh Rajashekara"…

Hi,

I am using the ALSA SoC driver on the OMAP2430 SDP. The codec initialization is being done in the soc->startup and uninitialized in the soc->shutdown routine. Since these routines gets executed every time some audio sample is played, there is a click noise heard just before the sample starts playing. Any idea how this can be resolved?

It sounds that your codec driver doesn't integrate with DAPM concept of ASoC? DAPM should take care of proper muting/unmuting and powering order. Have a look in existing codec drivers for DAPM widgets and dapm_event callbacks how they construct audio paths & widgets.

Jarkko