All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sebastian H." <vand2@gmx.de>
To: Peter Lukac <p.lukac@emtest.sk>
Cc: alsa-devel@alsa-project.org
Subject: Re: open sound device from asound.conf
Date: Fri, 23 Jul 2010 11:26:21 +0200	[thread overview]
Message-ID: <4C49603D.4090807@gmx.de> (raw)
In-Reply-To: <201007231112.24764.p.lukac@emtest.sk>

Am 23.07.2010 11:12, schrieb Peter Lukac:
> hello all
> maybe trivial question...
> 
> I want open sound device from /etc/asound.conf with API
> snd_pcm_open() but unsuccessfull. As name i'm used:
> 
> "plughw:0,0"
> "plughw:0,1"
> "plughw:0,2"
> "plughw:1,0"
> "plughw:1,1"
> "plughw:1,2"
> ...
> i'm try alternative name with "hw:X,Y"
> "hw:0,0"
> "hw:0,1"
> ...
> but in this method i'm open only HW device.
> I'm get follow error:
> ALSA lib pcm_hw.c:1429:(_snd_pcm_hw_open) Invalid value for card 
> 
> how can i open my "virtual" device in asound.conf
> 
> here is asound.conf:
> 
> 
> pcm.!default {
>         type plug
>         slave.pcm "output"
>     }
> 
> pcm.output {
>     type dmix
>     ipc_key 1024
>     slave {
>         pcm "hw:0,0"
>         channels 2
>         rate 44100
>         format S16_LE
>     }
> }
> 
> pcm.dsp0 {
>     type plug
>     slave.pcm "output"
> }
> 
> ...exists some universal method how can i open all HW device and "virtual" 
> devices?


Did you try to open "default", "output" or "dsp0" since these are the
names of your pcm defines?

Cheers,
Sebastian

  reply	other threads:[~2010-07-23  9:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23  9:12 open sound device from asound.conf Peter Lukac
2010-07-23  9:26 ` Sebastian H. [this message]
2010-07-23  9:43   ` Peter Lukac
2010-07-23 10:12     ` Sebastian H.
2010-07-23 11:30       ` Raymond Yau

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=4C49603D.4090807@gmx.de \
    --to=vand2@gmx.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=p.lukac@emtest.sk \
    /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.