All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1816052] [NEW] qemu system emulator fails to start if no sound card is present on host
@ 2019-02-15 14:44 Daniel Berrange
  2019-02-15 19:26 ` [Qemu-devel] [Bug 1816052] " Kris M
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Daniel Berrange @ 2019-02-15 14:44 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

A plain build from git master at
81dbcfa9e1d8bab3f7c4cc923c0b40cd666f374f on Fedora 29 x86_64 host, with
no options passed to configure.

Trying to launch QEMU on a  host with no audio card present:

# ls /dev/snd/
seq  timer

It will fail to initialize alsa and abort startup:

# qemu-system-x86_64 -cdrom Fedora-Workstation-Live-x86_64-29-1.2.iso  -m 4000 -vnc 0.0.0.0:1 
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
init fail
audio: Failed to create voice `pcspk'
qemu-system-x86_64: Initialization of device isa-pcspk failed: Initializing audio voice failed


git bisect blames this change:


  commit 6a48541873f14b597630283f8f5397674ad82ea9 (HEAD, refs/bisect/bad)
  Author: Gerd Hoffmann <kraxel@redhat.com>
  Date:   Thu Jan 24 12:20:55 2019 +0100

    audio: probe audio drivers by default
    
    Add the drivers listed in audio_possible_drivers to audio_drv_list,
    using the try-* variants.  That way the probable drivers are compiled by
    default if possible.
    
    Additioal tweaks:
      linux: reorder to: pa alsa sdl oss.
      *bsd: drop pa.
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Message-id: 20190124112055.547-7-kraxel@redhat.com


This changed our probe order:

   Linux)
  -  audio_drv_list="oss"
  +  audio_drv_list="try-pa try-alsa try-sdl oss"

After some debugging I can see that 'audio_init' successfully
initializes the alsa driver.

When the pcspk devices goes to AUD_open_out though, the alsa driver
fails spewing the above text to stderr and thus causes QEMU to fail.

This looks very much like the ALSA driver in QEMU is broken -
audio_init() should not have succeeded unless the ALSA driver knew it
could later succesfully honour AUD_open_out.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1816052

Title:
  qemu system emulator fails to start if no sound card is present on
  host

Status in QEMU:
  New

Bug description:
  A plain build from git master at
  81dbcfa9e1d8bab3f7c4cc923c0b40cd666f374f on Fedora 29 x86_64 host,
  with no options passed to configure.

  Trying to launch QEMU on a  host with no audio card present:

  # ls /dev/snd/
  seq  timer

  It will fail to initialize alsa and abort startup:

  # qemu-system-x86_64 -cdrom Fedora-Workstation-Live-x86_64-29-1.2.iso  -m 4000 -vnc 0.0.0.0:1 
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  init fail
  audio: Failed to create voice `pcspk'
  qemu-system-x86_64: Initialization of device isa-pcspk failed: Initializing audio voice failed

  
  git bisect blames this change:

  
    commit 6a48541873f14b597630283f8f5397674ad82ea9 (HEAD, refs/bisect/bad)
    Author: Gerd Hoffmann <kraxel@redhat.com>
    Date:   Thu Jan 24 12:20:55 2019 +0100

      audio: probe audio drivers by default
      
      Add the drivers listed in audio_possible_drivers to audio_drv_list,
      using the try-* variants.  That way the probable drivers are compiled by
      default if possible.
      
      Additioal tweaks:
        linux: reorder to: pa alsa sdl oss.
        *bsd: drop pa.
      
      Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
      Message-id: 20190124112055.547-7-kraxel@redhat.com

  
  This changed our probe order:

     Linux)
    -  audio_drv_list="oss"
    +  audio_drv_list="try-pa try-alsa try-sdl oss"

  After some debugging I can see that 'audio_init' successfully
  initializes the alsa driver.

  When the pcspk devices goes to AUD_open_out though, the alsa driver
  fails spewing the above text to stderr and thus causes QEMU to fail.

  This looks very much like the ALSA driver in QEMU is broken -
  audio_init() should not have succeeded unless the ALSA driver knew it
  could later succesfully honour AUD_open_out.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1816052/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1816052] Re: qemu system emulator fails to start if no sound card is present on host
  2019-02-15 14:44 [Qemu-devel] [Bug 1816052] [NEW] qemu system emulator fails to start if no sound card is present on host Daniel Berrange
@ 2019-02-15 19:26 ` Kris M
  2019-02-15 19:30 ` Kris M
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Kris M @ 2019-02-15 19:26 UTC (permalink / raw)
  To: qemu-devel

Don't know if same but just noticed "no sound" unless I unplug and
replug headphones. If I boot with no headphones plugged in I get no
sound, but if I plug in headphones I get sound. Of course, then, if I
unplug headphones I still get sound. Something about plugging/unplugging
to the headphones jack wakes things up.

ThinkPad T530-2394-3J8, i5-3380M 2.9GHz, Dual boot (BIOS/MBR): Grub,
Ubuntu 18.10 / Win7 Pro x64 . 8GB(15GB/s), Sammy 250GB SSD. Fast!

4.19.0-13 kern and previous. current: I take all updates.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1816052

Title:
  qemu system emulator fails to start if no sound card is present on
  host

Status in QEMU:
  New

Bug description:
  A plain build from git master at
  81dbcfa9e1d8bab3f7c4cc923c0b40cd666f374f on Fedora 29 x86_64 host,
  with no options passed to configure.

  Trying to launch QEMU on a  host with no audio card present:

  # ls /dev/snd/
  seq  timer

  It will fail to initialize alsa and abort startup:

  # qemu-system-x86_64 -cdrom Fedora-Workstation-Live-x86_64-29-1.2.iso  -m 4000 -vnc 0.0.0.0:1 
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  init fail
  audio: Failed to create voice `pcspk'
  qemu-system-x86_64: Initialization of device isa-pcspk failed: Initializing audio voice failed

  
  git bisect blames this change:

  
    commit 6a48541873f14b597630283f8f5397674ad82ea9 (HEAD, refs/bisect/bad)
    Author: Gerd Hoffmann <kraxel@redhat.com>
    Date:   Thu Jan 24 12:20:55 2019 +0100

      audio: probe audio drivers by default
      
      Add the drivers listed in audio_possible_drivers to audio_drv_list,
      using the try-* variants.  That way the probable drivers are compiled by
      default if possible.
      
      Additioal tweaks:
        linux: reorder to: pa alsa sdl oss.
        *bsd: drop pa.
      
      Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
      Message-id: 20190124112055.547-7-kraxel@redhat.com

  
  This changed our probe order:

     Linux)
    -  audio_drv_list="oss"
    +  audio_drv_list="try-pa try-alsa try-sdl oss"

  After some debugging I can see that 'audio_init' successfully
  initializes the alsa driver.

  When the pcspk devices goes to AUD_open_out though, the alsa driver
  fails spewing the above text to stderr and thus causes QEMU to fail.

  This looks very much like the ALSA driver in QEMU is broken -
  audio_init() should not have succeeded unless the ALSA driver knew it
  could later succesfully honour AUD_open_out.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1816052/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1816052] Re: qemu system emulator fails to start if no sound card is present on host
  2019-02-15 14:44 [Qemu-devel] [Bug 1816052] [NEW] qemu system emulator fails to start if no sound card is present on host Daniel Berrange
  2019-02-15 19:26 ` [Qemu-devel] [Bug 1816052] " Kris M
@ 2019-02-15 19:30 ` Kris M
  2019-02-15 19:45 ` Jeremy Bicha
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Kris M @ 2019-02-15 19:30 UTC (permalink / raw)
  To: qemu-devel

That was Ubuntu DD current on comment #1

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1816052

Title:
  qemu system emulator fails to start if no sound card is present on
  host

Status in QEMU:
  New

Bug description:
  A plain build from git master at
  81dbcfa9e1d8bab3f7c4cc923c0b40cd666f374f on Fedora 29 x86_64 host,
  with no options passed to configure.

  Trying to launch QEMU on a  host with no audio card present:

  # ls /dev/snd/
  seq  timer

  It will fail to initialize alsa and abort startup:

  # qemu-system-x86_64 -cdrom Fedora-Workstation-Live-x86_64-29-1.2.iso  -m 4000 -vnc 0.0.0.0:1 
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  init fail
  audio: Failed to create voice `pcspk'
  qemu-system-x86_64: Initialization of device isa-pcspk failed: Initializing audio voice failed

  
  git bisect blames this change:

  
    commit 6a48541873f14b597630283f8f5397674ad82ea9 (HEAD, refs/bisect/bad)
    Author: Gerd Hoffmann <kraxel@redhat.com>
    Date:   Thu Jan 24 12:20:55 2019 +0100

      audio: probe audio drivers by default
      
      Add the drivers listed in audio_possible_drivers to audio_drv_list,
      using the try-* variants.  That way the probable drivers are compiled by
      default if possible.
      
      Additioal tweaks:
        linux: reorder to: pa alsa sdl oss.
        *bsd: drop pa.
      
      Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
      Message-id: 20190124112055.547-7-kraxel@redhat.com

  
  This changed our probe order:

     Linux)
    -  audio_drv_list="oss"
    +  audio_drv_list="try-pa try-alsa try-sdl oss"

  After some debugging I can see that 'audio_init' successfully
  initializes the alsa driver.

  When the pcspk devices goes to AUD_open_out though, the alsa driver
  fails spewing the above text to stderr and thus causes QEMU to fail.

  This looks very much like the ALSA driver in QEMU is broken -
  audio_init() should not have succeeded unless the ALSA driver knew it
  could later succesfully honour AUD_open_out.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1816052/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1816052] Re: qemu system emulator fails to start if no sound card is present on host
  2019-02-15 14:44 [Qemu-devel] [Bug 1816052] [NEW] qemu system emulator fails to start if no sound card is present on host Daniel Berrange
  2019-02-15 19:26 ` [Qemu-devel] [Bug 1816052] " Kris M
  2019-02-15 19:30 ` Kris M
