Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754298AbaA0UtX (ORCPT ); Mon, 27 Jan 2014 15:49:23 -0500 Received: from gw-1.arm.linux.org.uk ([78.32.30.217]:50276 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753947AbaA0UtW (ORCPT ); Mon, 27 Jan 2014 15:49:22 -0500 Date: Mon, 27 Jan 2014 20:49:15 +0000 From: Russell King - ARM Linux To: Mark Brown Cc: Jean-Francois Moine , alsa-devel@alsa-project.org, Dave Airlie , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Clark Subject: Re: [PATCH 4/4] ASoC: tda998x: adjust the audio hw parameters from EDID Message-ID: <20140127204915.GC15937@n2100.arm.linux.org.uk> References: <20140127204441.GZ11841@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140127204441.GZ11841@sirena.org.uk> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 27, 2014 at 08:44:41PM +0000, Mark Brown wrote: > On Mon, Jan 27, 2014 at 09:48:54AM +0100, Jean-Francois Moine wrote: > > > + eld_ver = eld[0] >> 3; > > + if (eld_ver != 2 && eld_ver != 31) > > + return 0; > > + > > + mnl = eld[4] & 0x1f; > > + if (mnl > 16) > > + return 0; > > + > > + sad_count = eld[5] >> 4; > > + sad = eld + 20 + mnl; > > Can this parsing code be factored out - it (or large parts of it) should > be usable by other HDMI devices shouldn't it? Yes, preferably as a generic ALSA helper rather than an ASoC helper - I don't see any need for this to be ASoC specific (I have a pure ALSA driver which has very similar code in it.) -- FTTC broadband for 0.8mile line: 5.8Mbps down 500kbps up. Estimation in database were 13.1 to 19Mbit for a good line, about 7.5+ for a bad. Estimate before purchase was "up to 13.2Mbit". -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/