From: David Henningsson <david.henningsson@canonical.com>
To: Dmitrij K <kdiman@live.ru>
Cc: alsa-devel@alsa-project.org
Subject: Re: default is working, but hw:0,0 is do not...
Date: Tue, 24 Jan 2012 21:00:16 +0100 [thread overview]
Message-ID: <4F1F0DD0.6020101@canonical.com> (raw)
In-Reply-To: <BLU0-SMTP104845BEB7A301DD21ED66CC18B0@phx.gbl>
On 01/24/2012 08:15 PM, Dmitrij K wrote:
> Hi all.
>
> I have problem with openning a device for playback.
>
>
> this is working code:
> snd_pcm_open(&handle, "default", SND_PCM_STREAM_PLAYBACK, 0);
>
>
> but this is not working:
> snd_pcm_open(&handle, "hw:0,0", SND_PCM_STREAM_PLAYBACK, 0);
>
> I get this is: Device or resource busy
>
>
> PS: I have been started the `phonon' (KDE sound daemon), and the amarok (audio
> player).
>
>
> My question: what I need to do for correct open "hw:0,0" for multiply playback
> ?
Make sure that nobody else is using the device at the same time.
"hw:0,0" requires exclusive access to the device.
You can see who is currently using your sound device(s) using this command:
sudo fuser -v /dev/snd/*
--
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic
next prev parent reply other threads:[~2012-01-24 20:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-24 19:15 default is working, but hw:0,0 is do not Dmitrij K
2012-01-24 20:00 ` David Henningsson [this message]
2012-01-24 20:12 ` Dmitrij K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F1F0DD0.6020101@canonical.com \
--to=david.henningsson@canonical.com \
--cc=alsa-devel@alsa-project.org \
--cc=kdiman@live.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.