summaryrefslogtreecommitdiffstats
path: root/emulator/audio/driver/audio_hw.h
Commit message (Collapse)AuthorAgeFilesLines
* Added simulated input devices to HW sound emulator.Oscar Azucena2020-06-121-0/+10
| | | | | | | | | | | | Added simulated audio input devices to car audio configuration. This devices can be used for any audio zone in particular but are mostly set to target zone 0 and zone 1. Also added osillator struct to keep track of phase and current phase increment (e.g ~frequency) to keep track of current phase changes in simulated input device. Test: m -j, run emulator Bug: 158122733 Change-Id: Iecdcd695975b71ce4d49c0770bd9ea02f9703cd3
* Added logic to switch zones at right speakerOscar Azucena2019-09-101-0/+2
| | | | | | | | | Added aae.playZoneId to allow different zones to play at right speaker when using the car emulator. Bug: 134524865 Test: Ran kitchen sink emulator Change-Id: Ie05718feff62e84d7bd3e40f250e5de0a7bf585c
* Separates zone audio to different channels in car emulatorHongwei Wang2019-04-171-0/+7
| | | | | | | | | | | | | | | | | | | - rear seat buses (with "rear" in its address) uses right channel - left channel otherwise This behavior is enabled only if ro.aae.simulateMultiZoneAudio property is turned on. To switch the behavior back and forth during runtime, one has to restart the audioserver as well as car service after changing the value via `adb shell setprop <key> <value>`. The most convenient way would be to enable this flag at boot time as following ``` emulator -prop ro.aae.simulateMultiZoneAudio=true ``` Bug: 120299880 Test: manually on gcar_emu_x86-userdebug emulator Change-Id: I61e542ca621f922dfafe7c5979bd4d13ab2fc57a
* Adds broadcast radio 2.0 default HAL to car emulatorHongwei Wang2018-06-131-3/+4
| | | | | | | | | | | Also, uses broadcast radio to better demonstrate audio patch as an end-to-end case. We can further surface pseudo broadcast radio audio stream. Bug: 110166790 Test: launch radio app in gcar_emu_x86-userdebug Change-Id: I3871e7ef5408a7ae15ea35c80176dc0d00dae200
* Demonstrates master mute implementation in car emulatorpie-devHongwei Wang2018-05-301-0/+1
| | | | | | Bug: 80474559 Test: adb shell input keyevent 164 Change-Id: I75710257050d97ee1e6d637ee6fef0efecb9e39f
* Simulates hardware gain control in audio driverHongwei Wang2018-05-101-0/+90
Change log - audio_vbuffer in its own source and header files - a pcm is shared via ext_pcm by multiple audio streams Known issue - Audio is distorted if multiple audio streams try to play simultaneously. This is due to lack of proper audio mixing and will be fixed in a future CL Bug: 79496296 Test: manually Change-Id: I14392e13ae49131a044efdda97ea23946287ad97