AbhinavDS / 0xdroid

Automatically exported from code.google.com/p/0xdroid
0 stars 1 forks source link

devkit8000 can not record sound correctly #136

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Environment:
                Hw: devkit8000
                Sw: devkit8k-eclair-0x4/ 30-Apr-2010 16:37  

Issue description:

1.  I used command “alsa_arecord test.wav” to record voice from microphone.

2.  Then I used “alsa_aplay test.wav” but heard only noise without voice.

3.  I tried “alsa_amixer set ‘Analog’ 5 unmute” and “alsa_amixer set 
‘Analog Left’ ‘Main mic’’” and “alsa_amixer set ‘Analog 
Right’ ‘Sub mic’”, but it still doesn’t work.

 I also see the issue 127. and use  arecord command, "arecord -t wav -c 1 -r 44100 -f S16_LE -v k" on devkit8000 to do recording, it's no  luck.

Question:
                What need I do to record the voice clearly?

Original issue reported on code.google.com by young.al...@gmail.com on 8 Jul 2010 at 3:11

GoogleCodeExporter commented 8 years ago

Original comment by jserv.tw@gmail.com on 9 Jul 2010 at 3:56

GoogleCodeExporter commented 8 years ago
Hi ShunYu.Chang,  jserv.tw,

   Now, we fix this problem.

   That is the problem caused by the driver.

   We amend  "static const u8 twl4030_reg[TWL4030_CACHEREGNUM]" 
   in this file: kernel/sound/soc/codecs/twl4030.c 

   Now, it works well. 

   devkit8k-eclair-0x4/ 30-Apr-2010 16:37

   Here is the file twl4030.c

   Thank you. 

Original comment by young.al...@gmail.com on 9 Jul 2010 at 5:21

Attachments:

GoogleCodeExporter commented 8 years ago
Hi, young.allen86, 
    Cool! I tried your twl4030.c based on the 0xdroid's kernel 2.6.29, omap3 branch, the recording through typing arecord command can work on devkit8000 much well !
    Thoung I found if I record the audio with 2 channels, when playing it I can only hear the sound from Left ear piece. 
    and the register settings is not fit for beagleboard. So It looks like the audio part of twl4030 is different between on beagleboard and devkit8k. Is there any document that we can refer to for knowing what values should we set for those registers? 
    Thanks!

Original comment by ShunYu.C...@gmail.com on 9 Jul 2010 at 8:05

GoogleCodeExporter commented 8 years ago
HI  young.allen86,
    I use your pathch,but may cause the android mediaserver crash.

Original comment by kelvinji...@gmail.com on 5 Aug 2010 at 2:23

GoogleCodeExporter commented 8 years ago
Issue 135 has been merged into this issue.

Original comment by ShunYu.C...@gmail.com on 8 Aug 2010 at 12:58

GoogleCodeExporter commented 8 years ago
Commit 526c013517 and 8e8c008acb in kernel, omap3-2.6.32 branch should fix this.

Original comment by ShunYu.C...@gmail.com on 8 Aug 2010 at 1:06