OSDN Git Service

android-x86/hardware-libaudio.git
7 years agoaudio_hw: select HDMI audio if notified by the framework android-x86-6.0-r1 android-x86-6.0-r2 android-x86-6.0-r3
Chih-Wei Huang [Tue, 13 Sep 2016 09:59:59 +0000 (17:59 +0800)]
audio_hw: select HDMI audio if notified by the framework

7 years agoaudio_hw: allow to select HDMI audio manually
Chih-Wei Huang [Mon, 12 Sep 2016 16:48:57 +0000 (00:48 +0800)]
audio_hw: allow to select HDMI audio manually

Before we can select HDMI audio automatically, let the user
do it manually by setting hal.audio.primary.hdmi=1.

7 years agoaudio_hw: cache HDMI audio interface
Chih-Wei Huang [Mon, 15 Aug 2016 13:23:39 +0000 (21:23 +0800)]
audio_hw: cache HDMI audio interface

Now we cache the HDMI audio interface as well to avoid misusing them.

We are near to fully support HDMI audio. What missed is the events
to trigger the switching between primary speaker and HDMI.

7 years agoAdd IntelHDMI audio HAL
Chih-Wei Huang [Fri, 5 Aug 2016 15:20:29 +0000 (23:20 +0800)]
Add IntelHDMI audio HAL

7 years agoaudio_route: avoid an unnecessary error
Chih-Wei Huang [Wed, 27 Jul 2016 12:25:20 +0000 (20:25 +0800)]
audio_route: avoid an unnecessary error

The change tries to remove the error message:

07-27 16:25:15.129  1249  1249 E audio_hw_primary: Unable to open the mixer, aborting.

However, audio_route still doesn't work properly unless
we put an appropriate mixer_paths.xml.

7 years agoaudio_hw: search sound card more properly
Chih-Wei Huang [Wed, 27 Jul 2016 12:06:06 +0000 (20:06 +0800)]
audio_hw: search sound card more properly

Scan /dev/snd/ to find the appropriate sound card.
Ignore IntelHDMI since it's handled by another HAL.

8 years agoaudio_hw: add parameters to match new audio HAL
Chih-Wei Huang [Tue, 26 Jul 2016 17:26:20 +0000 (01:26 +0800)]
audio_hw: add parameters to match new audio HAL

8 years agoaudio_hw: fix unused parameter warnings
Chih-Wei Huang [Tue, 26 Jul 2016 17:21:33 +0000 (01:21 +0800)]
audio_hw: fix unused parameter warnings

8 years agoaudio_hw: deprecate audio_stream_frame_size()
Chih-Wei Huang [Tue, 26 Jul 2016 16:56:44 +0000 (00:56 +0800)]
audio_hw: deprecate audio_stream_frame_size()

8 years agoaudio_policy.conf: make the headset microphone work
iGaminGoo [Tue, 14 Jun 2016 06:33:21 +0000 (14:33 +0800)]
audio_policy.conf: make the headset microphone work

8 years agoinclude the header for string functions prototypes
Chih-Wei Huang [Thu, 15 Oct 2015 16:26:16 +0000 (00:26 +0800)]
include the header for string functions prototypes

Also fixes the warning of unused parameter 'tag_name'.

8 years agofallback to sampling rates 44100 if possible
Chih-Wei Huang [Thu, 25 Jun 2015 17:00:00 +0000 (01:00 +0800)]
fallback to sampling rates 44100 if possible

9 years agoMerge remote-tracking branch 'x86/kitkat-x86' into lollipop-x86
Chih-Wei Huang [Sun, 28 Dec 2014 09:34:50 +0000 (17:34 +0800)]
Merge remote-tracking branch 'x86/kitkat-x86' into lollipop-x86

9 years agochange the default sampling rates to 48000 android-x86-4.4-r2
Chih-Wei Huang [Fri, 19 Dec 2014 16:10:00 +0000 (00:10 +0800)]
change the default sampling rates to 48000

The baytrail platform only supports 48000.
It won't affect others since all sound cards
I tested so far support 48000 as well.

9 years agoenable multiarch builds
Chih-Wei Huang [Thu, 6 Nov 2014 04:12:27 +0000 (12:12 +0800)]
enable multiarch builds

Convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
to support 64-bit targets.

Also add audio.r_submix.default.

10 years agoaudio_route: fix mediaserver crash jb-x86 android-x86-4.4-r1
Maksim Lin [Mon, 9 Dec 2013 10:54:34 +0000 (18:54 +0800)]
audio_route: fix mediaserver crash

The segfault is because a null audio_route param is passed into
function reset_mixer_state.

Issue: 1209

10 years agoFix bad sleep time
Tueidj [Wed, 28 Aug 2013 13:33:00 +0000 (21:33 +0800)]
Fix bad sleep time

The bad sleep time occurs when pcm_get_htimestamp() fails, leaving
kernel_frames uninitialized and causing out->cur_write_threshold to be
set to a very large value. The following patch ensures kernel_frames is
initialized to a sane value, it should fix most of the "limiting sleep
time" warnings and stuttering audio caused by sleeping too much.

10 years agoadd audio.usb.default
Chih-Wei Huang [Wed, 14 Aug 2013 04:05:33 +0000 (12:05 +0800)]
add audio.usb.default

Suggested by Masaki Muranaka <monaka@monami-ya.jp>.

11 years agodetect pcm card automatically
Chih-Wei Huang [Mon, 7 Jan 2013 17:01:14 +0000 (01:01 +0800)]
detect pcm card automatically

11 years agoaudio hal for jb-x86
Chih-Wei Huang [Mon, 7 Jan 2013 16:56:02 +0000 (00:56 +0800)]
audio hal for jb-x86

Import from device/asus/grouper/audio of AOSP.

12 years agoinitial import
Chih-Wei Huang [Thu, 22 Dec 2011 15:53:25 +0000 (23:53 +0800)]
initial import