1e41f4b71Sopenharmony_ci# Multimedia Subsystem Changelog 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci## cl.multimedia.1 getDevices Changed 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci**Access Level** 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ciPublic 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Reason for Change** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci**getDevices** returns a device with an earpiece only when the device is in a call. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Change Impact** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciWhen **DeviceFlag** is set to **OUTPUT_DEVICES_FLAG** or **ALL_DEVICES_FLAG**, the return value contains a device with an earpiece even when the device is not in a call. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci**Change Since** 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.1 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci**Key API/Component Changes** 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ciBefore change: 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_cigetDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void; 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_cigetDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors>; 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ciWhen **DeviceFlag** is set to **OUTPUT_DEVICES_FLAG** or **ALL_DEVICES_FLAG**, the return value contains a device with an earpiece only in the call scenario. 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ciAfter change: 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_cigetDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void; 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_cigetDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors>; 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ciWhen **DeviceFlag** is set to **OUTPUT_DEVICES_FLAG** or **ALL_DEVICES_FLAG**, the return value contains a device with an earpiece even not in the call scenario. 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_ci**Adaptation Guide** 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ciAdd the logic for determining whether a device contains an earpiece in your code. 42