summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/audio_hw.c62
1 files changed, 31 insertions, 31 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c
index 96182f1..7635c6f 100644
--- a/audio/audio_hw.c
+++ b/audio/audio_hw.c
@@ -1581,7 +1581,7 @@ static void put_echo_reference(struct tuna_audio_device *adev,
}
static struct echo_reference_itfe *get_echo_reference(struct tuna_audio_device *adev,
- audio_format_t format,
+ audio_format_t format __unused,
uint32_t channel_count,
uint32_t sampling_rate)
{
@@ -1642,7 +1642,7 @@ static int get_playback_delay(struct tuna_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;
}
@@ -1654,7 +1654,7 @@ static uint32_t out_get_sample_rate_hdmi(const struct audio_stream *stream)
return out->config[PCM_HDMI].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;
}
@@ -1698,12 +1698,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;
}
@@ -1772,7 +1772,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;
}
@@ -1913,14 +1913,14 @@ static uint32_t out_get_latency_hdmi(const struct audio_stream_out *stream)
return (HDMI_MULTI_PERIOD_SIZE * HDMI_MULTI_PERIOD_COUNT * 1000) / out->config[PCM_HDMI].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;
}
static int out_set_volume_hdmi(struct audio_stream_out *stream, float left,
- float right)
+ float right __unused)
{
struct tuna_stream_out *out = (struct tuna_stream_out *)stream;
@@ -2161,18 +2161,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;
}
@@ -2247,7 +2247,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;
}
@@ -2268,12 +2268,12 @@ static audio_channel_mask_t in_get_channels(const struct audio_stream *stream)
return in->main_channels;
}
-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;
}
@@ -2318,7 +2318,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;
}
@@ -2369,13 +2369,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;
}
@@ -2806,7 +2806,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;
}
@@ -2859,7 +2859,7 @@ static int in_configure_reverse(struct tuna_stream_in *in)
#define MAX_NUM_CHANNEL_CONFIGS 10
-static void in_read_audio_effect_channel_configs(struct tuna_stream_in *in,
+static void in_read_audio_effect_channel_configs(struct tuna_stream_in *in __unused,
struct effect_info_s *effect_info)
{
/* size and format of the cmd are defined in hardware/audio_effect.h */
@@ -3221,7 +3221,7 @@ static int out_read_hdmi_channel_masks(struct tuna_stream_out *out) {
}
static int adev_open_output_stream(struct audio_hw_device *dev,
- audio_io_handle_t handle,
+ audio_io_handle_t handle __unused,
audio_devices_t devices,
audio_output_flags_t flags,
struct audio_config *config,
@@ -3416,13 +3416,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;
}
@@ -3441,7 +3441,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;
}
@@ -3478,7 +3478,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;
@@ -3490,7 +3490,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,
@@ -3569,7 +3569,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 tuna_stream_in *in = (struct tuna_stream_in *)stream;
@@ -3596,7 +3596,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;
}