Re: alsa-lib and RME HDSP9652

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




7 aug 2012 kl. 02:40 skrev Andre Schramm <andre.schramm@xxxxxxxxxxxxxxxx>:

> Am Tue, 7 Aug 2012 00:11:37 +0200
> schrieb Anders Genell <anders.genell@xxxxxxxxx>:
> 
>> 
>> 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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux