Diff for /qemu/hw/pcspk.c between versions 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2018/04/24 16:52:46 version 1.1.1.5, 2018/04/24 17:23:50
Line 96  static void pcspk_callback(void *opaque, Line 96  static void pcspk_callback(void *opaque,
     }      }
 }  }
   
 int pcspk_audio_init(AudioState *audio, qemu_irq *pic)  int pcspk_audio_init(qemu_irq *pic)
 {  {
     PCSpkState *s = &pcspk_state;      PCSpkState *s = &pcspk_state;
     struct audsettings as = {PCSPK_SAMPLE_RATE, 1, AUD_FMT_U8, 0};      struct audsettings as = {PCSPK_SAMPLE_RATE, 1, AUD_FMT_U8, 0};
   
     if (!audio) {      AUD_register_card(s_spk, &s->card);
         AUD_log(s_spk, "No audio state\n");  
         return -1;  
     }  
     AUD_register_card(audio, s_spk, &s->card);  
   
     s->voice = AUD_open_out(&s->card, s->voice, s_spk, s, pcspk_callback, &as);      s->voice = AUD_open_out(&s->card, s->voice, s_spk, s, pcspk_callback, &as);
     if (!s->voice) {      if (!s->voice) {

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5


unix.superglobalmegacorp.com