Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-02-07 Thread Mark Brown
On Tue, Feb 03, 2015 at 08:31:30PM +0100, Jean-Francois Moine wrote: > Mark Brown wrote: > > So how does the simple controller interact with a more complex one given > > that it's somehow picking some controller node to start from? > A way to solve this problem could be to create only one card b

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-02-03 Thread Jean-Francois Moine
On Tue, 3 Feb 2015 16:47:48 + Mark Brown wrote: > On Sat, Jan 24, 2015 at 08:30:27AM +0100, Jean-Francois Moine wrote: > > Mark Brown wrote: > > > On Fri, Jan 23, 2015 at 07:34:56PM +0100, Jean-Francois Moine wrote: > > > > > The simple card builder, 'dt-card' (maybe a better name would hav

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-02-03 Thread Mark Brown
On Sat, Jan 24, 2015 at 08:30:27AM +0100, Jean-Francois Moine wrote: > Mark Brown wrote: > > On Fri, Jan 23, 2015 at 07:34:56PM +0100, Jean-Francois Moine wrote: > > > The simple card builder, 'dt-card' (maybe a better name would have been > > > 'graph-card'), acts just like the simple-card excep

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-26 Thread Jean-Francois Moine
On Mon, 26 Jan 2015 12:53:53 +0100 Lars-Peter Clausen wrote: > > - a generic sound node in the case of multi controllers or multi codec > >levels (after dt-card extension): > > > > sound { > > compatible = "linux,dt-card"; > > audio-root = <&audio1>; /* starting poi

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-26 Thread Lars-Peter Clausen
On 01/24/2015 02:18 PM, Jean-Francois Moine wrote: On Sat, 24 Jan 2015 12:27:35 +0100 Lars-Peter Clausen wrote: On 01/23/2015 07:34 PM, Jean-Francois Moine wrote: On Fri, 23 Jan 2015 14:56:04 +0100 Lars-Peter Clausen wrote: On 01/23/2015 01:15 PM, Jean-Francois Moine wrote: There is no fi

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-24 Thread Jean-Francois Moine
On Sat, 24 Jan 2015 12:27:35 +0100 Lars-Peter Clausen wrote: > On 01/23/2015 07:34 PM, Jean-Francois Moine wrote: > > On Fri, 23 Jan 2015 14:56:04 +0100 > > Lars-Peter Clausen wrote: > > > >> On 01/23/2015 01:15 PM, Jean-Francois Moine wrote: > > There is no first or second output in the kirkwoo

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-24 Thread Lars-Peter Clausen
On 01/23/2015 07:34 PM, Jean-Francois Moine wrote: On Fri, 23 Jan 2015 14:56:04 +0100 Lars-Peter Clausen wrote: On 01/23/2015 01:15 PM, Jean-Francois Moine wrote: [...] The DT should describe the hardware, and the simple-card mixes hardware and software. For example, the kirkwood controller m

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-23 Thread Jean-Francois Moine
On Fri, 23 Jan 2015 19:13:43 + Mark Brown wrote: > On Fri, Jan 23, 2015 at 07:34:56PM +0100, Jean-Francois Moine wrote: > > > A card builder is a device which > > - scans the graph of ports, > > - fills the struct snd_soc_card according to the links between the > > ports and their properti

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-23 Thread Mark Brown
On Fri, Jan 23, 2015 at 07:34:56PM +0100, Jean-Francois Moine wrote: > A card builder is a device which > - scans the graph of ports, > - fills the struct snd_soc_card according to the links between the > ports and their properties, > - and, eventually, calls snd_soc_register_card(). > The simp

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-23 Thread Jean-Francois Moine
On Fri, 23 Jan 2015 14:56:04 +0100 Lars-Peter Clausen wrote: > On 01/23/2015 01:15 PM, Jean-Francois Moine wrote: > [...] > > The DT should describe the hardware, and the simple-card mixes hardware > > and software. > > For example, the kirkwood controller may create 2 CPU DAIs. With the > > simp

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-23 Thread Mark Brown
On Fri, Jan 23, 2015 at 02:56:04PM +0100, Lars-Peter Clausen wrote: > On 01/23/2015 01:15 PM, Jean-Francois Moine wrote: > >>Your example is a relative simple one where you do not have any additional > >>audio fabric on the board itself. > >Right, and that's why I'd be glad to have quickly someth

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-23 Thread Lars-Peter Clausen
On 01/23/2015 01:15 PM, Jean-Francois Moine wrote: [...] The DT should describe the hardware, and the simple-card mixes hardware and software. For example, the kirkwood controller may create 2 CPU DAIs. With the simple-card, the DT contains a number to reference these DAIs (for example, implicitl

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-23 Thread Jean-Francois Moine
On Thu, 22 Jan 2015 20:25:39 +0100 Lars-Peter Clausen wrote: > On 01/22/2015 09:07 AM, Jean-Francois Moine wrote: > > On Wed, 21 Jan 2015 21:14:07 +0100 > > Lars-Peter Clausen wrote: > > > >> [...] > >>> + card->dai_link->dai_fmt = > >>> + snd_soc_of_parse_daifmt(of_cpu, "dt-audio-card,"

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-22 Thread Lars-Peter Clausen
On 01/22/2015 09:07 AM, Jean-Francois Moine wrote: On Wed, 21 Jan 2015 21:14:07 +0100 Lars-Peter Clausen wrote: [...] + card->dai_link->dai_fmt = + snd_soc_of_parse_daifmt(of_cpu, "dt-audio-card,", + NULL, NULL) & +

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-22 Thread Mark Brown
On Thu, Jan 22, 2015 at 09:07:23AM +0100, Jean-Francois Moine wrote: > I was also wondering about some of these properties, as widgets and > routing. They seem to be software information and Linux specific. > Must these properties appear in the DTs? What's Linux specific about them? The widgets

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-22 Thread Jean-Francois Moine
On Wed, 21 Jan 2015 21:14:07 +0100 Lars-Peter Clausen wrote: > [...] > > + card->dai_link->dai_fmt = > > + snd_soc_of_parse_daifmt(of_cpu, "dt-audio-card,", > > + NULL, NULL) & > > + ~SND_SOC_DAIFMT_MASTER_MASK; > > > This one does

Re: [alsa-devel] [PATCH v2 3/3] ASoC: add generic dt-card support

2015-01-21 Thread Lars-Peter Clausen
[...] + card->dai_link->dai_fmt = + snd_soc_of_parse_daifmt(of_cpu, "dt-audio-card,", + NULL, NULL) & + ~SND_SOC_DAIFMT_MASTER_MASK; This one does not seem to be in the bindings documentation. -- To unsubscribe fr