Loading media/libmedia/TypeConverter.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,8 @@ const OutputDeviceConverter::Table OutputDeviceConverter::mTable[] = { MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_OUT_IP), MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_OUT_BUS), MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_OUT_DEFAULT), // STUB must be after DEFAULT, so the latter is picked up by toString first. MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_OUT_STUB), TERMINATOR }; Loading Loading @@ -86,6 +88,8 @@ const InputDeviceConverter::Table InputDeviceConverter::mTable[] = { MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_IN_IP), MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_IN_BUS), MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_IN_DEFAULT), // STUB must be after DEFAULT, so the latter is picked up by toString first. MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_IN_STUB), TERMINATOR }; Loading services/audiopolicy/common/include/policy.h +0 −10 Original line number Diff line number Diff line Loading @@ -46,16 +46,6 @@ static const audio_format_t gDynamicFormat = AUDIO_FORMAT_DEFAULT; #define APM_AUDIO_DEVICE_IN_MATCH_ADDRESS_ALL (AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_BUS) /** * Stub audio output device. Used in policy configuration file on platforms without audio outputs. * This alias value to AUDIO_DEVICE_OUT_DEFAULT is only used in the audio policy context. */ #define AUDIO_DEVICE_OUT_STUB AUDIO_DEVICE_OUT_DEFAULT /** * Stub audio input device. Used in policy configuration file on platforms without audio inputs. * This alias value to AUDIO_DEVICE_IN_DEFAULT is only used in the audio policy context. */ #define AUDIO_DEVICE_IN_STUB AUDIO_DEVICE_IN_DEFAULT /** * Alias to AUDIO_DEVICE_OUT_DEFAULT defined for clarification when this value is used by volume * control APIs (e.g setStreamVolumeIndex(). Loading Loading
media/libmedia/TypeConverter.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,8 @@ const OutputDeviceConverter::Table OutputDeviceConverter::mTable[] = { MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_OUT_IP), MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_OUT_BUS), MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_OUT_DEFAULT), // STUB must be after DEFAULT, so the latter is picked up by toString first. MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_OUT_STUB), TERMINATOR }; Loading Loading @@ -86,6 +88,8 @@ const InputDeviceConverter::Table InputDeviceConverter::mTable[] = { MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_IN_IP), MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_IN_BUS), MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_IN_DEFAULT), // STUB must be after DEFAULT, so the latter is picked up by toString first. MAKE_STRING_FROM_ENUM(AUDIO_DEVICE_IN_STUB), TERMINATOR }; Loading
services/audiopolicy/common/include/policy.h +0 −10 Original line number Diff line number Diff line Loading @@ -46,16 +46,6 @@ static const audio_format_t gDynamicFormat = AUDIO_FORMAT_DEFAULT; #define APM_AUDIO_DEVICE_IN_MATCH_ADDRESS_ALL (AUDIO_DEVICE_IN_REMOTE_SUBMIX|AUDIO_DEVICE_IN_BUS) /** * Stub audio output device. Used in policy configuration file on platforms without audio outputs. * This alias value to AUDIO_DEVICE_OUT_DEFAULT is only used in the audio policy context. */ #define AUDIO_DEVICE_OUT_STUB AUDIO_DEVICE_OUT_DEFAULT /** * Stub audio input device. Used in policy configuration file on platforms without audio inputs. * This alias value to AUDIO_DEVICE_IN_DEFAULT is only used in the audio policy context. */ #define AUDIO_DEVICE_IN_STUB AUDIO_DEVICE_IN_DEFAULT /** * Alias to AUDIO_DEVICE_OUT_DEFAULT defined for clarification when this value is used by volume * control APIs (e.g setStreamVolumeIndex(). Loading