| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Here is how the HIDL wrapper interprets status error codes:
0 => Result::OK
-EINVAL => Result::INVALID_ARGUMENTS
-ENODATA => Result::INVALID_STATE
-ENODEV => Result::NOT_INITIALIZED
-ENOSYS => Result::NOT_SUPPORTED
otherwise => Result::INVALID_STATE
This is consistent with most of the hal.
This patch changes the few places where it was not to unify the
behaviours.
Test: vts-tradefed run vts --module VtsHalAudioV2_0Target
Test: call/play music/record/video...
Bug: 36311550
Change-Id: Id821d15ae3269cd2c9699924e2b174c7347a6d07
Signed-off-by: Kevin Rocard <krocard@google.com>
Signed-off-by: André Pinela <sheffzor@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
M doesn't select the audio device at start now. Hence the mixer is not
properly set up. That's why there is no audio output after reboot.
However, when the orientation sensor detected changes, the audio HAL
driver will be adjusted. During the adjustment, the mixer is reset and
bring the audio back.
To fix this strange scenario, I set up the mixer with select_device() at
the end of device open.
Change-Id: I6878993da55d0ee76b81229e20c2c16f53bf7ac3
|
| |
|
|
| |
Change-Id: Ieaa43cbc5ef62686c58d38b12671fff1171efede
|
| |
|
|
| |
Since the unused Intel HDA card was removed from the kernel, the card IDs changed.
|
| |
|
|
|
|
|
|
| |
Pass device address (and audio source for inputs) to
open_output_stream() and open_input_stream() audio HAL functions.
Bug: 14815883.
Change-Id: Iec91c57f7f908e0dd278eafd95da29034c15ff54
|
| |
|
|
|
| |
Bug: 16601366
Change-Id: I128db28937e2fefd4e41a924204442a72d45f1c8
|
| |
|
|
| |
Change-Id: Ia595260e238b3308fcf86ca4b71feea5f71c485a
|
| |
|
|
|
| |
Bug: 15000850.
Change-Id: I6eacaedc5e45457ba528c04c952ec352fa7b8c56
|
| |
|
|
|
|
|
| |
Do not use popcount() to derive channel count from channel mask.
Bug: 15000850.
Change-Id: I478b4c4e0076c2fdf4b9e6c007f49a9da72931ba
|
| |
|
|
|
| |
Bug: 9587132
Change-Id: Ic227628c707d08e283bcee91af37a85181d94a7c
|
| |
|
|
|
|
|
|
| |
audio_route is mature enough now to belong in its
own library and will help remove duplication across
audio HALs.
Change-Id: If3a2a0b4a6d9bbed93d206e61d22a155066a23d4
|
| |
|
|
| |
Change-Id: I03819de8e1210f14d323939a584905ab1bbe63c6
|
| |
|
|
| |
This reverts commit 03729278e30ff974263c93e6df8bfb6a33fbef20.
|
| |
|
|
| |
This reverts commit bc5583c5f01457d36a06cfc72095cf85b2a6dea9.
|
| |
|
|
|
|
| |
headset rapidly."
This reverts commit fc3bd5eb75c3723fab25a66420379f783e0d31ba.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rapidly.
1. Design "AUX" and "speaker" dapm mixer control for dock feature in HAL instead of kernel.
The previous kernel design could cause speaker silent after inserting and removing headphone rapidly,
or even just normally insert and remove headphone during system suspend.
2. For dock feature, original speaker output scenario must be separated into dock path and speaker path.
Thus we have to update the current state of speaker and dock respectively to make sure speaker and dock
output paths can be enabled/disabled as expected.
Bug: 7388692
Change-Id: I6e75cf63cdd8134e34ab22fb818a17ec8c4bdce5
Signed-off-by: able_liao <able_liao@asus.com>
|
| |
|
|
|
|
|
| |
Check output device is speaker first and then check if dock is plugged
in.
Change-Id: I7723f6de90bf0548320423c465e8950593df9e46
|
| |
|
|
|
| |
Bug: 6542224
Change-Id: I026622956d1e299603f9f26ddcaa2d542729a18b
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Modifications for new audio device enums:
- Separated input and output device fields as output and input device
values are now on 32 bits.
- changed audio device API version to 2.0
Also removed get_supported_devices() function not needed if audio_policy.conf
file is present.
Change-Id: Ieb32abfa3c3aac1fb9c16dc73350d5cc231e41a4
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
When starting capture, we check if a playback stream is active with an
incompatible sampling rate and if yes force this stream in standby.
The output stream lock is acquired while requesting standby. The problem
is that this stream is referenced by adev->active_out which is cleared by
do_output_standby() and a crash occurs when releasing the lock.
The same problem is present when starting a playback stream and a capture
stream is active.
Change-Id: I72ce058308371199655e3b2e1cfc0529328555ec
|
| |
|
|
|
|
|
| |
Reset input buffer frame count when starting capture to
avoid reading stale data from previous capture.
Change-Id: Ied07eda9b2094b8a36f07871d6e071ac96f5892d
|
| |
|
|
| |
Change-Id: I313e31be8205b7cbbbf5102c76469764b271f791
|
| |
|
| |
This reverts commit 8e94790ebb933b039e8e20b635f53e4186af9499
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There have been several reports of devices losing audio
completely until rebooted.
The logs showed that the kernel buffer was steadily full
as if playback did not start or stopped and did not restart.
This change adds a watchdog to restart media server in case such
a condition persists.
Also add more log in case of errors reported by tinyalsa.
Bug 6699340.
Change-Id: Ie3e1565e1c1e6fd8581e6969343d481a63d5c880
|
| |
|
|
|
|
|
|
|
| |
Also modified adev_get_input_buffer_size() to return a size
consistent with in_get_buffer_size().
Bug 6615379.
Change-Id: Id2f7a2de7e393d057b0987866507f2f1f699f944
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The change for variable buffer size made that the latency
reported is always the largest value corresponding to screen
off buffer size. This causes an A/V sync problem as the audio
delay compensation is based on the latency reported by audio HAL.
Also added a maximum sleep time when waiting for buffer filling status to
go below write threshold.
Also added progressive write threshold increase when recovering from
low buffer filling status.
Change-Id: Ia29c00e7c32b66faefd2817dca2b4b54cc0d8c7b
|
| |
|
|
|
|
|
|
|
|
|
| |
Use larger buffers on audio output when screen is OFF to
minimize risks of underruns when the CPU clock is at the lowest.
Maximum buffer size is currently limited to 32kB by the driver.
Bug 6605215.
Change-Id: I1725a9eb284a87eabe63caedec330eba47a76c53
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
When only the speaker is active, swap the L/R channels. If
the headphone is active, do not swap the channels.
In order to do this properly, the mixer controls in the
headphone path must be applied in preference to the
speaker path.
Fixes bug: 6558120
Change-Id: Ica8d1fd31b3b1a98392c57db08c8374a4bf631e5
|
|
|
Change-Id: I855f4685d11d3cd16e4efbeb35ae6389045cb200
Kernel: 8dd2eab Audio: Disable UART debug cable detection to support active
|