@ 2019-02-15 19:45 ` Jeremy Bicha
  2019-02-19  5:47 ` Kris M
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Jeremy Bicha @ 2019-02-15 19:45 UTC (permalink / raw)
  To: qemu-devel

Kris, your situation is completely different.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1816052

Title:
  qemu system emulator fails to start if no sound card is present on
  host

Status in QEMU:
  New

Bug description:
  A plain build from git master at
  81dbcfa9e1d8bab3f7c4cc923c0b40cd666f374f on Fedora 29 x86_64 host,
  with no options passed to configure.

  Trying to launch QEMU on a  host with no audio card present:

  # ls /dev/snd/
  seq  timer

  It will fail to initialize alsa and abort startup:

  # qemu-system-x86_64 -cdrom Fedora-Workstation-Live-x86_64-29-1.2.iso  -m 4000 -vnc 0.0.0.0:1 
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  init fail
  audio: Failed to create voice `pcspk'
  qemu-system-x86_64: Initialization of device isa-pcspk failed: Initializing audio voice failed

  
  git bisect blames this change:

  
    commit 6a48541873f14b597630283f8f5397674ad82ea9 (HEAD, refs/bisect/bad)
    Author: Gerd Hoffmann <kraxel@redhat.com>
    Date:   Thu Jan 24 12:20:55 2019 +0100

      audio: probe audio drivers by default
      
      Add the drivers listed in audio_possible_drivers to audio_drv_list,
      using the try-* variants.  That way the probable drivers are compiled by
      default if possible.
      
      Additioal tweaks:
        linux: reorder to: pa alsa sdl oss.
        *bsd: drop pa.
      
      Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
      Message-id: 20190124112055.547-7-kraxel@redhat.com

  
  This changed our probe order:

     Linux)
    -  audio_drv_list="oss"
    +  audio_drv_list="try-pa try-alsa try-sdl oss"

  After some debugging I can see that 'audio_init' successfully
  initializes the alsa driver.

  When the pcspk devices goes to AUD_open_out though, the alsa driver
  fails spewing the above text to stderr and thus causes QEMU to fail.

  This looks very much like the ALSA driver in QEMU is broken -
  audio_init() should not have succeeded unless the ALSA driver knew it
  could later succesfully honour AUD_open_out.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1816052/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1816052] Re: qemu system emulator fails to start if no sound card is present on host
  2019-02-15 14:44 [Qemu-devel] [Bug 1816052] [NEW] qemu system emulator fails to start if no sound card is present on host Daniel Berrange
                   ` (2 preceding siblings ...)
  2019-02-15 19:45 ` Jeremy Bicha
@ 2019-02-19  5:47 ` Kris M
  2019-02-19  9:02 ` Gerd Hoffmann
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 9+ messages in thread
From: Kris M @ 2019-02-19  5:47 UTC (permalink / raw)
  To: qemu-devel

I agree. Thanks. :)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1816052

Title:
  qemu system emulator fails to start if no sound card is present on
  host

Status in QEMU:
  New

Bug description:
  A plain build from git master at
  81dbcfa9e1d8bab3f7c4cc923c0b40cd666f374f on Fedora 29 x86_64 host,
  with no options passed to configure.

  Trying to launch QEMU on a  host with no audio card present:

  # ls /dev/snd/
  seq  timer

  It will fail to initialize alsa and abort startup:

  # qemu-system-x86_64 -cdrom Fedora-Workstation-Live-x86_64-29-1.2.iso  -m 4000 -vnc 0.0.0.0:1 
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  init fail
  audio: Failed to create voice `pcspk'
  qemu-system-x86_64: Initialization of device isa-pcspk failed: Initializing audio voice failed

  
  git bisect blames this change:

  
    commit 6a48541873f14b597630283f8f5397674ad82ea9 (HEAD, refs/bisect/bad)
    Author: Gerd Hoffmann <kraxel@redhat.com>
    Date:   Thu Jan 24 12:20:55 2019 +0100

      audio: probe audio drivers by default
      
      Add the drivers listed in audio_possible_drivers to audio_drv_list,
      using the try-* variants.  That way the probable drivers are compiled by
      default if possible.
      
      Additioal tweaks:
        linux: reorder to: pa alsa sdl oss.
        *bsd: drop pa.
      
      Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
      Message-id: 20190124112055.547-7-kraxel@redhat.com

  
  This changed our probe order:

     Linux)
    -  audio_drv_list="oss"
    +  audio_drv_list="try-pa try-alsa try-sdl oss"

  After some debugging I can see that 'audio_init' successfully
  initializes the alsa driver.

  When the pcspk devices goes to AUD_open_out though, the alsa driver
  fails spewing the above text to stderr and thus causes QEMU to fail.

  This looks very much like the ALSA driver in QEMU is broken -
  audio_init() should not have succeeded unless the ALSA driver knew it
  could later succesfully honour AUD_open_out.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1816052/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1816052] Re: qemu system emulator fails to start if no sound card is present on host
  2019-02-15 14:44 [Qemu-devel] [Bug 1816052] [NEW] qemu system emulator fails to start if no sound card is present on host Daniel Berrange
                   ` (3 preceding siblings ...)
  2019-02-19  5:47 ` Kris M
