diff options
Diffstat (limited to 'include/hardware/audio.h')
-rw-r--r-- | include/hardware/audio.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/hardware/audio.h b/include/hardware/audio.h index ae82c3b..fa34467 100644 --- a/include/hardware/audio.h +++ b/include/hardware/audio.h @@ -215,9 +215,9 @@ typedef struct audio_stream_in audio_stream_in_t; /** * return the frame size (number of bytes per sample). */ -static inline uint32_t audio_stream_frame_size(struct audio_stream *s) +static inline size_t audio_stream_frame_size(struct audio_stream *s) { - int chan_samp_sz; + size_t chan_samp_sz; switch (s->get_format(s)) { case AUDIO_FORMAT_PCM_16_BIT: @@ -272,12 +272,11 @@ struct audio_hw_device { int (*set_master_volume)(struct audio_hw_device *dev, float volume); /** - * setMode is called when the audio mode changes. AUDIO_MODE_NORMAL mode + * set_mode is called when the audio mode changes. AUDIO_MODE_NORMAL mode * is for standard audio playback, AUDIO_MODE_RINGTONE when a ringtone is * playing, and AUDIO_MODE_IN_CALL when a call is in progress. - * Actual type of mode is enum audio_mode_t defined in <system/audio.h>. */ - int (*set_mode)(struct audio_hw_device *dev, int mode); + int (*set_mode)(struct audio_hw_device *dev, audio_mode_t mode); /* mic mute */ int (*set_mic_mute)(struct audio_hw_device *dev, bool state); |