Re: [Alsa-user] alsa-lib and RME HDSP9652
Brought to you by:
perex
|
From: Anders G. <and...@gm...> - 2012-08-07 05:57:15
|
7 aug 2012 kl. 02:40 skrev Andre Schramm <and...@io...>: > Am Tue, 7 Aug 2012 00:11:37 +0200 > schrieb Anders Genell <and...@gm...>: > >> >> Below are examples of the error I got from mplayer and OpenAL >> respectively. mplayer -ao alsa file.wav >> [AO_ALSA] alsa-lib: pcm_hw.c:326:(snd_pcm_hw_hw_params) >> SNDRV_PCM_IOCTL_HW_PARAMS failed (-16): Device or resource busy >> [AO_ALSA] Unable to set hw-parameters: Device or resource busy >> >> OpenAL (via chromium-bsu) >> AL lib: alsa.c:642: set params failed: Device or resource busy >> >> Any ideas? >> > Sounds like sth. is already using the device. Try: > > $ cat /proc/asound/cardX/pcm0p/sub0/status > > and check the result (replace X with the right card number). It should > report "closed", otherwise you will get the PID of the process that is > using it. > > > Regards, > Andre Thanks for the reply, but alas, it is closed: ~$ cat /proc/asound/card0/pcm0p/sub0/info card: 0 device: 0 subdevice: 0 stream: PLAYBACK id: RME Hammerfall HDSP 9652 name: RME Hammerfall HDSP 9652 subname: subdevice #0 class: 0 subclass: 0 subdevices_count: 1 subdevices_avail: 1 ~$ cat /proc/asound/card0/pcm0p/sub0/status closed Also, there is no problem with playback using e.g. aplay -D plughw so the card is not busy as such. When I do play something with aplay I get ~$ cat /proc/asound/card0/pcm0p/sub0/hw_params access: MMAP_NONINTERLEAVED format: S32_LE subformat: STD channels: 26 rate: 44100 (44100/1) period_size: 4096 buffer_size: 8192 ~$ cat /proc/asound/card0/pcm0p/sub0/status state: RUNNING owner_pid : 10171 trigger_time: 57406.852376233 tstamp : 57431.833201480 delay : 8192 avail : 0 avail_max : 4096 ----- hw_ptr : 1097728 appl_ptr : 1105920 Regards, Anders |