@ 2019-02-19  9:02 ` Gerd Hoffmann
  2019-02-25  3:14   ` Like Xu
  2019-02-26  3:27 ` Like Xu
  2019-04-24  5:18 ` Thomas Huth
  6 siblings, 1 reply; 9+ messages in thread
From: Gerd Hoffmann @ 2019-02-19  9:02 UTC (permalink / raw)
  To: qemu-devel

What happens if you remove "try-alsa" from the configure line?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1816052

Title:
  qemu system emulator fails to start if no sound card is present on
  host

Status in QEMU:
  New

Bug description:
  A plain build from git master at
  81dbcfa9e1d8bab3f7c4cc923c0b40cd666f374f on Fedora 29 x86_64 host,
  with no options passed to configure.

  Trying to launch QEMU on a  host with no audio card present:

  # ls /dev/snd/
  seq  timer

  It will fail to initialize alsa and abort startup:

  # qemu-system-x86_64 -cdrom Fedora-Workstation-Live-x86_64-29-1.2.iso  -m 4000 -vnc 0.0.0.0:1 
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  init fail
  audio: Failed to create voice `pcspk'
  qemu-system-x86_64: Initialization of device isa-pcspk failed: Initializing audio voice failed

  
  git bisect blames this change:

  
    commit 6a48541873f14b597630283f8f5397674ad82ea9 (HEAD, refs/bisect/bad)
    Author: Gerd Hoffmann <kraxel@redhat.com>
    Date:   Thu Jan 24 12:20:55 2019 +0100

      audio: probe audio drivers by default
      
      Add the drivers listed in audio_possible_drivers to audio_drv_list,
      using the try-* variants.  That way the probable drivers are compiled by
      default if possible.
      
      Additioal tweaks:
        linux: reorder to: pa alsa sdl oss.
        *bsd: drop pa.
      
      Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
      Message-id: 20190124112055.547-7-kraxel@redhat.com

  
  This changed our probe order:

     Linux)
    -  audio_drv_list="oss"
    +  audio_drv_list="try-pa try-alsa try-sdl oss"

  After some debugging I can see that 'audio_init' successfully
  initializes the alsa driver.

  When the pcspk devices goes to AUD_open_out though, the alsa driver
  fails spewing the above text to stderr and thus causes QEMU to fail.

  This looks very much like the ALSA driver in QEMU is broken -
  audio_init() should not have succeeded unless the ALSA driver knew it
  could later succesfully honour AUD_open_out.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1816052/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] [Bug 1816052] Re: qemu system emulator fails to start if no sound card is present on host
  2019-02-19  9:02 ` Gerd Hoffmann
