From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: Device trees and audio codecs From: Benjamin Herrenschmidt To: Jon Smirl In-Reply-To: <9e4733910710211512v238fbc89m35783d5eb5b82bf6@mail.gmail.com> References: <9e4733910710200833x5d1c55b5l2cd400f77c13ec87@mail.gmail.com> <9e4733910710211433r7e0cf4b4sf6aed12c57dda375@mail.gmail.com> <1193004399.6745.39.camel@pasglop> <9e4733910710211512v238fbc89m35783d5eb5b82bf6@mail.gmail.com> Content-Type: text/plain Date: Mon, 22 Oct 2007 08:19:44 +1000 Message-Id: <1193005184.6745.46.camel@pasglop> Mime-Version: 1.0 Cc: PowerPC dev list Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2007-10-21 at 18:12 -0400, Jon Smirl wrote: > On 10/21/07, Benjamin Herrenschmidt wrote: > > > > On Sun, 2007-10-21 at 17:33 -0400, Jon Smirl wrote: > > > > This is one of the i2s channels on the macio. Dunno why they put > > > > all those platform-XXX entries in here, (most of) these don't > > > > logically belong here. > > > > > > Actually those platform-XXX entries may be the solution I am looking > > > for. I can use the generic i2s driver to load a fabric driver as an > > > ALSA module. > > > > Yuck. > > And your alternative is? > > I can use the DTC to load the I2S and codec drivers. > > How do I get the platform specific fabric driver loaded? There is no > way to load a driver matching on the platform name. platform-do-XXX is unrelated to that. It's a kind of script in a blob that is used to toggle various bits, it's plain ugly, totally powermac specific (the code to handle it is in platform/powermac and I won't make it generic) and so you don't want it... ever. For your problem, an option is to do like apple, and have a "sound" pseudo device which represents the "sound subsystem" of the machine which cn ahave a compatible property and other bits that you can use to match your fabric against, and loads the other bits & pieces. Except that I would put it at the root of the tree. Ben.