All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: loody <miloody@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: how to create alsa nodes?
Date: Thu, 17 Mar 2011 15:26:32 +0100	[thread overview]
Message-ID: <4D821A18.30407@ladisch.de> (raw)
In-Reply-To: <AANLkTinUA1R-oGhQwykLiY0j7-MoB=4oJBMT=PQUTzY4@mail.gmail.com>

loody wrote:
> In destop x86 system, the udev will automatically create the nodes in
> snd directory, such as pcmC0D0c, pcmC0D1c, etc.
> I try to let the usb sound device work on mips platform, but I have no
> idea what is the proper way to create these nodes.
> Should I
> 1. create them one by one by hand  from copying the attributes in my PC
>     (if I have 2 or more usb sound devices, I have to first plug them
> in pc and monitor the nodes)

This will not work if the device nodes' minor numbers are allocated
dynamically.

> 2. smarter way to do so?

GregKH would tell you that the smart way would be to run udev.  ;-)

To use static device nodes,
1) make sure that CONFIG_SND_DYNAMIC_MINORS is disabled,
2) use the snddevices script in the alsa-driver package.


Regards,
Clemens

  reply	other threads:[~2011-03-17 14:24 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-17 14:12 how to create alsa nodes? loody
2011-03-17 14:26 ` Clemens Ladisch [this message]
2011-03-18  9:03   ` loody
2011-03-23  0:40     ` Connecting a codec to an i2c codec driver Steve Calfee
2011-03-23 11:07       ` Mark Brown
2011-03-23 13:22         ` Steve Calfee
2011-03-23 13:30           ` Mark Brown
2011-03-24 19:56             ` Steve Calfee
2011-03-25 11:43               ` Mark Brown
2013-02-12  8:17       ` emi62 (may be slightly off-topic) Karl Grill
2013-02-15 14:44         ` Takashi Iwai
2013-02-15 15:28           ` Monty Montgomery
2013-02-15 15:37             ` Monty Montgomery
2013-02-15 16:07               ` Takashi Iwai
2013-02-15 16:14                 ` Monty Montgomery
2013-02-15 16:26                   ` Takashi Iwai
2013-12-11  0:04                     ` Monty Montgomery
2013-12-11 14:34                       ` Takashi Iwai
2013-12-12  7:32                         ` Monty Montgomery
2013-12-12 17:11                           ` Takashi Iwai

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=4D821A18.30407@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=miloody@gmail.com \
    /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.