@ 2019-02-25  3:14   ` Like Xu
  0 siblings, 0 replies; 9+ messages in thread
From: Like Xu @ 2019-02-25  3:14 UTC (permalink / raw)
  To: Bug 1816052, qemu-devel

On 2019/2/19 17:02, Gerd Hoffmann wrote:
> What happens if you remove "try-alsa" from the configure line?
> 

This issue could be fixed by passing "export QEMU_AUDIO_DRV=none" to 
shell env when alsa support form host kernel is unavailable.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1816052] Re: qemu system emulator fails to start if no sound card is present on host
  2019-02-15 14:44 [Qemu-devel] [Bug 1816052] [NEW] qemu system emulator fails to start if no sound card is present on host Daniel Berrange
                   ` (4 preceding siblings ...)
  2019-02-19  9:02 ` Gerd Hoffmann
@ 2019-02-26  3:27 ` Like Xu
  2019-04-24  5:18 ` Thomas Huth
  6 siblings, 0 replies; 9+ messages in thread
From: Like Xu @ 2019-02-26  3:27 UTC (permalink / raw)
  To: qemu-devel

I would work around this issue
by applying "export QEMU_AUDIO_DRV=none" to shell before we run the qemu command.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1816052

Title:
  qemu system emulator fails to start if no sound card is present on
  host

Status in QEMU:
  New

Bug description:
  A plain build from git master at
  81dbcfa9e1d8bab3f7c4cc923c0b40cd666f374f on Fedora 29 x86_64 host,
  with no options passed to configure.

  Trying to launch QEMU on a  host with no audio card present:

  # ls /dev/snd/
  seq  timer

  It will fail to initialize alsa and abort startup:

  # qemu-system-x86_64 -cdrom Fedora-Workstation-Live-x86_64-29-1.2.iso  -m 4000 -vnc 0.0.0.0:1 
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  init fail
  audio: Failed to create voice `pcspk'
  qemu-system-x86_64: Initialization of device isa-pcspk failed: Initializing audio voice failed

  
  git bisect blames this change:

  
    commit 6a48541873f14b597630283f8f5397674ad82ea9 (HEAD, refs/bisect/bad)
    Author: Gerd Hoffmann <kraxel@redhat.com>
    Date:   Thu Jan 24 12:20:55 2019 +0100

      audio: probe audio drivers by default
      
      Add the drivers listed in audio_possible_drivers to audio_drv_list,
      using the try-* variants.  That way the probable drivers are compiled by
      default if possible.
      
      Additioal tweaks:
        linux: reorder to: pa alsa sdl oss.
        *bsd: drop pa.
      
      Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
      Message-id: 20190124112055.547-7-kraxel@redhat.com

  
  This changed our probe order:

     Linux)
    -  audio_drv_list="oss"
    +  audio_drv_list="try-pa try-alsa try-sdl oss"

  After some debugging I can see that 'audio_init' successfully
  initializes the alsa driver.

  When the pcspk devices goes to AUD_open_out though, the alsa driver
  fails spewing the above text to stderr and thus causes QEMU to fail.

  This looks very much like the ALSA driver in QEMU is broken -
  audio_init() should not have succeeded unless the ALSA driver knew it
  could later succesfully honour AUD_open_out.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1816052/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1816052] Re: qemu system emulator fails to start if no sound card is present on host
  2019-02-15 14:44 [Qemu-devel] [Bug 1816052] [NEW] qemu system emulator fails to start if no sound card is present on host Daniel Berrange
                   ` (5 preceding siblings ...)
  2019-02-26  3:27 ` Like Xu
