From: Benjamin Herrenschmidt Subject: Re: [PATCH 1/2] powerpc: add platform registration for ALSA SoC drivers Date: Wed, 28 Apr 2010 14:18:15 +1000 Message-ID: <1272428295.24542.65.camel@pasglop> References: <1272314980-23679-1-git-send-email-timur@freescale.com> <1272350168.24542.6.camel@pasglop> <1272355624.3204.52.camel@odin> <4BD6FA39.3030400@freescale.com> <1272381611.11000.39.camel@odin> <4BD70292.20001@freescale.com> <1272386470.11000.84.camel@odin> <4BD72DB0.20808@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by alsa0.perex.cz (Postfix) with ESMTP id 466CB244F1 for ; Wed, 28 Apr 2010 06:18:19 +0200 (CEST) In-Reply-To: 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: Grant Likely Cc: alsa-devel@alsa-project.org, kumar.gala@freescale.com, broonie@opensource.wolfsonmicro.com, linuxppc-dev@ozlabs.org, Timur Tabi , Liam Girdwood List-Id: alsa-devel@alsa-project.org On Tue, 2010-04-27 at 13:15 -0600, Grant Likely wrote: > > Can you not dynamically assign an id? If alsa soc needs a unique id > number, then just create a lookup function. Something like > of_asoc_phandle_to_codec_id() that will either return a previously > assigned id, or will assign a new id. You shouldn't ever need to add > data to the tree at runtime. Numerical magic IDs are evil... why not a name ? Or it's existing alsa breakage ? :-) Cheers, Ben.