On 2020-02-19 20:42, Walter Dnes wrote:
On Wed, Feb 19, 2020 at 06:32:46PM +0100, n952162 wrote
On 2020-02-19 15:37, n952162 wrote:

It seems like VBox is interfacing directly with "the" sound card and
even working correctly (e.g. aplay some-file takes about the right
amount of time until it ends error-free), but unfortunately, I have 2
sound cards and the first doesn't work.
   From the aplay man page...

        -l, --list-devices
               List all soundcards and digital audio devices

        -D, --device=NAME
               Select PCM by name

   And if you're using alsa, run alsamixer and ensure that the output is
not muted; that's the default.

*Here's the host (with redundant surround devices removed), -l followed
by -L, clearly showing two cards:*

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC892 Analog [ALC892
Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
hdmi:CARD=Generic,DEV=1
    HD-Audio Generic, HDMI 1
    HDMI Audio Output
hdmi:CARD=Generic,DEV=2
    HD-Audio Generic, HDMI 2
    HDMI Audio Output
hdmi:CARD=Generic,DEV=3
    HD-Audio Generic, HDMI 3
    HDMI Audio Output
usbstream:CARD=Generic
    HD-Audio Generic
    USB Stream Output
default:CARD=Generic_1
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC892 Analog
    Front speakers
surround21:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALC892 Analog
    2.1 Surround output to Front and Subwoofer speakers
...
usbstream:CARD=Generic_1
    HD-Audio Generic
    USB Stream Output

*Here's the guest, similarly reduced:*

**** List of PLAYBACK Hardware Devices ****
card 0: I82801AAICH [Intel 82801AA-ICH], device 0: Intel ICH [Intel
82801AA-ICH]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=I82801AAICH
    Intel 82801AA-ICH, Intel 82801AA-ICH
    Default Audio Device
sysdefault:CARD=I82801AAICH
    Intel 82801AA-ICH, Intel 82801AA-ICH
    Default Audio Device
front:CARD=I82801AAICH,DEV=0
    Intel 82801AA-ICH, Intel 82801AA-ICH
    Front speakers
surround21:CARD=I82801AAICH,DEV=0
    Intel 82801AA-ICH, Intel 82801AA-ICH
    2.1 Surround output to Front and Subwoofer speakers
...
iec958:CARD=I82801AAICH,DEV=0
    Intel 82801AA-ICH, Intel 82801AA-ICH
    IEC958 (S/PDIF) Digital Audio Output

VirtualBox only sees one card, and the card it sees behaves just like
card 0 on the host - no sound.  So, my theory is, it's not getting to
access card 2 (i.e., 1).

Reply via email to