summaryrefslogtreecommitdiffstats
path: root/audio/Android.mk
Commit message (Collapse)AuthorAgeFilesLines
* audio: update module to latest upstream versionJoonas Kylmälä2020-11-281-5/+6
| | | | | | | | This updates the audio module to version e24372e861c14654a4eb9449dd3d0a615522f084 from https://android.googlesource.com/device/linaro/dragonboard Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* audio: add extremely basic routingDenis 'GNUtoo' Carikli2020-11-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The configuration is derived from the default and speaker on configurations from the configs/tiny_hw.xml file in the replicant-6.0 branch of the device_samsung_i9300[1]. This should be sufficient for testing the audio as it routes it to the speaker and never changes route. This will be improved in subsequent commits as only having the ability to use the speaker and leaving them on all the time doesn't really make the device usable. The audio_hw.c part was inspired from the audio_hw.c and audio_hw.h files in the device_amlogic_yukawa repository[2] at the following commit: 7252a5cd25ced5badee99e7377fb678394c943a8 7252a5c Snap for 6453963 from b70ebf49d8bc1f162601b8cb627edfc7a689b67a to rvc-release References: ----------- [1]https://git.replicant.us/replicant/device_samsung_i9300.git [2]https://android.googlesource.com/device/amlogic/yukawa Thanks to Joonas Kylmälä who found that some boards were using a mixer_paths.xml configuration file. With that information I was able to find the libaudioroute library and an example xml file. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Import dragonboard audio libraryDenis 'GNUtoo' Carikli2020-11-271-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The audio directory from the dragonboard git[1] is imported as-is from the following commit: bc02e153097048c72e86037920a19a286fb012ca bc02e15 Snap for 6191568 from 7f47f75eaf9d475bbcdd78343e9a40cf6d986874 to rvc-release For some reasons merely adding the following to midas.mk: PRODUCT_PACKAGES += audio.primary.exynos4 wasn't enough to get an audio.primary.exynos4.so library in the out/target/product/i9300 directory. Importing this audio library here fixes that. In addition, if we look at the audio library in audio being used in Replicant 6 for the GT-I9300[2], in audio/ we have calls to several functions related to the RIL, like ril_open, ril_close, ril_register_set_wb_amr_callback, ril_set_call_audio_path, and so on. Because of that we will most probably need to implement something similar to make audio work in calls, so it's probably best to fork that library anyway, at least for the GT-I9300. References: ----------- [1]https://android.googlesource.com/device/linaro/dragonboard [2]https://git.replicant.us/replicant/device_samsung_i9300.git Thanks to Joonas Kylmälä who identified that the dragonboard audio library worked out of the box on Android 11 for the Galaxy SIII 4G (GT-I9305). Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* Delete unused audio moduleJoonas Kylmälä2020-07-071-58/+0
| | | | Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Initial commitJoonas Kylmälä2020-04-101-0/+58
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>