diff options
author | Eric Laurent <elaurent@google.com> | 2011-07-11 12:21:56 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2011-07-11 12:21:56 -0700 |
commit | a9042f97c8b3da1bd6e8e8725dafe62946cdd226 (patch) | |
tree | 265fb7f5c7181f99d6c6901f302ab1dfd80bd568 /audio | |
parent | 43dfd2a2397978ceb70e8c91ac58347534a3f38e (diff) | |
download | device_samsung_tuna-a9042f97c8b3da1bd6e8e8725dafe62946cdd226.zip device_samsung_tuna-a9042f97c8b3da1bd6e8e8725dafe62946cdd226.tar.gz device_samsung_tuna-a9042f97c8b3da1bd6e8e8725dafe62946cdd226.tar.bz2 |
Audio HAL: added interface for audio preprocessing
Change-Id: Ic784c7fa0e82f6ef398548741b603b55d902ae5c
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio_hw.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index fc22d8c..90c7d3f 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -667,6 +667,16 @@ static int out_get_render_position(const struct audio_stream_out *stream, return -EINVAL; } +static int out_add_audio_effect(const struct audio_stream *stream, effect_handle_t effect) +{ + return 0; +} + +static int out_remove_audio_effect(const struct audio_stream *stream, effect_handle_t effect) +{ + return 0; +} + /** audio_stream_in implementation **/ static int start_input_stream(struct tuna_stream_in *in) { @@ -819,6 +829,16 @@ static uint32_t in_get_input_frames_lost(struct audio_stream_in *stream) return 0; } +static int in_add_audio_effect(const struct audio_stream *stream, effect_handle_t effect) +{ + return 0; +} + +static int in_remove_audio_effect(const struct audio_stream *stream, effect_handle_t effect) +{ + return 0; +} + static int adev_open_output_stream(struct audio_hw_device *dev, uint32_t devices, int *format, @@ -843,6 +863,8 @@ static int adev_open_output_stream(struct audio_hw_device *dev, out->stream.common.dump = out_dump; out->stream.common.set_parameters = out_set_parameters; out->stream.common.get_parameters = out_get_parameters; + out->stream.common.add_audio_effect = out_add_audio_effect; + out->stream.common.remove_audio_effect = out_remove_audio_effect; out->stream.get_latency = out_get_latency; out->stream.set_volume = out_set_volume; out->stream.write = out_write; @@ -974,6 +996,8 @@ static int adev_open_input_stream(struct audio_hw_device *dev, uint32_t devices, in->stream.common.dump = in_dump; in->stream.common.set_parameters = in_set_parameters; in->stream.common.get_parameters = in_get_parameters; + in->stream.common.add_audio_effect = in_add_audio_effect; + in->stream.common.remove_audio_effect = in_remove_audio_effect; in->stream.set_gain = in_set_gain; in->stream.read = in_read; in->stream.get_input_frames_lost = in_get_input_frames_lost; |