1# Multimedia Subsystem Changelog 2 3## cl.multimedia.1 getDevices Changed 4 5**Access Level** 6 7Public 8 9**Reason for Change** 10 11**getDevices** returns a device with an earpiece only when the device is in a call. 12 13**Change Impact** 14 15When **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. 16 17**Change Since** 18 19OpenHarmony SDK 4.1.5.1 20 21**Key API/Component Changes** 22 23Before change: 24 25getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void; 26 27getDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors>; 28 29When **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. 30 31After change: 32 33getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void; 34 35getDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors>; 36 37When **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. 38 39**Adaptation Guide** 40 41Add the logic for determining whether a device contains an earpiece in your code. 42