audio: remove W/A codes for winwaveaudio
authorbk0121.shin <bk0121.shin@samsung.com>
Thu, 29 Oct 2015 07:53:24 +0000 (16:53 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 30 Oct 2015 04:16:33 +0000 (13:16 +0900)
When sound is played without connecting of speaker on Windows,
because winwaveaudio made process lock-up, the W/A were applied.
However, qemu of tizen_3.0 does not support winwaveaudio,
but, dsoundaudio for Windows host.
And, as audio codes of qemu are updated, the W/A is no more valid code.
Therefore, the W/A codes are removed.

Change-Id: I63f4d73646f09b2af41238ce34102667f05f1d5e
Signed-off-by: bk0121.shin <bk0121.shin@samsung.com>
audio/audio.c

index ad8804a..4636a88 100644 (file)
 
 #define SW_NAME(sw) (sw)->name ? (sw)->name : "unknown"
 
-
-#ifdef CONFIG_MARU
-#include "../tizen/src/debug_ch.h"
-MULTI_DEBUG_CHANNEL(tizen, qemu_audio);
-#endif
-
 /* Order of CONFIG_AUDIO_DRIVERS is import.
    The 1st one is the one used by default, that is the reason
     that we generate the list.
@@ -1862,31 +1856,6 @@ static void audio_init (void)
         }
     }
 
-#ifdef CONFIG_MARU
-// Try to avoid certain wave out locking action in recent Windows...
-// If wave out is locked (because nothing is wired to output jack, ...),
-// QEMU can find voice out device, but open will failed. And it will cause guest audio lock-up.
-// So, we test whether opening is success or not.
-// It can not prevent lock-up caused by runtime voice out lock.
-// To prevent it, QEMU audio backend structure must be changed.
-// We should do it, but now we used simple fix temporarily.
-    HWVoiceOut* hw = audio_calloc(AUDIO_FUNC, 1, s->drv->voice_size_out);
-    if (!hw) {
-        dolog ("Can not allocate voice `%s' size %d\n",
-               s->drv->name, s->drv->voice_size_out);
-    }
-    if(s->drv->pcm_ops->init_out(hw, &conf.fixed_out.settings, s->drv)) {
-        INFO("Host audio out [%s] is malfunction. Change to noaudio driver\n",
-                s->drv->name);
-        done = 0;
-    }
-    else {
-        INFO("Host audio out [%s] is normal.\n", s->drv->name);
-        s->drv->pcm_ops->fini_out(hw);
-    }
-    g_free(hw);
-#endif
-
     if (!done) {
         done = !audio_driver_init (s, &no_audio_driver);
         if (!done) {