Commit Graph

4584 Commits

Author SHA1 Message Date
Eric Laurent 61f4498279 audio: added support for dual mic capture
Added support for simultaneous capture of front and back mic.

Added device definitions for dual mic config for voice recognition use
case: no pre processing enabled.

stream->channels() reports actual channel mask instead of recontructing
it from channel count.

TODO: check if ACDB settings copied from single mic voice recognition
are correct.

Change-Id: I41282d0af5deb256ef68ec17ee34f5aae7807a6f
2013-01-22 17:08:36 -08:00
Devin Kim c20a61f837 am b1744367: am e365ed0c: mm-audio: Change delay value when setting device in call mode
* commit 'b17443674f6c5fe12f9658ceb40e357f2b5bbf2d':
  mm-audio: Change delay value when setting device in call mode
2013-01-10 15:38:52 -08:00
Devin Kim b17443674f am e365ed0c: mm-audio: Change delay value when setting device in call mode
* commit 'e365ed0cb095eed5fbc6a86c21642113e2c24f21':
  mm-audio: Change delay value when setting device in call mode
2013-01-09 11:00:35 -08:00
Devin Kim e365ed0cb0 mm-audio: Change delay value when setting device in call mode
commit 6ae807 (mm-audio: Fix delay at the start of MT voice call) has an issue.
That setting value is too aggressive, RINGTONE buffer is remained and routed
to connected device in call mode.

Add 40ms delay for playing ringtone.  This patch will increase about 40ms
for call connection time.

Bug:7946399
Change-Id: I98da5c515b5ba03b413818a8124c213d591c7bc3
2013-01-08 17:13:36 -08:00
ty.lee 798b347f46 am 09f112b2: am 1c9f3b09: audio: separate calibration data for TMUS
* commit '09f112b25fadce8defdc91c8f9a3e6c538034776':
  audio: separate calibration data for TMUS
2012-12-20 13:38:03 -08:00
ty.lee 09f112b25f am 1c9f3b09: audio: separate calibration data for TMUS
* commit '1c9f3b09a8fcdf65be0bdfa6cb832e6d2ec82fd3':
  audio: separate calibration data for TMUS
2012-12-20 13:35:21 -08:00
ty.lee 1c9f3b09a8 audio: separate calibration data for TMUS
When inserting TMUS SIM, we use different acoustic parameters in call.

Bug: 7716204
Change-Id: Ifce8d6ceb07e4474c28c8c9fe81c4457397e6d0c
2012-12-20 12:12:23 -08:00
SathishKumar Mani d30535fefb am a82c5b06: am 6ae807c4: mm-audio: Fix delay at the start of MT voice call
* commit 'a82c5b060666b74bdf4c1cee96034ab2fea37b94':
  mm-audio: Fix delay at the start of MT voice call
2012-12-10 19:50:14 -08:00
SathishKumar Mani 8969dc0cca am 7e5b6ac3: am 29555939: mm-audio: Fix delay with first voice call after bootup.
* commit '7e5b6ac34dec11d2e0be2b05272950618a7598cc':
  mm-audio: Fix delay with first voice call after bootup.
2012-12-10 19:50:14 -08:00
SathishKumar Mani a82c5b0606 am 6ae807c4: mm-audio: Fix delay at the start of MT voice call
* commit '6ae807c434c814a2ba6a84198a536d3a4b4153de':
  mm-audio: Fix delay at the start of MT voice call
2012-12-10 19:03:59 -08:00
SathishKumar Mani 7e5b6ac34d am 29555939: mm-audio: Fix delay with first voice call after bootup.
* commit '295559398bf12612fb208ab3dd24ac08b6f04f2a':
  mm-audio: Fix delay with first voice call after bootup.
2012-12-10 19:03:58 -08:00
SathishKumar Mani 6ae807c434 mm-audio: Fix delay at the start of MT voice call
- Reducing the delay for playing the RINGTONE
  before voice call is accepted saves,appr 340ms.
- on this platform reducing the delay wont affect
  the RINGTONE as the delay in setting up voice
  path after accepting the voice call will
  compensate RINGTONE buffers with kernel and
  firmware played on the device.

Bug-id: 7612431

Change-Id: Iff5b4545ca7e2316178b0db8cb6760b173c189be
2012-12-10 18:19:18 -08:00
SathishKumar Mani 295559398b mm-audio: Fix delay with first voice call after bootup.
- Add csd init and deinit to HAL constructor and
  destructor
- Add conditional check for voice acdb loader

