Ticket #176 (accepted defect)

Opened 2 years ago

Last modified 19 months ago

Microphone

Reported by: halo130748@… Owned by: divx118
Priority: minor Milestone: Android 2.3 C
Component: Android 2.3 Version: Android 2.2 - alpha5
Keywords: Cc:

Description

The built in mic does not work.

Attachments

Change History

  Changed 22 months ago by dm8tbr

  • milestone changed from Android 2.x alpha6 - DO NOT USE to Android 2.3 m2

Needs verification.

  Changed 21 months ago by divx118

  • owner changed from bubu to divx118
  • status changed from new to accepted
  • component changed from Android 2.2 to Android 2.3

Still not working on CM/Gingerbread.

  Changed 20 months ago by sirnoname@…

hmmm, yust installed the voice search and it was one time possible to speak into micro. After this the device seems to be busy (yellow input that is waiting for audio).
What is status to this ticket? Is it possible to help here and to get infos about the sound module?

  Changed 19 months ago by aurosus

This worked for me ...

you need to edit asound.conf with this changes and reboot

pcm.AndroidCapture? {

type hooks
slave.pcm {

type hw
card 0
device 0

}
hooks.0 {

type ctl_elems
hook_args [

{name 'ALC Capture Function' value 3}
{name 'Mic Function Capture Switch' value 1}

]

}

}

pcm.AndroidCapture?_Microphone {

type hooks
slave.pcm {

type hw
card 0
device 0

}
hooks.0 {

type ctl_elems
hook_args [

{name 'ALC Capture Function' value 3}
{name 'Mic Function Capture Switch' value 1}

]

}

}

pcm.AndroidCapture?_Microphone_normal {

type hooks
slave.pcm {

type hw
card 0
device 0

}
hooks.0 {

type ctl_elems
hook_args [

{name 'ALC Capture Function' value 3}
{name 'Mic Function Capture Switch' value 1}

]

}

}

or

you can execute this commands in debug mode in android console /dev/ttyACM0 after each reboot

alsa_amixer -c 0 sset "ALC Capture Function" Stereo
alsa_amixer -c 0 sset "Mic Function" On

follow-up: ↓ 6   Changed 19 months ago by divx118

Thanks aurosus,

I will test this and if OK it will be included in the next build.

in reply to: ↑ 5   Changed 19 months ago by divx118

Replying to divx118:

Thanks aurosus,

I will test this and if OK it will be included in the next build.

Partially got it working. First time when the device is booted and alsa opens the device (microphone) it is the correct one. Second time however it opens the wrong one and you will get the following in logcat  http://pastebin.com/LwaWxeh0

Following error keep eating your resources until you reboot.

W/AudioRecord( 2046): obtainBuffer timed out (is the CPU pegged?) user=00000600, server=00000600

Tested with the default voice dialer.

  Changed 19 months ago by divx118

  • milestone changed from Android 2.3 Bull to Android 2.3 C

Add/Change #176 (Microphone)

Author


E-mail address and user name can be saved in the Preferences.


Action
as accepted
 
Note: See TracTickets for help on using tickets.