diff options
author | Arman Uguray <armansito@google.com> | 2015-05-29 16:09:45 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-06-01 14:30:20 -0700 |
commit | ed5246d4a581cdc5aa16a27e8dd70d52fe8cd2bb (patch) | |
tree | 93501d4c4211beb2335f3aa0a54352f4bee3eb2d /audio/include | |
parent | ac13b24c9d7291a38f5451ad11d7af054da60283 (diff) | |
download | android_system_media-ed5246d4a581cdc5aa16a27e8dd70d52fe8cd2bb.tar.gz android_system_media-ed5246d4a581cdc5aa16a27e8dd70d52fe8cd2bb.tar.bz2 android_system_media-ed5246d4a581cdc5aa16a27e8dd70d52fe8cd2bb.zip |
system/audio.h: Make function inline
This patch makes the audio_device_address_to_parameter inline. All of the other
helpers defined in this header are inline functions except for this one and this
causes compile failures when -Werror=unused-function is used.
BUG=21339022
Change-Id: I7db58bf7bed3b89b6752ec2cd2c1f358ba2a4d89
Diffstat (limited to 'audio/include')
-rw-r--r-- | audio/include/system/audio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/include/system/audio.h b/audio/include/system/audio.h index 06d9325f..26b44a36 100644 --- a/audio/include/system/audio.h +++ b/audio/include/system/audio.h @@ -1383,7 +1383,7 @@ static inline size_t audio_bytes_per_sample(audio_format_t format) } /* converts device address to string sent to audio HAL via set_parameters */ -static char *audio_device_address_to_parameter(audio_devices_t device, const char *address) +static inline char *audio_device_address_to_parameter(audio_devices_t device, const char *address) { const size_t kSize = AUDIO_DEVICE_MAX_ADDRESS_LEN + sizeof("a2dp_sink_address="); char param[kSize]; |