By default, we try to open card 0 devive 0 to play dummy audio which in
turn enables the amplifier IC clocks for us.
However, in some cases card 0 device 0 is already used when trying to
enable the amplifier - catch this case and avoid a watchdog bite.
Change-Id: I8eb5dc39fd289d0883df1bf71c31024cc3fbe358
pcm = pcm_open(0, 0, PCM_OUT | PCM_MONOTONIC, &config);
if (!pcm || !pcm_is_ready(pcm)) {
ALOGE("pcm_open failed: %s", pcm_get_error(pcm));
- if (pcm) {
+ if (pcm && errno != EBUSY) {
goto err_close_pcm;
}
goto exit;