summaryrefslogtreecommitdiffstats
path: root/libaudio/AudioHardware.h
Commit message (Collapse)AuthorAgeFilesLines
* Adjust output to 2 buffers of 880 frames eachGlenn Kasten2012-05-101-3/+3
| | | | Change-Id: I180a4b65a655bcc4ede9f7036d1c9b6daf4c8dbd
* Remove obsolete dependency on libmediaGlenn Kasten2012-03-191-1/+0
| | | | | | and unnecessary media includes Change-Id: Ic889aac0e12979d5c5fef6a58ee9917a4864039e
* libaudio: increase audio buffer sizeEric Laurent2011-11-101-2/+2
| | | | | | | | | | | Bring playback and capture buffer size back to their initial size. Current size was dictated by constraints in early voice processing implementation but is not necessary anymore. Increasing buffer size will help in power consumption and limit possible occurence of audio skipping during playback and capture. Change-Id: I7837c62e11700ed5c9a26f52fb27170add09721d
* audio HAL: C interface to libaudioutils.Eric Laurent2011-08-241-16/+28
| | | | | | | | Modifications for new C interface to echo reference and resampler. Also release echo reference if needed when closing an output stream. Change-Id: I9e8b524effad66798a61e80b5fec1779558cce1e
* Create library for common audio HAL functionsEric Laurent2011-08-181-2/+2
| | | | | | | Moved echo reference and resampler code to audio utils library so that they can be shared by other audio HALs. Change-Id: I7ab88843cc58ecc276bc4ccbbdc826c8c0b4a430
* audio HAL: new echo reference designAndy Gough2011-08-121-2/+3
| | | | | | | | The echo reference discards or inserts (silent) frames according to underruns or overruns. It always returns an echo buffer which delay from current capture buffer is 0. Change-Id: Ifea06a47fe87f2b75d4d04737c495a9867d1c4bd
* Audio HAL: added echo referenceEric Laurent2011-07-251-51/+29
| | | | | | | | | | | Added EchoReference class enabling the input stream to access the audio data written to the output stream and push it as echo reference to the AEC. Also added methods to calculate the echo delay. Moved ReSampler class to a separate source file. Change-Id: I9c3388f39101d567240545eab271eb61c97e7b56
* Audio HAL: added audio pre processingEric Laurent2011-07-171-6/+15
| | | | | | Added calls to audio preprocessings for input streams. Change-Id: I1c655005b62b235e5d5d671634227f4a99eee43e
* Audio HAL: added interface for audio preprocessingEric Laurent2011-07-111-0/+3
| | | | Change-Id: I0fcfbbddc9716e5c39b3d78032222c7babaa46bd
* Audio HAL: replaced downsampler by speex resamplerEric Laurent2011-07-051-24/+27
| | | | | | | Use speex resampler for more flexibility and prepare integration of audio pre processing which require upsampling. Change-Id: I7dd234bd89116d028655a043c84c1a18faf3bc67
* Use tinyalsa libraryEric Laurent2011-07-051-7/+3
| | | | | | | | | | Audio HAL now uses tinyalsa library to interface to alsa kernel drivers. Removed local thin alsa user space implementation. Also modified value of AUDIO_HW_IN_SAMPLERATE to match actual sampling rate when reading from kernel pcm device. Change-Id: Id0b2d166f3ab2f2291bf49b36c7085b21135ceea
* crespo/audio: build hal modules instead of libaudioDima Zavin2011-04-201-1/+8
| | | | | Change-Id: Ia4134c310a8e854d85c3584907a4da07355cc2b3 Signed-off-by: Dima Zavin <dima@android.com>
* am e8106736: am d7657374: SOUND: set incall volume when user starts call.UK KIM2011-03-051-0/+3
|\ | | | | | | | | * commit 'e8106736688d60b730873969dba4b60a64cae5e3': SOUND: set incall volume when user starts call.
| * SOUND: set incall volume when user starts call.UK KIM2011-03-031-0/+3
| | | | | | | | | | | | | | | | | | modem side doesn't store volume setting when device is rebooted. When audio mode is incall, set current voice volume to modem. Current incall volume is stored when upper layer sets or AudioService is started. Change-Id: Icfeb0273dda55354e207d464884ef99f41c5fdec Signed-off-by: UK KIM <w0806.kim@samsung.com>
* | am 4b36da0e: am 962f66ca: Added support for TTYEric Laurent2011-02-021-0/+9
|\ \ | |/ | | | | | | * commit '4b36da0e37942aa0547d2e31731f88b947f48a64': Added support for TTY
| * Added support for TTYEric Laurent2011-02-011-0/+9
| | | | | | | | Change-Id: I60e8ae30da4c3879bdd6a272dd65f6add4d1f520
| * do not merge bug 3370834 Cherrypick from master CL 79417Jean-Michel Trivi2011-01-211-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | Rely on the audio input source parameter for mixer configuration. The generic APM implementation now passes the audio recording source as a configuration parameter, and uses the enum defined in mediarecorder.h. But the driver uses a string to define the "input source state". This change maps the input source to the string used by the driver. Change-Id: I5fce44579a3cda01ed73f67fb8c3091ef05cce76
* | am 92786a1c: am 27cc0c78: Merge "Fix issue 3305305." into gingerbreadEric Laurent2011-01-211-4/+8
|\ \ | |/ | | | | | | * commit '92786a1ce7e7dd078d1a5c05411715d4a617dc57': Fix issue 3305305.
| * Fix issue 3305305.Eric Laurent2011-01-181-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that when the voice search tone is started, audio capture is still active and the output stream write function needs to place the input stream in standby to reconfigure the kernel driver. To do so it has to acquire the input stream mutex but as the input stream thread holds the lock most of the time while sleeping in the driver waiting for more data, this is very difficult and can take several seconds. The fix consists in forcing a sleep in the next read() when another function needs to acquire the input stream lock. The same change is done for output stream write() function. Also removed the workaround for issue 3201189 in setMode() (thread priority bump) as this change addresses the same problem. Change-Id: I3a5e672717752f83dfedce822a18748b165b0a5a
* | resolved conflicts for merge of d59093ec to masterEric Laurent2010-12-011-3/+8
|/ | | | Change-Id: Iab2b74f8eb505e3f474f2d768b1e00964c214526
* Removed ALSA user space library and utilitiesEric Laurent2010-11-301-0/+348
Change-Id: I0a6492f7c834ea572531e77f75486bcc385e345b