audio_hw: Fix compiler warnings
Change-Id: Iab7e91df4d8fb0d8e74aa8e2ca0836cf7e43bf03
This commit is contained in:
parent
4a8fd563ef
commit
6c59aadad9
1 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ static int out_set_volume(struct audio_stream_out *stream, float left,
|
||||||
static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
|
static ssize_t out_write(struct audio_stream_out *stream, const void* buffer,
|
||||||
size_t bytes)
|
size_t bytes)
|
||||||
{
|
{
|
||||||
ALOGV("out_write: bytes: %d", bytes);
|
ALOGV("out_write: bytes: %zu", bytes);
|
||||||
/* XXX: fake timing for audio output */
|
/* XXX: fake timing for audio output */
|
||||||
usleep((int64_t)bytes * 1000000 / audio_stream_out_frame_size(stream) /
|
usleep((int64_t)bytes * 1000000 / audio_stream_out_frame_size(stream) /
|
||||||
out_get_sample_rate(&stream->common));
|
out_get_sample_rate(&stream->common));
|
||||||
|
@ -216,7 +216,7 @@ static int in_set_gain(struct audio_stream_in *stream, float gain)
|
||||||
static ssize_t in_read(struct audio_stream_in *stream, void* buffer,
|
static ssize_t in_read(struct audio_stream_in *stream, void* buffer,
|
||||||
size_t bytes)
|
size_t bytes)
|
||||||
{
|
{
|
||||||
ALOGV("in_read: bytes %d", bytes);
|
ALOGV("in_read: bytes %zu", bytes);
|
||||||
/* XXX: fake timing for audio input */
|
/* XXX: fake timing for audio input */
|
||||||
usleep((int64_t)bytes * 1000000 / audio_stream_in_frame_size(stream) /
|
usleep((int64_t)bytes * 1000000 / audio_stream_in_frame_size(stream) /
|
||||||
in_get_sample_rate(&stream->common));
|
in_get_sample_rate(&stream->common));
|
||||||
|
|
Loading…
Reference in a new issue