Re: [alsa-devel] [PATCH 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-04 Thread Timur Tabi
On Jul 3, 2008, at 12:33 PM, Grant Likely wrote: Yes, but you hadn't written these functions when I wrote this helper. :-P. I believe ASoC v2 makes all this stuff unnecessary, but I'm waiting for v2 to hit mainline before I port forward. FYI, it took me about a month to port my drivers to AS

Re: [alsa-devel] [PATCH 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-03 Thread Grant Likely
On Wed, Jul 02, 2008 at 11:27:17AM -0400, Jon Smirl wrote: > On 7/1/08, Grant Likely <[EMAIL PROTECTED]> wrote: > > +static struct of_snd_soc_device * > > +of_snd_soc_get_device(struct device_node *codec_node) > > +{ > > + struct of_snd_soc_device *of_soc; > > + > > + list_for_eac

Re: [alsa-devel] [PATCH 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-02 Thread Liam Girdwood
On Wed, 2008-07-02 at 09:48 -0600, Grant Likely wrote: > On Wed, Jul 02, 2008 at 11:50:43AM +0200, Takashi Iwai wrote: > > > > This is a helper module and not necessarily manually selectable. > > Better to make the other driver selecting this. > > Yes, you're right. I hadn't put too much thought

Re: [alsa-devel] [PATCH 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-02 Thread Grant Likely
On Wed, Jul 02, 2008 at 11:50:43AM +0200, Takashi Iwai wrote: > At Tue, 01 Jul 2008 17:53:30 -0600, > Grant Likely wrote: > > diff --git a/sound/soc/Kconfig b/sound/soc/Kconfig > > index 18f28ac..c5736e5 100644 > > --- a/sound/soc/Kconfig > > +++ b/sound/soc/Kconfig > > @@ -23,6 +23,12 @@ config SN

Re: [alsa-devel] [PATCH 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-02 Thread Jon Smirl
On 7/1/08, Grant Likely <[EMAIL PROTECTED]> wrote: > From: Grant Likely <[EMAIL PROTECTED]> > > Simple utility layer for creating ASoC machine instances based on data > in the OpenFirmware device tree. OF aware platform drivers and codec > drivers register themselves with this framework and the

Re: [alsa-devel] [PATCH 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-02 Thread Jon Smirl
On 7/1/08, Grant Likely <[EMAIL PROTECTED]> wrote: > From: Grant Likely <[EMAIL PROTECTED]> > > Simple utility layer for creating ASoC machine instances based on data > in the OpenFirmware device tree. OF aware platform drivers and codec > drivers register themselves with this framework and the

Re: [alsa-devel] [PATCH 1/3] ALSA SoC: Add OpenFirmware helper for matching bus and codec drivers

2008-07-02 Thread Takashi Iwai
At Tue, 01 Jul 2008 17:53:30 -0600, Grant Likely wrote: > diff --git a/sound/soc/Kconfig b/sound/soc/Kconfig > index 18f28ac..c5736e5 100644 > --- a/sound/soc/Kconfig > +++ b/sound/soc/Kconfig > @@ -23,6 +23,12 @@ config SND_SOC > This ASoC audio support can also be built as a module. If s