Given:
The sound level that can hurt the human ear is 120 dB. Then, the intensity I is 1 W/m2.
Audio output of the small speaker P = 2 W
Let the closest distance be x.
We have:
Hence, the closest distance of the human ear from the small speaker is 40 cm.