Comment 6 for bug 465942

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 465942] Re: Hardware device disappearing from Sound Preferences

Looks like some other application is grabbing /dev/snd/* while PA is, too:

D: alsa-source.c: snd_pcm_mmap_commit: Broken pipe
D: alsa-source.c: snd_pcm_mmap_commit: Buffer overrun!
I: (alsa-lib)pcm_hw.c: SNDRV_PCM_IOCTL_PREPARE failed
I: (alsa-lib)pcm.c: cannot recovery from overrun, prepare failed:
Device or resource busy
E: alsa-source.c: snd_pcm_mmap_commit: Device or resource busy
I: module.c: Unloading "module-alsa-card" (index: #4).
D: module-always-sink.c: Autoloading null-sink as no other sinks detected.
I: sink.c: Created sink 1 "auto_null" with sample spec s16le 2ch
44100Hz and channel map front-left,front-right
I: sink.c: device.description = "Dummy Output"
I: sink.c: device.class = "abstract"
I: sink.c: device.icon_name = "audio-card"
I: source.c: Created source 2 "auto_null.monitor" with sample spec
s16le 2ch 44100Hz and channel map front-left,front-right
I: source.c: device.description = "Monitor of Dummy Output"
I: source.c: device.class = "monitor"
I: source.c: device.icon_name = "audio-input-microphone"
D: module-null-sink.c: Thread starting up

So, what's doing that? What'

On Sat, Oct 31, 2009 at 1:09 AM, Irihapeti <email address hidden> wrote:
> OK, I have followed the instructions, and here is the log file.
>
> ** Attachment added: "pulseverbose.log"
>   http://launchpadlibrarian.net/34746262/pulseverbose.log
>
> --
> Hardware device disappearing from Sound Preferences
> https://bugs.launchpad.net/bugs/465942
> You received this bug notification because you are a member of Ubuntu
> Audio Team, which is subscribed to alsa-driver in ubuntu.
>
> Status in “alsa-driver” package in Ubuntu: New
>
> Bug description:
> Tried to configure audio using "Sound Preferences". The driver initially showed in the window but then it disappeared. Rebooting is needed to have it reappear. But it disappears again as soon as I try to configure it.
>
> I ran the following command *after* the driver had disappeared from the Sound Prefs window. Evidently, Alsa still knows it's there.
>
> $ aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: VT82xx [HDA VIA VT82xx], device 0: AD198x Analog [AD198x Analog]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
> card 0: VT82xx [HDA VIA VT82xx], device 1: AD198x Digital [AD198x Digital]
>  Subdevices: 1/1
>  Subdevice #0: subdevice #0
>
> As far as I can tell, all the kernel modules are loaded.
>
> Using the 9.10 release - fresh install, no upgrade. Have had no problems with earlier releases (did not use 8.10 or 9.04).
>
> ProblemType: Bug
> Architecture: i386
> ArecordDevices:
>  **** List of CAPTURE Hardware Devices ****
>  card 0: VT82xx [HDA VIA VT82xx], device 0: AD198x Analog [AD198x Analog]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/dsp', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/pcmC0D1p', '/dev/snd/seq', '/dev/snd/timer', '/dev/sequencer', '/dev/sequencer2'] failed with exit code 1:
> Card0.Amixer.info:
>  Card hw:0 'VT82xx'/'HDA VIA VT82xx at 0xcfffc000 irq 17'
>   Mixer name   : 'Analog Devices AD1986A'
>   Components   : 'HDA:11d41986,1043818f,00100500'
>   Controls      : 37
>   Simple ctrls  : 21
> CheckboxCommand: alsa_record_playback
> CheckboxDescription:
>  Open the volume control application by right-clicking on the speaker icon in the panel and selecting "Sound Preferences".  Select the "Input" tab and choose any alternate (non-default) device(s).  Select the "Output" tab and choose any alternate (non-default) device(s).  When you are done, click the Test button, then speak into the microphone. After a few seconds, your speech will be played back to you.
>
>  Did you hear your speech played back?
> CheckboxTest: alsa_record_playback_alternates
> Date: Sat Oct 31 15:06:56 2009
> DistroRelease: Ubuntu 9.10
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
> Package: alsa-base 1.0.20+dfsg-1ubuntu5
> PackageArchitecture: all
> ProcEnviron:
>  SHELL=/bin/bash
>  LANG=en_NZ.UTF-8
> ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> SourcePackage: alsa-driver
> Tags: checkbox-bug
> Uname: Linux 2.6.31-14-generic i686
> XsessionErrors:
>  (gnome-settings-daemon:1625): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
>  (gnome-settings-daemon:1625): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
>  (polkit-gnome-authentication-agent-1:1710): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
>  (nautilus:1681): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
>