@@ -405,9 +405,9 @@ void AudioSystem::AudioFlingerClient::binderDied(const wp<IBinder>& who) {
405405}
406406
407407void AudioSystem::AudioFlingerClient::ioConfigChanged (int event, audio_io_handle_t ioHandle,
408- void *param2) {
408+ const void *param2) {
409409 ALOGV (" ioConfigChanged() event %d" , event);
410- OutputDescriptor *desc;
410+ const OutputDescriptor *desc;
411411 audio_stream_type_t stream;
412412
413413 if (ioHandle == 0 ) return ;
@@ -417,7 +417,7 @@ void AudioSystem::AudioFlingerClient::ioConfigChanged(int event, audio_io_handle
417417 switch (event) {
418418 case STREAM_CONFIG_CHANGED:
419419 if (param2 == NULL ) break ;
420- stream = *(audio_stream_type_t *)param2;
420+ stream = *(const audio_stream_type_t *)param2;
421421 ALOGV (" ioConfigChanged() STREAM_CONFIG_CHANGED stream %d, output %d" , stream, ioHandle);
422422 if (gStreamOutputMap .indexOfKey (stream) >= 0 ) {
423423 gStreamOutputMap .replaceValueFor (stream, ioHandle);
@@ -429,7 +429,7 @@ void AudioSystem::AudioFlingerClient::ioConfigChanged(int event, audio_io_handle
429429 break ;
430430 }
431431 if (param2 == NULL ) break ;
432- desc = (OutputDescriptor *)param2;
432+ desc = (const OutputDescriptor *)param2;
433433
434434 OutputDescriptor *outputDesc = new OutputDescriptor (*desc);
435435 gOutputs .add (ioHandle, outputDesc);
@@ -458,7 +458,7 @@ void AudioSystem::AudioFlingerClient::ioConfigChanged(int event, audio_io_handle
458458 break ;
459459 }
460460 if (param2 == NULL ) break ;
461- desc = (OutputDescriptor *)param2;
461+ desc = (const OutputDescriptor *)param2;
462462
463463 ALOGV (" ioConfigChanged() new config for output %d samplingRate %d, format %d channels %d frameCount %d latency %d" ,
464464 ioHandle, desc->samplingRate , desc->format ,
0 commit comments