We have made a device using imx6solo and wm8958 codec. everything working fine but,during voice call we are facing some issues, like whenever we want to switch between Earpiece to LoudSpeaker/Headset there is a delay of 8-9 seconds to switch to appropriate mode. and in logcat we are getting like this
W/AudioFlinger( 2098): write blocked for 9997 msecs, 3 delayed writes, thread 0x159f878
we are suspecting because of above AudioFlinger, creating a delay, if anybody knows about it kindly help us in solving this issue.