On Mon, Jul 28, 2014 at 12:36 PM, Mark Brown broonie@kernel.org wrote:
On Mon, Jul 28, 2014 at 12:33:57PM -0400, jonsmirl@gmail.com wrote:
So what do you want the device tree to look like? Example with no external amp. Example with external amp.
To repeat what I said in a previous mail:
I see the aux binding in soc-core.c Where is an example of how to use it in a device tree?
None of these are used in a device tree that I can spot.. omap/rx51.c:static struct snd_soc_aux_dev rx51_aux_dev[] = { omap/rx51.c: .aux_dev = rx51_aux_dev, omap/rx51.c: .num_aux_devs = ARRAY_SIZE(rx51_aux_dev), omap/rx51.c: rx51_aux_dev[0].codec_name = NULL; omap/rx51.c: rx51_aux_dev[0].codec_of_node = dai_node; samsung/speyside.c:static struct snd_soc_aux_dev speyside_aux_dev[] = { samsung/speyside.c: .aux_dev = speyside_aux_dev, samsung/speyside.c: .num_aux_devs = ARRAY_SIZE(speyside_aux_dev), samsung/neo1973_wm8753.c:static struct snd_soc_aux_dev neo1973_aux_devs[] = { samsung/neo1973_wm8753.c: .aux_dev = neo1973_aux_devs, samsung/neo1973_wm8753.c: .num_aux_devs = ARRAY_SIZE(neo1973_aux_devs), samsung/neo1973_wm8753.c: neo1973.num_aux_devs = 1;
| Just the same as any other card - allow a phandle to be provided to the | amplifier.
| Assuming "jack populations" are DAPM links just do it the same way as | anything else and use snd_soc_of_parse_audio_routing().