From: Takashi Iwai Subject: Re: Maya44 revised patch Date: Thu, 14 Feb 2008 13:03:39 +0100 Message-ID: References: <47B37EE7.5000905@lightshed.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 9CC4724366 for ; Thu, 14 Feb 2008 13:03:39 +0100 (CET) In-Reply-To: <47B37EE7.5000905@lightshed.de> 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: Rainer Zimmermann Cc: ALSA Development Mailing List List-Id: alsa-devel@alsa-project.org At Thu, 14 Feb 2008 00:36:07 +0100, Rainer Zimmermann wrote: > > > This is the revised version of the ESI Maya44 patch. > changes are mainly coding style, some cleanups and using a patch file for > ice1724.c . > > The added code now (mostly) passes checkpatch.pl, except for some "#if 0"'s > which I'd leave in for the development phase. > > Also, I changed the rate setting logic, which (for now) allows all rates up to > 192kHz even for capturing. As capturing actually only supports 96 kHz, while > capturing & playback rates are linked, this is not really ok. I'd appreciate > suggestions about how this could be handled properly, while still supporting > playback up to 192 kHz... Does the 96kHz constraint come from ice172x chip or the codec chip? (I have to recheck the datasheet...) Anyway, we can limit this in a scenario like below: - disallow the rate over 96kHz if the capture stream is being opened - if the rate is set above 96kHz, the capture stream cannot be opened, returns -EBUSY or so. BTW, is it supposed to be still highly experimental? If the driver works more or less stably with your device (and on the recent kernel), it'd be also good to put this to the upstream, i.e. in alsa-kernel tree instead of alsa-driver tree. Takashi