1

I successfully completed the integration of my own aec into android.

But what i need is i have to set the gains of the mic and pcm of the android because in my aec i am applying agc to the farend and nearend signal and then i procees the output of that agc for echo cancelation.

After that i will apply noise reduction on the output of the aec.

When i integrate my aec into the gstreamer there is a command like

alsamixer

for setting the gain levels.

When i set some gain levels my aec is working fine.

But in android how can i set this to make my aec work well.

CL.
  • 173,858
  • 17
  • 217
  • 259
optimus prime
  • 764
  • 1
  • 13
  • 39

1 Answers1

1

Use mixer_open to open the control device, find the pointer(s) to your control(s) with the mixer_get_* functions, and use mixer_ctl_set_value to change it.

See tinymix.c for an example.

Gluttton
  • 5,739
  • 3
  • 31
  • 58
CL.
  • 173,858
  • 17
  • 217
  • 259
  • I gone through that file and audiohardware.cpp(HAL). In these files they are calling one fuction mixer_ctl_set_value() for setting the mixer related things. The other thing i noticed is in HAL they are setting volume to 1.0f. which one is useful to me? – optimus prime Jul 21 '14 at 11:04
  • Tinyalsa's mixer interface does not have floating-point mixer values. – CL. Jul 21 '14 at 11:22