@ 2019-04-24  5:18 ` Thomas Huth
  6 siblings, 0 replies; 9+ messages in thread
From: Thomas Huth @ 2019-04-24  5:18 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1816052

Title:
  qemu system emulator fails to start if no sound card is present on
  host

Status in QEMU:
  Fix Released

Bug description:
  A plain build from git master at
  81dbcfa9e1d8bab3f7c4cc923c0b40cd666f374f on Fedora 29 x86_64 host,
  with no options passed to configure.

  Trying to launch QEMU on a  host with no audio card present:

  # ls /dev/snd/
  seq  timer

  It will fail to initialize alsa and abort startup:

  # qemu-system-x86_64 -cdrom Fedora-Workstation-Live-x86_64-29-1.2.iso  -m 4000 -vnc 0.0.0.0:1 
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
  ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
  ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
  ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
  ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
  ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
  alsa: Could not initialize DAC
  alsa: Failed to open `default':
  alsa: Reason: No such file or directory
  init fail
  audio: Failed to create voice `pcspk'
  qemu-system-x86_64: Initialization of device isa-pcspk failed: Initializing audio voice failed

  
  git bisect blames this change:

  
    commit 6a48541873f14b597630283f8f5397674ad82ea9 (HEAD, refs/bisect/bad)
    Author: Gerd Hoffmann <kraxel@redhat.com>
    Date:   Thu Jan 24 12:20:55 2019 +0100

      audio: probe audio drivers by default
      
      Add the drivers listed in audio_possible_drivers to audio_drv_list,
      using the try-* variants.  That way the probable drivers are compiled by
      default if possible.
      
      Additioal tweaks:
        linux: reorder to: pa alsa sdl oss.
        *bsd: drop pa.
      
      Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
      Message-id: 20190124112055.547-7-kraxel@redhat.com

  
  This changed our probe order:

     Linux)
    -  audio_drv_list="oss"
    +  audio_drv_list="try-pa try-alsa try-sdl oss"

  After some debugging I can see that 'audio_init' successfully
  initializes the alsa driver.

  When the pcspk devices goes to AUD_open_out though, the alsa driver
  fails spewing the above text to stderr and thus causes QEMU to fail.

  This looks very much like the ALSA driver in QEMU is broken -
  audio_init() should not have succeeded unless the ALSA driver knew it
  could later succesfully honour AUD_open_out.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1816052/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-04-24  5:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-15 14:44 [Qemu-devel] [Bug 1816052] [NEW] qemu system emulator fails to start if no sound card is present on host Daniel Berrange
2019-02-15 19:26 ` [Qemu-devel] [Bug 1816052] " Kris M
2019-02-15 19:30 ` Kris M
2019-02-15 19:45 ` Jeremy Bicha
2019-02-19  5:47 ` Kris M
2019-02-19  9:02 ` Gerd Hoffmann
2019-02-25  3:14   ` Like Xu
2019-02-26  3:27 ` Like Xu
2019-04-24  5:18 ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.