Merge "AudioSystem: no error log for virtual source conversion to stream" am: 0287b5bfb8 am: bc63ac7941 am: fc02f71bf1

Change-Id: Ie5697aa724095ecf2dedaefa4d85e99cebf1e05a
gugelfrei
Automerger Merge Worker 5 years ago
commit 7c3cc27c45

@ -1491,7 +1491,14 @@ audio_stream_type_t AudioSystem::attributesToStreamType(const audio_attributes_t
}
}
}
ALOGE("invalid attributes %s when converting to stream", toString(attr).c_str());
switch (attr.usage) {
case AUDIO_USAGE_VIRTUAL_SOURCE:
// virtual source is not expected to have an associated product strategy
break;
default:
ALOGE("invalid attributes %s when converting to stream", toString(attr).c_str());
break;
}
return AUDIO_STREAM_MUSIC;
}

Loading…
Cancel
Save