From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034297AbcIWWZp (ORCPT ); Fri, 23 Sep 2016 18:25:45 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:35612 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760281AbcIWWZn (ORCPT ); Fri, 23 Sep 2016 18:25:43 -0400 Date: Fri, 23 Sep 2016 17:25:41 -0500 From: Rob Herring To: Nikita Yushchenko Cc: Liam Girdwood , Mark Brown , Mark Rutland , Jaroslav Kysela , Takashi Iwai , Otto =?iso-8859-1?Q?Kek=E4l=E4inen?= , Kuninori Morimoto , Mengdong Lin , Aaro Koskinen , Andrew Lunn , Peter Ujfalusi , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Healy Subject: Re: [PATCH v2] ASoC: simple-card: add support for aux devices Message-ID: <20160923222541.GA25693@rob-hp-laptop> References: <1474614673-12350-1-git-send-email-nikita.yoush@cogentembedded.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1474614673-12350-1-git-send-email-nikita.yoush@cogentembedded.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 23, 2016 at 10:11:12AM +0300, Nikita Yushchenko wrote: > This patch makes it possible to use simple-card in setups where separate > amplifier chip is connected to codec's output. > > Changes from v1: > - moved example usage from commit message to Documentation/, as > suggested by Kuninori Morimoto, > - fixed typo in example usage. Ah, one more property to the "simple" card. At what point in adding properties is it not simple? > > Signed-off-by: Nikita Yushchenko > --- > .../devicetree/bindings/sound/simple-card.txt | 37 ++++++++++++++++++++++ > sound/soc/generic/simple-card.c | 34 ++++++++++++++++++++ > 2 files changed, 71 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt > index 59d8628..c7a9393 100644 > --- a/Documentation/devicetree/bindings/sound/simple-card.txt > +++ b/Documentation/devicetree/bindings/sound/simple-card.txt > @@ -22,6 +22,8 @@ Optional properties: > headphones are attached. > - simple-audio-card,mic-det-gpio : Reference to GPIO that signals when > a microphone is attached. > +- simple-audio-card,aux-devs : List of phandles pointing to auxiliary devices, such > + as amplifiers, to be added to the sound card. I think the property should be specific as to the type of device. What if you have 2 amps? Maybe simple-card can't have 2 outputs. What if you have a chain of devices and need to know the order of them? Rob