diff options
author | codeworkx <daniel.hillenbrand@codeworkx.de> | 2011-12-30 15:59:44 +0100 |
---|---|---|
committer | codeworkx <daniel.hillenbrand@codeworkx.de> | 2011-12-30 15:59:44 +0100 |
commit | aa585a5d49347e43d90aa27515457f507504cbcf (patch) | |
tree | 26c184d483926463d890666c68a7171d6aaf6a9e /media/libmedia/AudioSystem.cpp | |
parent | d56520a3d738340248d2c8c4fb1f565ac3075f8f (diff) | |
download | frameworks_base-aa585a5d49347e43d90aa27515457f507504cbcf.zip frameworks_base-aa585a5d49347e43d90aa27515457f507504cbcf.tar.gz frameworks_base-aa585a5d49347e43d90aa27515457f507504cbcf.tar.bz2 |
samsung: add support for tvout and yamahaplayer services
Change-Id: I653f9876b7fb83734abf3a0b9b9b5af1920b8112
Diffstat (limited to 'media/libmedia/AudioSystem.cpp')
-rw-r--r-- | media/libmedia/AudioSystem.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp index 7d28b6f..99cc4e0 100644 --- a/media/libmedia/AudioSystem.cpp +++ b/media/libmedia/AudioSystem.cpp @@ -810,5 +810,25 @@ extern "C" bool _ZN7android11AudioSystem15isLowVisibilityENS0_11stream_typeE(aud #endif // AUDIO_LEGACY +#ifdef YAMAHAPLAYER +extern "C" bool _ZN7android11AudioSystem17isSeparatedStreamE19audio_stream_type_t(audio_stream_type_t stream) +{ + LOGD("android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!"); + LOGD("audio_stream_type_t: %d", stream); + +/* this is the correct implementation, but breaks headset volume rocker. + if (stream == 3 || stream == 9 || stream == 10 + || stream == 12 || stream == 13 || stream == 14) + { + LOGD("isSeparatedStream: true"); + return true; + } +*/ + + LOGD("isSeparatedStream: false"); + return false; +} +#endif // YAMAHAPLAYER + }; // namespace android |