diff options
author | Android Partner Docs <noreply@android.com> | 2017-06-13 21:26:42 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-06-13 21:26:42 +0000 |
commit | b8087179e42959b1efeb64a81110d6d0aa2b798f (patch) | |
tree | b0254fc055b6adcae6a60704966ac029afb600cf /en/devices/audio/implement-shared-library.html | |
parent | e5ecdabfcf75d07d42c93ab2b472b8340b674ae7 (diff) | |
parent | 669198e6d1bd5047baeea4f298f27ec22fbc71f5 (diff) | |
download | source.android.com-b8087179e42959b1efeb64a81110d6d0aa2b798f.tar.gz |
Merge "Docs: Changes to source.android.com" am: 0a9ccdf0b0 am: c391221fea am: 6ccb9c7cc8
am: 669198e6d1
Change-Id: Idf6e6994594f7e8514edbd0c54bd1cc92dd898de
Diffstat (limited to 'en/devices/audio/implement-shared-library.html')
-rw-r--r-- | en/devices/audio/implement-shared-library.html | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/en/devices/audio/implement-shared-library.html b/en/devices/audio/implement-shared-library.html index 0c999c81..9f687079 100644 --- a/en/devices/audio/implement-shared-library.html +++ b/en/devices/audio/implement-shared-library.html @@ -34,7 +34,7 @@ directory to contain your library's source files.</li> <li>Create an <code>Android.mk</code> file to build the shared library. Ensure the Makefile contains the following line: <br> -<pre> +<pre class="devsite-click-to-copy"> LOCAL_MODULE := audio.primary.<device> </pre> <br> @@ -46,7 +46,8 @@ hardware located on the device. The module names <code>audio.usb.<device></code> are also available for Bluetooth and USB audio interfaces. Here is an example of an <code>Android.mk</code> from the Galaxy Nexus audio hardware:</p> -<p><pre> + +<pre class="devsite-click-to-copy"> LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -62,29 +63,29 @@ LOCAL_SHARED_LIBRARIES := liblog libcutils libtinyalsa libaudioutils libdl LOCAL_MODULE_TAGS := optional include $(BUILD_SHARED_LIBRARY) -</pre></p> +</pre> </li> <br> <li>If your product supports low latency audio as specified by the Android CDD, copy the corresponding XML feature file into your product. For example, in your product's <code>device/<company>/<device>/device.mk</code> Makefile: -<p><pre> +<pre class="devsite-click-to-copy"> PRODUCT_COPY_FILES := ... PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ -</pre></p> +</pre> </li> <br> <li>Copy the audio policy configuration file you created earlier to the <code>system/etc/</code> directory in your product's <code>device/<company>/<device>/device.mk</code> Makefile. For example: -<p><pre> +<pre class="devsite-click-to-copy"> PRODUCT_COPY_FILES += \ device/samsung/tuna/audio/audio_policy.conf:system/etc/audio_policy.conf -</pre></p> +</pre> </li> <br> <li>Declare the shared modules of your audio HAL that are required by your @@ -92,7 +93,7 @@ product in the product's <code>device/<company>/<device>/device.mk</code> Makefile. For example, the Galaxy Nexus requires the primary and Bluetooth audio HAL modules: -<pre> +<pre class="devsite-click-to-copy"> PRODUCT_PACKAGES += \ audio.primary.tuna \ audio.a2dp.default |