aboutsummaryrefslogtreecommitdiffstats
path: root/audio/audio_hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/audio_hw.c')
-rw-r--r--audio/audio_hw.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 377c5fb..2f9b6b2 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -910,7 +910,7 @@ static void put_echo_reference(struct espresso_audio_device *adev,
}
static struct echo_reference_itfe *get_echo_reference(struct espresso_audio_device *adev,
- audio_format_t format,
+ audio_format_t format __unused,
uint32_t channel_count,
uint32_t sampling_rate)
{
@@ -971,12 +971,12 @@ static int get_playback_delay(struct espresso_stream_out *out,
return 0;
}
-static uint32_t out_get_sample_rate(const struct audio_stream *stream)
+static uint32_t out_get_sample_rate(const struct audio_stream *stream __unused)
{
return DEFAULT_OUT_SAMPLING_RATE;
}
-static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate)
+static int out_set_sample_rate(struct audio_stream *stream __unused, uint32_t rate __unused)
{
return 0;
}
@@ -1015,12 +1015,12 @@ static audio_channel_mask_t out_get_channels(const struct audio_stream *stream)
return out->channel_mask;
}
-static audio_format_t out_get_format(const struct audio_stream *stream)
+static audio_format_t out_get_format(const struct audio_stream *stream __unused)
{
return AUDIO_FORMAT_PCM_16_BIT;
}
-static int out_set_format(struct audio_stream *stream, audio_format_t format)
+static int out_set_format(struct audio_stream *stream __unused, audio_format_t format __unused)
{
return 0;
}
@@ -1083,7 +1083,7 @@ static int out_standby(struct audio_stream *stream)
return status;
}
-static int out_dump(const struct audio_stream *stream, int fd)
+static int out_dump(const struct audio_stream *stream __unused, int fd __unused)
{
return 0;
}
@@ -1217,8 +1217,8 @@ static uint32_t out_get_latency_deep_buffer(const struct audio_stream_out *strea
pcm_config_mm.rate;
}
-static int out_set_volume(struct audio_stream_out *stream, float left,
- float right)
+static int out_set_volume(struct audio_stream_out *stream __unused, float left __unused,
+ float right __unused)
{
return -ENOSYS;
}
@@ -1407,18 +1407,18 @@ exit:
return bytes;
}
-static int out_get_render_position(const struct audio_stream_out *stream,
- uint32_t *dsp_frames)
+static int out_get_render_position(const struct audio_stream_out *stream __unused,
+ uint32_t *dsp_frames __unused)
{
return -EINVAL;
}
-static int out_add_audio_effect(const struct audio_stream *stream, effect_handle_t effect)
+static int out_add_audio_effect(const struct audio_stream *stream __unused, effect_handle_t effect __unused)
{
return 0;
}
-static int out_remove_audio_effect(const struct audio_stream *stream, effect_handle_t effect)
+static int out_remove_audio_effect(const struct audio_stream *stream __unused, effect_handle_t effect __unused)
{
return 0;
}
@@ -1493,7 +1493,7 @@ static uint32_t in_get_sample_rate(const struct audio_stream *stream)
return in->requested_rate;
}
-static int in_set_sample_rate(struct audio_stream *stream, uint32_t rate)
+static int in_set_sample_rate(struct audio_stream *stream __unused, uint32_t rate __unused)
{
return 0;
}
@@ -1514,12 +1514,12 @@ static audio_channel_mask_t in_get_channels(const struct audio_stream *stream)
return AUDIO_CHANNEL_IN_STEREO;
}
-static audio_format_t in_get_format(const struct audio_stream *stream)
+static audio_format_t in_get_format(const struct audio_stream *stream __unused)
{
return AUDIO_FORMAT_PCM_16_BIT;
}
-static int in_set_format(struct audio_stream *stream, audio_format_t format)
+static int in_set_format(struct audio_stream *stream __unused, audio_format_t format __unused)
{
return 0;
}
@@ -1564,7 +1564,7 @@ static int in_standby(struct audio_stream *stream)
return status;
}
-static int in_dump(const struct audio_stream *stream, int fd)
+static int in_dump(const struct audio_stream *stream __unused, int fd __unused)
{
return 0;
}
@@ -1615,13 +1615,13 @@ static int in_set_parameters(struct audio_stream *stream, const char *kvpairs)
return ret;
}
-static char * in_get_parameters(const struct audio_stream *stream,
- const char *keys)
+static char * in_get_parameters(const struct audio_stream *stream __unused,
+ const char *keys __unused)
{
return strdup("");
}
-static int in_set_gain(struct audio_stream_in *stream, float gain)
+static int in_set_gain(struct audio_stream_in *stream __unused, float gain __unused)
{
return 0;
}
@@ -2052,7 +2052,7 @@ exit:
return bytes;
}
-static uint32_t in_get_input_frames_lost(struct audio_stream_in *stream)
+static uint32_t in_get_input_frames_lost(struct audio_stream_in *stream __unused)
{
return 0;
}
@@ -2105,7 +2105,7 @@ static int in_configure_reverse(struct espresso_stream_in *in)
#define MAX_NUM_CHANNEL_CONFIGS 10
-static void in_read_audio_effect_channel_configs(struct espresso_stream_in *in,
+static void in_read_audio_effect_channel_configs(struct espresso_stream_in *in __unused,
struct effect_info_s *effect_info)
{
/* size and format of the cmd are defined in hardware/audio_effect.h */
@@ -2441,9 +2441,9 @@ exit:
}
static int adev_open_output_stream(struct audio_hw_device *dev,
- audio_io_handle_t handle,
- audio_devices_t devices,
- audio_output_flags_t flags,
+ audio_io_handle_t handle __unused,
+ audio_devices_t devices __unused,
+ audio_output_flags_t flags __unused,
struct audio_config *config,
struct audio_stream_out **stream_out)
{
@@ -2614,13 +2614,13 @@ static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs)
return ret;
}
-static char * adev_get_parameters(const struct audio_hw_device *dev,
- const char *keys)
+static char * adev_get_parameters(const struct audio_hw_device *dev __unused,
+ const char *keys __unused)
{
return strdup("");
}
-static int adev_init_check(const struct audio_hw_device *dev)
+static int adev_init_check(const struct audio_hw_device *dev __unused)
{
return 0;
}
@@ -2637,7 +2637,7 @@ static int adev_set_voice_volume(struct audio_hw_device *dev, float volume)
return 0;
}
-static int adev_set_master_volume(struct audio_hw_device *dev, float volume)
+static int adev_set_master_volume(struct audio_hw_device *dev __unused, float volume __unused)
{
return -ENOSYS;
}
@@ -2674,7 +2674,7 @@ static int adev_get_mic_mute(const struct audio_hw_device *dev, bool *state)
return 0;
}
-static size_t adev_get_input_buffer_size(const struct audio_hw_device *dev,
+static size_t adev_get_input_buffer_size(const struct audio_hw_device *dev __unused,
const struct audio_config *config)
{
size_t size;
@@ -2686,7 +2686,7 @@ static size_t adev_get_input_buffer_size(const struct audio_hw_device *dev,
}
static int adev_open_input_stream(struct audio_hw_device *dev,
- audio_io_handle_t handle,
+ audio_io_handle_t handle __unused,
audio_devices_t devices,
struct audio_config *config,
struct audio_stream_in **stream_in)
@@ -2769,7 +2769,7 @@ err:
return ret;
}
-static void adev_close_input_stream(struct audio_hw_device *dev,
+static void adev_close_input_stream(struct audio_hw_device *dev __unused,
struct audio_stream_in *stream)
{
struct espresso_stream_in *in = (struct espresso_stream_in *)stream;
@@ -2796,7 +2796,7 @@ static void adev_close_input_stream(struct audio_hw_device *dev,
return;
}
-static int adev_dump(const audio_hw_device_t *device, int fd)
+static int adev_dump(const audio_hw_device_t *device __unused, int fd __unused)
{
return 0;
}