From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753463AbcLFPSR (ORCPT ); Tue, 6 Dec 2016 10:18:17 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:33085 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbcLFPSJ (ORCPT ); Tue, 6 Dec 2016 10:18:09 -0500 Date: Tue, 6 Dec 2016 09:16:35 -0600 From: Rob Herring To: Peter Rosin Cc: linux-kernel@vger.kernel.org, Mark Rutland , Liam Girdwood , Mark Brown , Nicolas Ferre , Arnd Bergmann , Greg Kroah-Hartman , Jaroslav Kysela , Takashi Iwai , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org Subject: Re: [PATCH 1/2] misc: atmel-ssc: register as sound DAI if #sound-dai-cells is present Message-ID: <20161206151635.psckjlu2pyzjm7k6@rob-hp-laptop> References: <1480593549-6464-1-git-send-email-peda@axentia.se> <1480593549-6464-2-git-send-email-peda@axentia.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1480593549-6464-2-git-send-email-peda@axentia.se> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 01, 2016 at 12:59:08PM +0100, Peter Rosin wrote: > The SSC is currently not usable with the ASoC simple-audio-card, as > every SSC audio user has to build a platform driver that may do as > little as calling atmel_ssc_set_audio/atmel_ssc_put_audio (which > allocates the SSC and registers a DAI with the ASoC subsystem). > > So, have that happen automatically, if the #sound-dai-cells property > is present in devicetree, which it has to be anyway for simple audio > card to work. > > Signed-off-by: Peter Rosin > --- > .../devicetree/bindings/misc/atmel-ssc.txt | 2 + Acked-by: Rob Herring > drivers/misc/atmel-ssc.c | 50 ++++++++++++++++++++++ > include/linux/atmel-ssc.h | 1 + > 3 files changed, 53 insertions(+)