1 # Multimedia Subsystem Changelog
2 
3 ## cl.multimedia.1 getDevices Changed
4 
5 **Access Level**
6 
7 Public
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 
15 When **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 
19 OpenHarmony SDK 4.1.5.1
20 
21 **Key API/Component Changes**
22 
23 Before change:
24 
25 getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void;
26 
27 getDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors>;
28 
29 When **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 
31 After change:
32 
33 getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback<AudioDeviceDescriptors>): void;
34 
35 getDevices(deviceFlag: DeviceFlag): Promise<AudioDeviceDescriptors>;
36 
37 When **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 
41 Add the logic for determining whether a device contains an earpiece in your code.
42