Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9edc5b6a authored by Mark Salyzyn's avatar Mark Salyzyn Committed by Android Git Automerger
Browse files

am 73972618: Merge "bluedroid: audio_a2dp_hw 64 bit compile issues"

* commit '73972618':
  bluedroid: audio_a2dp_hw 64 bit compile issues
parents 7e807788 73972618
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
 *****************************************************************************/

#include <errno.h>
#include <inttypes.h>
#include <pthread.h>
#include <stdint.h>
#include <sys/time.h>
@@ -47,7 +48,7 @@

#define LOG_TAG "audio_a2dp_hw"
/* #define LOG_NDEBUG 0 */
#include <cutils/log.h>
#include <log/log.h>

/*****************************************************************************
**  Constants & Macros
@@ -443,7 +444,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
    struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream;
    int sent;

    DEBUG("write %d bytes (fd %d)", bytes, out->audio_fd);
    DEBUG("write %zu bytes (fd %d)", bytes, out->audio_fd);

    if (out->state == AUDIO_A2DP_STATE_SUSPENDED)
    {
@@ -488,7 +489,7 @@ static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
        out->state = AUDIO_A2DP_STATE_STOPPED;
    }

    DEBUG("wrote %d bytes out of %d bytes", sent, bytes);
    DEBUG("wrote %d bytes out of %zu bytes", sent, bytes);
    return sent;
}

@@ -497,7 +498,7 @@ static uint32_t out_get_sample_rate(const struct audio_stream *stream)
{
    struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream;

    DEBUG("rate %d", out->cfg.rate);
    DEBUG("rate %" PRIu32, out->cfg.rate);

    return out->cfg.rate;
}
@@ -506,7 +507,7 @@ static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate)
{
    struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream;

    DEBUG("out_set_sample_rate : %d", rate);
    DEBUG("out_set_sample_rate : %" PRIu32, rate);

    if (rate != AUDIO_STREAM_DEFAULT_RATE)
    {
@@ -523,7 +524,7 @@ static size_t out_get_buffer_size(const struct audio_stream *stream)
{
    struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream;

    DEBUG("buffer_size : %d", out->buffer_sz);
    DEBUG("buffer_size : %zu", out->buffer_sz);

    return out->buffer_sz;
}
@@ -532,7 +533,7 @@ static uint32_t out_get_channels(const struct audio_stream *stream)
{
    struct a2dp_stream_out *out = (struct a2dp_stream_out *)stream;

    DEBUG("channels 0x%x", out->cfg.channel_flags);
    DEBUG("channels 0x%" PRIx32, out->cfg.channel_flags);

    return out->cfg.channel_flags;
}