Missing patch for audio capture silence in android-2.6.29 in omap3droid-gst build

Rupesh,

As in beagle diagonistics kernel found in gitorious.org (linux-2.6.28-oe-r8), there is audio patch for silence in capturing.

http://gitorious.org/beagleboard-diagnostic-kernel/mainline/commit/3676026e9ab24aea06a1df89c8015a2002bd1b8a

(ie), when u use arecord to capture the data and try to play the recorded data using aplay, no sound comes. this has been fixed in this patch.

I downloaded new omap3droid-gst build. I am using Rev B7 BeagleBoard.

Try to record and play the data, but no sound. only playback works, no recording.

applied this patch, then able to record the voice and play it.

#arecord | aplay

— android/platform/omap3android-gst/kernel/sound/soc/codecs/twl4030.c 2009-07-02 01:45:43.000000000 +0530
+++ kernel/beagle-revc/sound/soc/codecs/twl4030.c 2009-01-19 22:42:18.000000000 +0530
@@ -33,7 +33,6 @@
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/initval.h>
-#include <sound/tlv.h>

#include “twl4030.h”

@@ -46,9 +45,9 @@
0xc3, /* REG_OPTION (0x2) /
0x00, /
REG_UNKNOWN (0x3) /
0x00, /
REG_MICBIAS_CTL (0x4) */

  • 0x20, /* REG_ANAMICL (0x5) */
  • 0x00, /* REG_ANAMICR (0x6) */
  • 0x00, /* REG_AVADC_CTL (0x7) */
  • 0x34, /* REG_ANAMICL (0x5) */
  • 0x14, /* REG_ANAMICR (0x6) */
  • 0x0a, /* REG_AVADC_CTL (0x7) /
    0x00, /
    REG_ADCMICSEL (0x8) /
    0x00, /
    REG_DIGMIXING (0x9) /
    0x0c, /
    REG_ATXL1PGA (0xA) /
    @@ -88,7 +87,7 @@
    0x00, /
    REG_ALC_SET1 (0x2C) /
    0x00, /
    REG_ALC_SET2 (0x2D) /
    0x00, /
    REG_BOOST_CTL (0x2E) */
  • 0x00, /* REG_SOFTVOL_CTL (0x2F) */
  • 0x01, /* REG_SOFTVOL_CTL (0x2F) /
    0x00, /
    REG_DTMF_FREQSEL (0x30) /
    0x00, /
    REG_DTMF_TONEXT1H (0x31) /
    0x00, /
    REG_DTMF_TONEXT1L (0x32) */
    @@ -190,484 +189,13 @@

}

Thanks and Regards,
HarishKumar.V

Harishkumar,

Thanks for testing and submitting patch. I had pushed the patch.

Regards,
Harishkumar V wrote: