OSDN Git Service

android-x86/hardware-alsa_sound.git
12 years agoupdate for compatibility with ICS ics-x86
Chih-Wei Huang [Wed, 14 Dec 2011 05:48:39 +0000 (13:48 +0800)]
update for compatibility with ICS

Namespace has been changed from android to android_audio_legacy.
Module names have been updated to new ICS standards

13 years agoUpdate for Gingerbread build. gingerbread-x86 honeycomb-x86
Sean McNeil [Fri, 4 Mar 2011 03:44:24 +0000 (10:44 +0700)]
Update for Gingerbread build.

Add LOCAL_MODULE_TAGS as required.
Change LOG format to evade more restrictive errors by the compiler.

Change-Id: Ic5d390927c304f492b00ecd7d2ac2f2f68e79274

13 years agoClean up locks and route.
Sean McNeil [Mon, 6 Sep 2010 12:09:24 +0000 (19:09 +0700)]
Clean up locks and route.

Remove lock from AudioHardwareALSA class.
Do not call route for handles that have never been opened when mode
changes.

Change-Id: Ifce6718d5f1df235b78b10c86cf2f61b3ae12a69

13 years agoHold lock when doing a route.
Sean McNeil [Thu, 2 Sep 2010 03:08:53 +0000 (10:08 +0700)]
Hold lock when doing a route.

Routing can end up closing and re-opening an audio path (alsa_default.cpp).
If this happend while audio is being played or recorded, then the handle
can become invalid and cause a crash in the ALSA library.

Change-Id: I2ab62cec0b8a77abdfb890c2addf7e3f54aca750

13 years agoFix tab errors.
Sean McNeil [Thu, 2 Sep 2010 02:24:08 +0000 (09:24 +0700)]
Fix tab errors.

Change-Id: I6352d75c98c5c1a4a3c9f3647c54f20e7a6ebe84

13 years agoSupport no ALSA mixing.
Sean McNeil [Wed, 1 Sep 2010 07:06:11 +0000 (14:06 +0700)]
Support no ALSA mixing.

When no ALSA controls can be found, do not treat as a fatal condition.
Instead, report back to callers that the operation is not supported.
This will cause Audioflinger to perform software volume mixing instead.

Change-Id: I2843433c2cd3ed45e4888000f823aa5f34d3b5f7

13 years agoReduce common code.
Sean McNeil [Fri, 25 Jun 2010 08:51:47 +0000 (15:51 +0700)]
Reduce common code.

Make AudioPolicyManagerBase the parent class of AudioPolicyManagerALSA.
Remove what is common code. If necessary, we can implement any changes
when we find them.

13 years agoInclude libaudiopolicybase with libaudiopolicy.
Sean McNeil [Fri, 25 Jun 2010 08:21:53 +0000 (15:21 +0700)]
Include libaudiopolicybase with libaudiopolicy.

13 years agoUpdate for Froyo
Sean McNeil [Fri, 25 Jun 2010 06:07:06 +0000 (13:07 +0700)]
Update for Froyo

Add new input stream method getInputFramesLost().
Add new output stream method getInputFramesLost().

13 years agoFix A2DP compilation, remove FM routing, use snd_pcm_hw_params_set_buffer_size_near
Sean McNeil [Wed, 23 Jun 2010 07:22:01 +0000 (14:22 +0700)]
Fix A2DP compilation, remove FM routing, use snd_pcm_hw_params_set_buffer_size_near

13 years agoEnable Bluetooth support
Chih-Wei Huang [Thu, 10 Jun 2010 02:41:24 +0000 (10:41 +0800)]
Enable Bluetooth support

If BOARD_HAVE_BLUETOOTH is true, WITH_A2DP must be defined.

Change-Id: I73d035f6f576711438edfa560fd9ed831df0946d

14 years agoFix bugs in AudioStreamInALSA::close() and AudioStreamOutALSA::close()
Chih-Wei Huang [Wed, 20 Jan 2010 03:40:33 +0000 (11:40 +0800)]
Fix bugs in AudioStreamInALSA::close() and AudioStreamOutALSA::close()

The methods should call the parent method ALSAStreamOps::close(),
not call itself, which is an infinite recursive loop.

14 years agoRevert to named devices of AndroidPlayback/AndroidCapture for backwards compatability...
Sean McNeil [Wed, 9 Dec 2009 12:14:04 +0000 (19:14 +0700)]
Revert to named devices of AndroidPlayback/AndroidCapture for backwards compatability. Use appropriate devicePrefix - Michael Trimarchi

14 years agoWrite correct number of bytes per attempt.
Sean McNeil [Wed, 2 Dec 2009 20:35:48 +0000 (03:35 +0700)]
Write correct number of bytes per attempt.

14 years agoEclair ALSA version including new ALSA module mechanism.
Sean McNeil [Wed, 2 Dec 2009 16:06:34 +0000 (23:06 +0700)]
Eclair ALSA version including new ALSA module mechanism.

14 years agoRemove undef for FM routing now that it is a build option. android-x86-1.6
Sean McNeil [Fri, 14 Aug 2009 18:23:55 +0000 (01:23 +0700)]
Remove undef for FM routing now that it is a build option.

14 years agobufferSize must be a power of 2.
Sean McNeil [Fri, 14 Aug 2009 17:50:19 +0000 (00:50 +0700)]
bufferSize must be a power of 2.
Close audio interface on standby.
Clean up interface classes.

14 years agoAdd new argument to openInputStream introduced in Donut.
Sean McNeil [Tue, 11 Aug 2009 22:59:27 +0000 (05:59 +0700)]
Add new argument to openInputStream introduced in Donut.

14 years agoFix underrun issues. Change scope of locks.
Sean McNeil [Mon, 10 Aug 2009 23:28:08 +0000 (06:28 +0700)]
Fix underrun issues. Change scope of locks.

14 years agoAdd header
Sean McNeil [Mon, 10 Aug 2009 23:27:22 +0000 (06:27 +0700)]
Add header

14 years agoUpdates to add acoustics plugin and move lock to parent class.
Sean McNeil [Thu, 9 Jul 2009 05:07:29 +0000 (12:07 +0700)]
Updates to add acoustics plugin and move lock to parent class.

15 years agoAdd new generic ALSA control interface
Sean McNeil [Wed, 15 Apr 2009 23:07:30 +0000 (06:07 +0700)]
Add new generic ALSA control interface

15 years agoCall with appropriate parameters to setDevice
Sean McNeil [Sat, 4 Apr 2009 19:03:35 +0000 (02:03 +0700)]
Call with appropriate parameters to setDevice
Put back missing return.

15 years agoRun through bcpp program to eliminate tabs and cleanup format.
Sean McNeil [Thu, 26 Feb 2009 04:54:15 +0000 (11:54 +0700)]
Run through bcpp program to eliminate tabs and cleanup format.
Update to build with new AudioHardwareBase.
Fix problem with Zoom not supporting buffer allocation based on sample
time.
Allow device to provide multiple routes instead of just first
encountered.

15 years agoInitial Contribution
Xiaopeng Yang [Thu, 20 Nov 2008 02:39:50 +0000 (10:39 +0800)]
Initial Contribution

15 years agoTemplate files from frameworks/base/libs/audioflinger
Xiaopeng Yang [Wed, 19 Nov 2008 08:33:20 +0000 (16:33 +0800)]
Template files from frameworks/base/libs/audioflinger