diff options
author | Eric Laurent <elaurent@google.com> | 2012-03-07 19:01:51 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2012-03-07 19:01:51 -0800 |
commit | 3cd3a11758c635ce2415f118f3cdcda186ae681e (patch) | |
tree | 4fe994d5af6efbe81dbe31d3d444bf18bcf7f3e8 | |
parent | 62215e25c389f985f713ffa31dd74b76d31a38c3 (diff) | |
download | bluez-3cd3a11758c635ce2415f118f3cdcda186ae681e.tar.gz |
audio: use common string for A2DP sink address
Use definition from audio.h for A2DP sink address parameter.
Change-Id: I18119acc6579b9fed6b2f8cf390bbbab1d5b5e46
-rw-r--r-- | audio/android_audio_hw.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/audio/android_audio_hw.c b/audio/android_audio_hw.c index e8a3df61..51d11426 100644 --- a/audio/android_audio_hw.c +++ b/audio/android_audio_hw.c @@ -42,7 +42,6 @@ #define A2DP_SUSPENDED_PARM "A2dpSuspended" #define BLUETOOOTH_ENABLED_PARM "bluetooth_enabled" -#define OUT_SINK_ADDR_PARM "a2dp_sink_address" /* number of periods in pcm buffer (one period corresponds to buffer size reported to audio flinger * by out_get_buffer_size() */ @@ -291,7 +290,7 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs) pthread_mutex_lock(&out->lock); - ret = str_parms_get_str(parms, OUT_SINK_ADDR_PARM, value, sizeof(value)); + ret = str_parms_get_str(parms, AUDIO_PARAMETER_A2DP_SINK_ADDRESS, value, sizeof(value)); if (ret >= 0) { /* strlen(00:00:00:00:00:00) == 17 */ if (strlen(value) == 17) { @@ -342,9 +341,9 @@ static char * out_get_parameters(const struct audio_stream *stream, pthread_mutex_lock(&out->lock); - ret = str_parms_get_str(parms, OUT_SINK_ADDR_PARM, value, sizeof(value)); + ret = str_parms_get_str(parms, AUDIO_PARAMETER_A2DP_SINK_ADDRESS, value, sizeof(value)); if (ret >= 0) - str_parms_add_str(out_parms, OUT_SINK_ADDR_PARM, out->a2dp_addr); + str_parms_add_str(out_parms, AUDIO_PARAMETER_A2DP_SINK_ADDRESS, out->a2dp_addr); pthread_mutex_unlock(&out->lock); |