Error Failed To Open Dac Device /dev/dsp
Opened 7 years ago Last modified 4 years ago Fallback audio system no longer checks ALSA Reported by: Sasquatch Owned by: Priority: major Component: audio Version: VirtualBox 3.0.6 Keywords: audio fallback alsa Cc: Guest type: other Host type: Linux Description (last modified by frank) (diff) In previous versions, ALSA was checked as possible sound system (I think). Now, when the selected sound system doesn't work, it goes to OSS and reverts to NULL if that doesn't work. It used to be possible to select Pulse as sound system while using ALSA instead and have libpulse0 installed. I don't know when exactly it stopped working, but on 3.0.6 it was certainly broken and there is no change on 3.0.8. The log is attached. I'm not really sure if older versions did the same, but I was able to have audio with ALSA and libpulse0 by selecting Pulse. Because I 'share' my VMs between PC (with PulseAudio) and my laptop (without), it's a bit of a hassle to keep changing the settings (ALSA on PulseAudio isn't working all that spotless either, not a VB thing though). Attachments VBox.log (65.1 KB) - added by Sasquatch 7 years ago. Change History Changed 7 years ago by Sasquatch attachment VBox.log added comment:1 Changed 7 years ago by Sasquatch This problem is still present in 3.1.0. This should be fixed in case users remove PulseAudio and forget to change the audio system, or share VM settings between different Hosts with different audio systems (e.g. a computer with Pulse and a laptop with ALSA). comment:2 Changed 7 years ago by frank Hmm, I'm not sure if we changed anythink. The audio subsystem tries to open the selected audio backend at first, PulseAudio in your case. If that fails, it goes through all available drivers. In your case, the OSS driver can be opened successfully and therefore OSS is used and ALSA is not even tested. comment:3 Changed 7 years ago by Sasquatch That's just the problem, OSS doesn't work by default. It never has and never will. When I encounter an OSS application, I have to start it with the OSS wrapper of the sound system I'm using (aoss for alsa, padsp for Pulse), else I get the same error (no sound). This part is the most importent IMO: 664 00:00:04.609 Audio: Trying driver 'pulse'. 665 00:00:04.716 Pulse: Failed to initialize context (state 5) 666 00:00:04.717 Audio: Initialization of driver 'pulse' failed, trying 'oss'. 667 00:00:04.717 Audio: set_record_source ars=0 als=0 (not implemented) 668 00:00:04.717 OSS: Successfully opened /dev/dsp for ADC 669 00:00:04.718 OSS: Failed to open /dev/dsp for DAC (Device or resource busy) 670 00:00:04.718 OSS: Failed to open /dev/dsp for DAC (Device or resource busy
1 #1 2013-03-13 06:15:05 joshdmiller Member From: California Registered: 2010-04-25 Posts: 51 Website Audio Busted with OSS Errors in libvirtd (qemu kvm) I've had a virtual machine (also arch) running for months and with a recent update, the audio stopped working. Initially, there was a permissions issue, which I solved by running as my user. A subsequent recent update busted it again.I set in `/etc/libvirt/qemu.conf` user and group to "root" temporarily and commented out "vnc_allow_host_audio". I connect to the VM through SSH. I do not use VNC and https://www.virtualbox.org/ticket/5174 I do not use SPICE.This is the error that appears in the domain's log:Domain id=2 is tainted: high-privileges char device redirected to /dev/pts/2 (label charserial0) oss: Could not initialize ADC oss: Failed to open `/dev/dsp' oss: Reason: No such file or directory oss: Could not initialize ADC oss: Failed to open `/dev/dsp' oss: Reason: No such file or directory https://bbs.archlinux.org/viewtopic.php?id=159568 audio: Failed to create voice `ac97.pi' oss: Could not initialize DAC oss: Failed to open `/dev/dsp' oss: Reason: No such file or directory oss: Could not initialize DAC oss: Failed to open `/dev/dsp' oss: Reason: No such file or directory audio: Failed to create voice `ac97.po' oss: Could not initialize ADC oss: Failed to open `/dev/dsp' oss: Reason: No such file or directory oss: Could not initialize ADC oss: Failed to open `/dev/dsp' oss: Reason: No such file or directory audio: Failed to create voice `ac97.mc' oss: Could not initialize ADC oss: Failed to open `/dev/dsp' oss: Reason: No such file or directoryI have no idea why it's trying to use OSS nor do I have any idea how to fix that.This is the relevant section of the domain XML:
HiFiBerry DAC+ I followed the guide on this site: https://support.hifiberry.com/hc/en-us/community/posts/206760329-Unable-to-detect-driver-Not-playing-any-sound https://www.hifiberry.com/hifiberry-dac-software/ Initially: updated the kernel by using these commands sudo rpi-update sync sudo reboot Confirmed after the reboot that it was up to date Threw https://forum.kde.org/viewtopic.php?f=19&t=41992 these lines in my /etc/modules folder snd_soc_bcm2708_i2s bcm2708_dmaengine snd_soc_pcm5102a snd_soc_hifiberry_dac Afterwards rebooting. Then, when I test it using aplay -l I get the following: **** error failed List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 7/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 error failed to Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 As you can see I didn't get the expected: card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [] So I went on to continue troubleshooting lower on the page. I typed these commands up in the terminal: wget www.hifiberry.com/files/dac/check-system mv check-system check-system.dac chmod u+rx ./check-system.dac ./check-system.dac And got the following: Checking system Linux raspberrypi 4.4.11-v7+ #887 SMP Thu May 19 16:24:03 BST 2016 armv7l GNU/Linux Kernel: 4.4.11-v7+ PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" snd_soc_bcm2708 module not loaded snd_soc_bcm2708_i2s module not loaded bcm2708_dmaengine module not loaded module file /lib/modules/4.4.11-v7+/kernel/drivers/dma/bcm2708-dmaengine.ko not found module file /lib/modules/4.4.11-v7+/kernel/sound/soc/bcm/snd-soc-bcm2708-i2s.ko not found Sound cards **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], d
search Information The requested topic does not exist. Board index New Topic Find a Solution KDE Links Top Top The team • Delete all board cookies Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group © Copyright 2012 KDE Community Forum Team. All rights reserved.KDE Community Forums has no liability for any content or post. All messages belong to and are the opinion of their respective authors.KDE and K Desktop Environment are trademarks of KDE e.V. • For more details, contact the Forum Administrators.