From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Bomers Subject: Re: devices/subdevices, hw:/plughw: Date: Fri, 20 Sep 2002 11:02:31 -0700 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <3D8B62B7.D1DA7576@sun.com> References: <3D8B4BB5.82ACFB11@sun.com> <3D8B5A8E.7000709@boosthardware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Thanks that explains. Florian Patrick Shirkey wrote: > > Florian Bomers wrote: > > (I initially posted this to alsa-user without answers. Hope to get more lucky > > here...) > > > > Hi, > > > > sorry for those general questions, but I wasn't able to find anything on the > > archives or in the ALSA documentation. > > > > What is the meaning of devices vs. subdevices ? What is an example where a > > device would have several subdevices, as opposed to the card having several > > devices ? > > A card is a device. The available pcm channels are sub devices. > > >I want to display a list of available "ports" where the user can send > > the audio generated by the program. If a device has several subdevices, would I > > include them in the list, or just list the devices for each card ? > > > > You should include the sub devices. > > > My program successfully lists the cards with their devices and subdevices for > > hw: (i.e. snd_ctl_open("hw:0") ). However, this does not work for the plughw: > > way, although from what I understood, I want to use plughw: (as it is supposed > > to support automatic sample rate conversion). How do I iterate all available > > plughw: "cards", devices, and subdevices? Or can I assume that if hw:0,0 exists, > > that plughw:0,0 is the same card/device - and I just can't iterate available > > plughw:'s directly ? > > > > yes plughw:0,0 is the same as hw:0,0 but with automatic sample rate > conversion. > > > Thanks! > > Florian > > > > > > -- > Patrick Shirkey - Boost Hardware Ltd. > For the discerning hardware connoisseur > Http://www.boosthardware.com > Http://www.boosthardware.com/LAU/guide/ > ======================================== > > "Um...symbol_get and symbol_put... They're > kindof like does anyone remember like get_symbol > and put_symbol I think we used to have..." > - Rusty Russell in his talk on the module subsystem -- Florian Bomers Java Sound Java Software/Sun Microsystems, Inc. http://java.sun.com/products/java-media/sound/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf