Skip to contentSkip to conversation

Recording problem

DISCUSSION Vishwas P S 2 participants 5 messages Sep 15, 2006

lore
Share & tools
lore
#0 lore raw

Hi group,

I have a noise problem whenever I record sound with arecord. The sound seems to be very loud and it often gets clipped .. looks like the signal gets overloaded and gets clipped often.\
I've ensured that the Mic gain is kept at a minimum and still it happens. (For the same config OSS gives a very low volume)

What could be the problem. Pl help out

Rgds
Vishwas

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#1 lore raw
Quoted 10 lines · Vishwas P S

Hi group,

I have a noise problem whenever I record sound with arecord. The sound seems to be very loud and it often gets clipped .. looks like the signal gets overloaded and gets clipped often.\
I've ensured that the Mic gain is kept at a minimum and still it happens.
(For the same config OSS gives a very low volume)

What could be the problem. Pl help out

Your correct in that your input signal is being clipped because the gain is too high.

It's worth checking the audio path between your mic and ADC to make sure that there an no other amplifiers increasing the input gain. Please note that some ADC's can also increase gain.

It's also possible that your hardware has ALC/AGC (Automatic Level|Gain control). This automatically changes the gain depending on the volume of the input signal so that the volume captured is constant. This will also cause clipping if the settings are too high.

Liam

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#2 lore raw

Hi Liam,

Thanks for the quick response.
I've checked that audio path and there are no programmable amps. The audio chip has only one set of register bits for gain control and I've kept it at a minimum. (Also the gain knob in the Mic at a minimum)
But still the problems exist
(For the same config and same hardware OSS produces very feeble sound)

Is there any configuration that I need to edit in asla.conf or asoundrc Is there any place in software where the recorded stream could be getting boosted or mixed??

Regards
Vishwas

Quoted 20 lines · Liam Girdwood
Quoted 10 lines · Vishwas P S

Hi group,

I have a noise problem whenever I record sound with arecord. The sound seems to be very loud and it often gets clipped .. looks like the signal gets overloaded and gets clipped often.\
I've ensured that the Mic gain is kept at a minimum and still it happens.
(For the same config OSS gives a very low volume)

What could be the problem. Pl help out

Your correct in that your input signal is being clipped because the gain is too high.

It's worth checking the audio path between your mic and ADC to make sure that there an no other amplifiers increasing the input gain. Please note that some ADC's can also increase gain.

Quoted 10 lines

It's also possible that your hardware has ALC/AGC (Automatic Level|Gain control). This automatically changes the gain depending on the volume of the input signal so that the volume captured is constant. This will also cause clipping if the settings are too high.

Liam

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#3 lore raw
Quoted 9 lines · Vishwas P S

Hi Liam,

Thanks for the quick response.
I've checked that audio path and there are no programmable amps. The audio chip has only one set of register bits for gain control and I've kept it at a minimum. (Also the gain knob in the Mic at a minimum) But still the problems exist
(For the same config and same hardware OSS produces very feeble sound)

Quoted 4 lines

Is there any configuration that I need to edit in asla.conf or asoundrc
Is there any place in software where the recorded stream could be getting boosted or mixed??

A software gain can be ruled out by recording from the hardware directly i.e.

arecord -f cd -Dhw:0,0 > file.wav

This will record directly from the hardware without any pcm plugins. If the clipping is still audible, then I would compare a hardware register dump between your OSS and ALSA drivers.

Another possibility is that your digital audio interface (DAI) is incorrectly configured between your codec and controller. This could cause the audio MSB to be shifted wrt the controller by 1 bit to the left. This would cause high gain and a lot of clipping.

Liam

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

#4 lore raw

Liam,

Thanks for those inputs.
I'll give it a try and let you know what happens.

Thanks again
Vishwas

Quoted 25 lines · Liam Girdwood
Quoted 9 lines · Vishwas P S

Hi Liam,

Thanks for the quick response.
I've checked that audio path and there are no programmable amps. The audio chip has only one set of register bits for gain control and I've kept it at a minimum. (Also the gain knob in the Mic at a minimum) But still the problems exist
(For the same config and same hardware OSS produces very feeble sound)

Quoted 4 lines

Is there any configuration that I need to edit in asla.conf or asoundrc
Is there any place in software where the recorded stream could be getting boosted or mixed??

A software gain can be ruled out by recording from the hardware directly i.e.

arecord -f cd -Dhw:0,0 > file.wav

This will record directly from the hardware without any pcm plugins. If the clipping is still audible, then I would compare a hardware register dump between your OSS and ALSA drivers.

Quoted 10 lines

Another possibility is that your digital audio interface (DAI) is incorrectly configured between your codec and controller. This could cause the audio MSB to be shifted wrt the controller by 1 bit to the left. This would cause high gain and a lot of clipping.

Liam

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel