From mboxrd@z Thu Jan 1 00:00:00 1970 From: Raymond Yau Subject: Re: RFC: ice1712 virtual devices Date: Fri, 30 Oct 2009 08:36:59 +0800 Message-ID: <4f3252890910291736m2a1f65c5jf5f422648e3f5dd1@mail.gmail.com> References: <4AE9D57E.5090105@hotmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-px0-f203.google.com (mail-px0-f203.google.com [209.85.216.203]) by alsa0.perex.cz (Postfix) with ESMTP id CA54B24375 for ; Fri, 30 Oct 2009 01:37:00 +0100 (CET) Received: by pxi41 with SMTP id 41so1574790pxi.24 for ; Thu, 29 Oct 2009 17:36:59 -0700 (PDT) In-Reply-To: <4AE9D57E.5090105@hotmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org In the past when dmix is used , default device is defined in those .conf for each card. i.e. front device is not used for capturing. e.g. emu10k1 has special hook for playback with the front device and those hook should not be used for capture. 2009/10/30 Arno Schuring > Hello list, > > This is basically a resend of > http://thread.gmane.org/gmane.linux.alsa.devel/59481/focus=59672 , which > fixed the front: device of ice1712 cards to accept two-channel input. > Currently, the front: device is exposed through the route plugin, which > requires all clients to mmap all 10 channels, even though the front > device is supposed to be a stereo device. > > This patch changes the front: device definition such that it matches the > definition of iec958 in the same file. Additionally, I'm tempted to > remove the surround* definitions because the chip does not really offer > surround-style multichannel: it basically just offers multiple stereo > channels, and does not provide any channel mapping beyond stereo. > > Finally, I'm also experimenting with the dshare plugin to allow > applications to access the iec958: and front: devices simultaneously. > Can anyone point me to a working example for this? From reading the > alsa-lib documentation, it is not clear to me how I should nest the > different plugins. > > > Many thanks, > Arno Schuring > > > -- > > diff --git a/src/conf/cards/ICE1712.conf b/src/conf/cards/ICE1712.conf > index 01e50d2..d7acb81 100644 > --- a/src/conf/cards/ICE1712.conf > +++ b/src/conf/cards/ICE1712.conf > @@ -32,12 +32,28 @@ ICE1712.pcm.front.0 { > @args.CARD { > type string > } > - type route > - ttable.0.0 1 > - ttable.1.1 1 > - slave.pcm { > - type hw > - card $CARD > + type asym > + playback.pcm { > + type route > + ttable.0.0 1 > + ttable.1.1 1 > + slave.pcm { > + type hw > + card $CARD > + } > + slave.format S32_LE > + slave.channels 10 > + } > + capture.pcm { > + type route > + ttable.0.0 1 > + ttable.1.1 1 > + slave.pcm { > + type hw > + card $CARD > + } > + slave.format S32_LE > + slave.channels 12 > } > } > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >