summaryrefslogtreecommitdiffstats
path: root/include/hardware/audio.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-01-12 14:55:57 -0800
committerGlenn Kasten <gkasten@google.com>2012-01-12 14:55:57 -0800
commitfe79eb3f06967f863a637e546eb4421d0da2283b (patch)
tree384a707ce5a4fd4a7c72f10b91f6255b72d0ee12 /include/hardware/audio.h
parent60d056bf2926357260592409dee31374fa8e301b (diff)
downloadhardware_libhardware-fe79eb3f06967f863a637e546eb4421d0da2283b.zip
hardware_libhardware-fe79eb3f06967f863a637e546eb4421d0da2283b.tar.gz
hardware_libhardware-fe79eb3f06967f863a637e546eb4421d0da2283b.tar.bz2
Use audio_format_t consistently
Was sometimes int or uint32_t Change-Id: Ib3d82f5aefeda371c0439e43e72737a54882f519
Diffstat (limited to 'include/hardware/audio.h')
-rw-r--r--include/hardware/audio.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/hardware/audio.h b/include/hardware/audio.h
index ed97728..ae82c3b 100644
--- a/include/hardware/audio.h
+++ b/include/hardware/audio.h
@@ -102,12 +102,12 @@ struct audio_stream {
/**
* audio format - eg. AUDIO_FORMAT_PCM_16_BIT
*/
- int (*get_format)(const struct audio_stream *stream);
+ audio_format_t (*get_format)(const struct audio_stream *stream);
/* currently unused - use set_parameters with key
* AUDIO_PARAMETER_STREAM_FORMAT
*/
- int (*set_format)(struct audio_stream *stream, int format);
+ int (*set_format)(struct audio_stream *stream, audio_format_t format);
/**
* Put the audio hardware input/output into standby mode.
@@ -297,12 +297,12 @@ struct audio_hw_device {
* 0 if one of the parameters is not supported
*/
size_t (*get_input_buffer_size)(const struct audio_hw_device *dev,
- uint32_t sample_rate, int format,
+ uint32_t sample_rate, audio_format_t format,
int channel_count);
/** This method creates and opens the audio hardware output stream */
int (*open_output_stream)(struct audio_hw_device *dev, uint32_t devices,
- int *format, uint32_t *channels,
+ audio_format_t *format, uint32_t *channels,
uint32_t *sample_rate,
struct audio_stream_out **out);
@@ -311,7 +311,7 @@ struct audio_hw_device {
/** This method creates and opens the audio hardware input stream */
int (*open_input_stream)(struct audio_hw_device *dev, uint32_t devices,
- int *format, uint32_t *channels,
+ audio_format_t *format, uint32_t *channels,
uint32_t *sample_rate,
audio_in_acoustics_t acoustics,
struct audio_stream_in **stream_in);