From: Takashi Iwai Subject: Re: Best way of adding temporary limits to capture or playback Date: Tue, 16 May 2006 12:31:30 +0200 Message-ID: References: <44696908.4070208@atmel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <44696908.4070208@atmel.com> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Hans-Christian Egtvedt Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 16 May 2006 07:54:16 +0200, Hans-Christian Egtvedt wrote: > > Hello > > My AC97 controller has a limit when doing capture/playback in full > duplex, the bitrate and endianess has to be the same for both streams > (playback/capture). Is there a nice and easy way to set this limit? No good helper is provided. > My current plan is to change the hardware parameters in the playback > open and capture open callbacks if there is an active playback or > capture already present. And then reset this hardware limit when the > close callback is called. Right, that's what other drivers do, too. > I would of course enjoy just setting a flag in the driver telling it > that capture and playback rates/endianess is related, and is locked if > one of the streams is opened. We have SNDRV_PCM_INFO_JOINT_DUPLEX flag, but it's only a referrence to user-space and not really used in the driver. > PS! I'm having some sort of problems getting my emails from this lists, > seems like I don't get a copy anymore :/ I've checked the settings in > mailman, and they seem good. > > PPS! Sorry if this is received twice, but I didn't receive a copy or > find a copy in an online repository (twice). I saw your post only once. Takashi ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642