summaryrefslogtreecommitdiffstats
path: root/include/media/IAudioPolicyService.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-01-23 13:58:49 -0800
committerGlenn Kasten <gkasten@google.com>2012-01-26 16:50:19 -0800
commiteba51fb3a361f67a6a64d5a16eba6084fe27d60e (patch)
tree2d3dc41818d33d596e66486dcf509086b9dde1e0 /include/media/IAudioPolicyService.h
parent80a0d2de0a7db5cdcaf40fe33b14523b65d19423 (diff)
downloadframeworks_av-eba51fb3a361f67a6a64d5a16eba6084fe27d60e.zip
frameworks_av-eba51fb3a361f67a6a64d5a16eba6084fe27d60e.tar.gz
frameworks_av-eba51fb3a361f67a6a64d5a16eba6084fe27d60e.tar.bz2
Use audio_source_t consistently
Was a mix of audio_source_t, uint8_t, and int. Related fixes: - fix comments in MediaRecorder.java - AudioPolicyService server side was not checking source parameter at all, so if the client wrapper was bypassed, invalid values could be passed into audio HAL - JNI android_media_AudioRecord_setup was checking source for positive values, but not negative values. This test is redundant, since already checked at Java and now checked by AudioPolicyService also, but might as well make it correct. Change-Id: Ie5e25d646dcd59a86d7985aa46cfcb4a1ba64a4a
Diffstat (limited to 'include/media/IAudioPolicyService.h')
-rw-r--r--include/media/IAudioPolicyService.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/IAudioPolicyService.h b/include/media/IAudioPolicyService.h
index 07d17c5..4d88297 100644
--- a/include/media/IAudioPolicyService.h
+++ b/include/media/IAudioPolicyService.h
@@ -60,7 +60,7 @@ public:
audio_stream_type_t stream,
int session = 0) = 0;
virtual void releaseOutput(audio_io_handle_t output) = 0;
- virtual audio_io_handle_t getInput(int inputSource,
+ virtual audio_io_handle_t getInput(audio_source_t inputSource,
uint32_t samplingRate = 0,
audio_format_t format = AUDIO_FORMAT_DEFAULT,
uint32_t channels = 0,