Re: new sound driver
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2006-03-23 21:09:17
What I'm currently thinking of is creating one PCM per codec, and then if you can't use them at the same time just forbid access to it.
No, it should really be one PCM per bus... I don't see why you would prevent somebody from outputing on both digital and analog outputs at the same time for example (the same data of course). One PCM = one stream = one bus carrying the samples. All codecs on that bus whould be set to the same settings of course. If one can't but the other can, just mute the one that can't I suppose... Also, Alsa does have some means of asynchronous notifyication of a state change on a control (and calls you back later with some locking) though I'm not too familiar with the details. You should ask on the list once you have the basic dbdma stuff there :)
quoted
Just sleep on it for now :) We definitely need a "core" module that handles all of the gpio mess. ..Yeah. Haven't even opened that can of worms yet... johannes