Bug-id: 7612431
Change-Id: I4165e659fa300abb184e2438a5d730bb2158c094
2012-12-10 18:19:06 -08:00
The Android Open Source Project b37b12f11e am 49de8867: (-s ours) am 365ce897: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
* commit '49de886719b27d646c50a5171172bf0865387380':
2012-11-27 17:34:18 -08:00
The Android Open Source Project 49de886719 am 365ce897: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
* commit '365ce897f96915c2a303dbfe85937ecb395a7a1d':
2012-11-27 11:36:37 -08:00
The Android Open Source Project 365ce897f9 Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
Change-Id: Ib9d689c7e8ac4eca802f694d6dbd902653eb84f1
2012-11-27 07:33:36 -08:00
The Android Open Source Project 5e9014424d am 9b41ac7b: (-s ours) Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
* commit '9b41ac7ba55c0f6ee044ef1279941ab3fe1e2a06':
  Revert "alsa_sound: change voice-call stop sequence"
  alsa_sound: change voice-call stop sequence
2012-10-31 09:23:10 -07:00
The Android Open Source Project 9b41ac7ba5 Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
Change-Id: I145f70e1468eb53bf0ab955ff096ea795797bd3b
2012-10-31 09:17:25 -07:00
Dave Burke 786a53720c Revert "alsa_sound: change voice-call stop sequence"
This reverts commit 0f5426b31b

Change-Id: I09e3d3cf17c1d775c76e2f8f6276216fbaa9ac92
2012-10-18 18:23:52 -07:00
SathishKumar Mani 73df78f5b4 alsa_sound: change voice-call stop sequence
When application processor is paired with an external modem, stop
command should be sent to the DSP on the modem before closing the
Slimbus channels on the application processor.

Bug: 7313016
Change-Id: Ibafeaf9a9badbf32cc955c4e8b5c81e5efdcbb0c
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-18 13:09:05 -07:00
The Android Automerger 014d19fa3d merge in jb-mr1-release history after reset to jb-mr1-dev 2012-10-17 16:07:18 -07:00
SathishKumar Mani 8190752da6 am c26e258c: am 9eb1a4fc: audio: add support for HDMI and speaker combo device
* commit 'c26e258cea80ab7197e527d06097cd6999df49a9':
  audio: add support for HDMI and speaker combo device
2012-10-17 12:43:16 -07:00
samin.ryu 80293eb3d4 am 03ef6dda: am 5062ccee: alsa_sound: change input device for communication
* commit '03ef6dda80829d0cfbd762643bd2a046869cc41b':
  alsa_sound: change input device for communication
2012-10-17 12:43:15 -07:00
SathishKumar Mani c26e258cea am 9eb1a4fc: audio: add support for HDMI and speaker combo device
* commit '9eb1a4fc659f58d196cc8e990da2a3fbf9a1c630':
  audio: add support for HDMI and speaker combo device
2012-10-17 12:40:20 -07:00
samin.ryu 03ef6dda80 am 5062ccee: alsa_sound: change input device for communication
* commit '5062ccee15e0b9fafb9c1d3edf6ebee3f1b26a96':
  alsa_sound: change input device for communication
2012-10-17 12:40:19 -07:00
SathishKumar Mani 9eb1a4fc65 audio: add support for HDMI and speaker combo device
Bug: 7302453
Change-Id: I732656d185435f0f37437aba0b2f2dd49f65b101
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-17 11:46:15 -07:00
samin.ryu 5062ccee15 alsa_sound: change input device for communication
Match to VOIP speaker device pair with voice call.  In voice call using
speakerphone, we want to use BACK_MIC for input.

Bug: 7329372
Change-Id: I9c42719f17e2be6f0b38292dc74ac3ce54767b64
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-17 11:38:18 -07:00
SathishKumar Mani ec0b5d3b01 am 9977042d: am 0f5426b3: alsa_sound: change voice-call stop sequence
* commit '9977042dba61b78fd536c87581cd5eea940866e1':
  alsa_sound: change voice-call stop sequence
2012-10-17 11:37:06 -07:00
SathishKumar Mani 9977042dba am 0f5426b3: alsa_sound: change voice-call stop sequence
* commit '0f5426b31b9a15743e4621a972cccafc4087aa62':
  alsa_sound: change voice-call stop sequence
2012-10-17 11:34:05 -07:00
SathishKumar Mani 0f5426b31b alsa_sound: change voice-call stop sequence
When application processor is paired with an external modem, stop
command should be sent to the DSP on the modem before closing the
Slimbus channels on the application processor.

Bug: 7313016
Change-Id: Ibafeaf9a9badbf32cc955c4e8b5c81e5efdcbb0c
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-17 10:35:55 -07:00
The Android Open Source Project 9d6166295b am af528e0d: (-s ours) Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
* commit 'af528e0d33cb13e868e6f6e951297564432e1c90':
2012-10-10 09:48:01 -07:00
The Android Open Source Project af528e0d33 Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
Change-Id: Iddfb8f231599cb4d38212670febe9048cc97b572
2012-10-10 09:45:05 -07:00
The Android Automerger d765cd646e merge in jb-mr1-factory-release history after reset to jb-mr1-dev 2012-10-10 08:55:59 -07:00
The Android Automerger 97690417fb merge in jb-mr1-release history after reset to jb-mr1-dev 2012-10-10 06:59:32 -07:00
SathishKumar Mani 0ac90af35b am f8b71955: am 89c224e2: alsa_sound: prevent lowlatency errors triggering WD reset
* commit 'f8b719552d3cf2cdb56ff8a08833438195835414':
  alsa_sound: prevent lowlatency errors triggering WD reset
2012-10-09 17:12:08 -07:00
SathishKumar Mani f8b719552d am 89c224e2: alsa_sound: prevent lowlatency errors triggering WD reset
* commit '89c224e298fd280a3f2a69da8cc930ff6d036e18':
  alsa_sound: prevent lowlatency errors triggering WD reset
2012-10-09 17:10:34 -07:00
SathishKumar Mani 89c224e298 alsa_sound: prevent lowlatency errors triggering WD reset
- HAL tries to recover from pcm write or read failure
  by closing and reopening pcm driver.
- There is no check when pcm is reopened. If the
  reopen fails it keeps trying multiple times in loop
- Fix the issue by checking error condition and
  return on failure.

Bug: 7253359
Change-Id: Ia15153f5b43bb0f255a8b34b70025a6215484cee
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-10-09 16:56:11 -07:00
The Android Open Source Project 99760d222c am 694b033a: (-s ours) Reconcile with jb-mr1-release - do not merge
* commit '694b033a0da0774a1a38e253cad536e4b1f897c2':
2012-10-09 07:32:14 -07:00
The Android Open Source Project 694b033a0d Reconcile with jb-mr1-release - do not merge
Change-Id: I9083ad000467a93228455a796ffcd353f097a0d8
2012-10-09 07:29:31 -07:00
samin.ryu 9dc7c7f242 am 72f83fe8: am 2c798912: alsa_sound: avoid pcm_open error
* commit '72f83fe83242142ad3f10fb87f19e6d7d33b7c49':
  alsa_sound: avoid pcm_open error
2012-10-07 23:44:39 -07:00
SathishKumar Mani 04c661479d am d0947edb: am bf1c8748: alsa_sound: Add support for multichannel hdmi
* commit 'd0947edb99697b88bc61f574eeef6041bda9022f':
  alsa_sound: Add support for multichannel hdmi
2012-10-07 23:44:38 -07:00
SathishKumar Mani 0a3d83394b am b9047ffc: am b357a77d: alsa_sound: Add hdmi audio sink capability discovery
* commit 'b9047ffce7e552901e367018d393e415fbc56c43':
  alsa_sound: Add hdmi audio sink capability discovery
2012-10-07 23:44:38 -07:00
ty.lee 1435542ab5 am a1852d1b: am 87459f08: alsa_sound : audio path change to BUILT_IN_MIC for camcorder Tx
* commit 'a1852d1b2d42d3964400500aca80274d7e326d3b':
  alsa_sound : audio path change to BUILT_IN_MIC for camcorder Tx
2012-10-07 23:44:37 -07:00
chahee.kim dda36d3a8c am 14f773e8: am a8b76531: audio: fix for mismatched UseCase Type
* commit '14f773e88ca13d9279602cdcf81bf8c22c28e985':
  audio: fix for mismatched UseCase Type
2012-10-07 23:44:36 -07:00
samin.ryu 72f83fe832 am 2c798912: alsa_sound: avoid pcm_open error
* commit '2c79891211108cd8157124c1b6f9d393729602ff':
  alsa_sound: avoid pcm_open error
2012-10-07 23:41:17 -07:00
SathishKumar Mani d0947edb99 am bf1c8748: alsa_sound: Add support for multichannel hdmi
* commit 'bf1c87481d62736cab8832e9085c121fbafdbb6b':
  alsa_sound: Add support for multichannel hdmi
2012-10-07 23:41:17 -07:00
SathishKumar Mani b9047ffce7 am b357a77d: alsa_sound: Add hdmi audio sink capability discovery
* commit 'b357a77dc9c72cb6e327e945421f440052233b51':
  alsa_sound: Add hdmi audio sink capability discovery
2012-10-07 23:41:16 -07:00
ty.lee a1852d1b2d am 87459f08: alsa_sound : audio path change to BUILT_IN_MIC for camcorder Tx
* commit '87459f0857fe7fab51f45337f330bce03a53c3dc':
  alsa_sound : audio path change to BUILT_IN_MIC for camcorder Tx
2012-10-07 23:41:15 -07:00
chahee.kim 14f773e88c am a8b76531: audio: fix for mismatched UseCase Type
* commit 'a8b76531e6eef695eae174fd628396a5b4c95b7f':
  audio: fix for mismatched UseCase Type
2012-10-07 23:41:15 -07:00
The Android Automerger 4fea7c7372 merge in jb-mr1-release history after reset to jb-mr1-dev 2012-10-07 18:58:08 -07:00