OSDN Git Service

android-x86/hardware-libaudio.git
3 years agoAdd files from alsa-ucm-conf oreo-x86
Chih-Wei Huang [Mon, 21 Jun 2021 17:26:08 +0000 (01:26 +0800)]
Add files from alsa-ucm-conf

3 years agoAdd alsa_alsamixer and update config files for new alsa-lib
Chih-Wei Huang [Wed, 16 Jun 2021 16:22:31 +0000 (00:22 +0800)]
Add alsa_alsamixer and update config files for new alsa-lib

4 years agolibaudio: add headset-mic routing support nougat-x86 android-x86-7.1-r4 android-x86-7.1-r5 android-x86-8.1-r5
Francescodario Cuzzocrea [Sat, 25 Apr 2020 13:30:31 +0000 (15:30 +0200)]
libaudio: add headset-mic routing support

 - this enables using headset microphone when connected

 - it needs the headset-mic path declared in mixer_paths

4 years agolibaudio: remove panel orientation code
Francescodario Cuzzocrea [Tue, 21 Apr 2020 22:59:27 +0000 (00:59 +0200)]
libaudio: remove panel orientation code

 - makes little sense to keep this logic as the vast majority of PCs
   have only one microphone. This was something Grouper specific.

4 years agoFix USB audio output issue android-x86-7.1-r3 android-x86-8.1-r3 android-x86-8.1-r4 android-x86-9.0-r1 android-x86-9.0-r2
Chih-Wei Huang [Tue, 27 Aug 2019 08:01:47 +0000 (16:01 +0800)]
Fix USB audio output issue

Bugs: https://github.com/android-x86/android-x86.github.io/issues/54
Reported-and-fixed-by: Chales Yu <574249312@qq.com>
5 years agoalsa.mk: add alsa_ucm android-x86-8.1-r2
Chih-Wei Huang [Fri, 15 Mar 2019 09:41:07 +0000 (17:41 +0800)]
alsa.mk: add alsa_ucm

5 years agoFix building warnings
Chih-Wei Huang [Fri, 22 Feb 2019 10:47:57 +0000 (18:47 +0800)]
Fix building warnings

6 years agoaudio_hw: ignore HdmiLpeAudio nodes android-x86-7.1-r2 android-x86-8.1-r1
Chih-Wei Huang [Tue, 10 Apr 2018 09:02:56 +0000 (17:02 +0800)]
audio_hw: ignore HdmiLpeAudio nodes

6 years agoaudio_hw: allow to set sound card by properties android-x86-7.1-r1
Chih-Wei Huang [Wed, 13 Sep 2017 08:10:29 +0000 (16:10 +0800)]
audio_hw: allow to set sound card by properties

To manually specify the audio in and out device nodes, set the
properties like:

Audio in: hal.audio.in=pcmC1D0c
Audio out: hal.audio.out=pcmC1D3p

7 years agoselect_card: only open PCM devices with the same type as requested lollipop-x86 marshmallow-x86
Valentin Manea [Mon, 1 May 2017 19:32:36 +0000 (22:32 +0300)]
select_card: only open PCM devices with the same type as requested

Let select_card() only open /dev/snd/pcmCxp for playback and /dev/snd/pcmCxc
for capture device. This way select_card won't try to open a device twice.

In some cases the second query on a playback device(even though
select_card is searching for a capture device) will block inside the
kernel causing audio to stop working.

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