From owner-freebsd-multimedia@FreeBSD.ORG Sun Feb 8 21:22:50 2015 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CFB3551 for ; Sun, 8 Feb 2015 21:22:50 +0000 (UTC) Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2FBB8D41 for ; Sun, 8 Feb 2015 21:22:50 +0000 (UTC) Received: by mail-we0-f181.google.com with SMTP id w62so5888977wes.12 for ; Sun, 08 Feb 2015 13:22:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=UlwqkQzifI7kZAp9MDP0U/hLeRlr0ISDeMSvAtXiF+g=; b=NsUmZ/gNugYKA6lliReHLR7zt3+4780JlL7sM7sKpIHsOT3hat53ctroy85MyLxzUr yRL2QFKt8IbjkEOk+q0tUNavgwvdxhUup8o9wWAXWTFS0AjVAD5ch+/ACaSMI+Xrm/7E DZj1nS9IeUvVzIB/4/dTGxkMeMH5xpcq7aOvc/D48QnOKazL+DG/cOWrko7cpYgYJzMX fJUBqYaxTQP6IqAL6ZpNcUYaueemo70KMzmcvPaQw6LMVzWlIYten4+KrnBTRKvwLyNP yOk9p8aLViHFmxSV1GXCNWPcpe8WOuHjHoVpMofa2dEFPWq5nmBwNiSY8fB8BbTlH1sY SNVg== MIME-Version: 1.0 X-Received: by 10.180.72.241 with SMTP id g17mr28648981wiv.58.1423430568458; Sun, 08 Feb 2015 13:22:48 -0800 (PST) Sender: magnus.ringman@gmail.com Received: by 10.27.176.4 with HTTP; Sun, 8 Feb 2015 13:22:48 -0800 (PST) Date: Sun, 8 Feb 2015 22:22:48 +0100 X-Google-Sender-Auth: xk7YvbfJf9aMgxP5gOjlruP0e6U Message-ID: Subject: Sound reasoning From: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0JEuINCh0L/QsNC80LDQutC+0LLRgdC60LjQuQ==?= To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2015 21:22:50 -0000 Hi. Is there a point to writing a pcm device to have multiple "channel"s in the same direction? Say, two SND_FORMAT(AFMT_S16_LE, 1, 0) for record and two for playback, vs. just one SND_FORMAT(AFMT_S16_LE, 2, 0) in each direction. pcm_register() has so prominently two arguments 'numrec' and 'numplay' and even if they are ignored, one can do pcm_addchan() any number of times. How is this expressed to the user-land programmer? "Read the code" is a fine answer, but it would be nice if someone can readily explain the idea behind the options.