summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-01-31 08:18:34 +0100
committerChristopher N. Hesse <raymanfx@gmail.com>2017-02-02 11:35:48 +0000
commitb7f32128dcd3a46086365ad95f16f666d2eaa0b6 (patch)
tree028c9ce57ccd23a76e80a02775f6100fc3634f35 /audio
parentcabe5e6aefdfa49441c94888eebbd70fb7ae6098 (diff)
downloadhardware_samsung-b7f32128dcd3a46086365ad95f16f666d2eaa0b6.tar.gz
hardware_samsung-b7f32128dcd3a46086365ad95f16f666d2eaa0b6.tar.bz2
hardware_samsung-b7f32128dcd3a46086365ad95f16f666d2eaa0b6.zip
audio: Use C99 initializers in read_frames()
Change-Id: I69d9ac00dbd7126682c66087804c2b33cf6c86bc
Diffstat (limited to 'audio')
-rw-r--r--audio/audio_hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 6e6a71a..423ce06 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1865,8 +1865,8 @@ static ssize_t read_frames(struct stream_in *in, void *buffer, ssize_t frames)
&frames_rd);
} else {
struct resampler_buffer buf = {
- { raw : NULL, },
- frame_count : frames_rd,
+ .raw = NULL,
+ .frame_count = frames_rd,
};
get_next_buffer(&in->buf_provider, &buf);
if (buf.raw != NULL) {