From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Reichl Subject: Re: [PATCH 0/3] ASoC: Enable a new IC master mode: bcm2835<=>IC<=>cs42xx8 Date: Sat, 25 Feb 2017 14:39:53 +0100 Message-ID: <20170225133952.GA28091@camel2.lan> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.horus.com (mail.horus.com [78.46.148.228]) by alsa0.perex.cz (Postfix) with ESMTP id 712ED2670F9 for ; Sat, 25 Feb 2017 14:39:54 +0100 (CET) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Matt Flax Cc: alsa-devel@alsa-project.org, Stephen Warren , Lee Jones , phil@raspberrypi.org, Liam Girdwood , Eric Anholt , florian.kauer@koalo.de, broonie@kernel.org, Florian Meier , linux-rpi-kernel@lists.infradead.org, ckeepax@opensource.wolfsonmicro.com, linux-arm-kernel@lists.infradead.org List-Id: alsa-devel@alsa-project.org On Sat, Feb 25, 2017 at 04:03:11PM +1100, Matt Flax wrote: > This patch set lets the ASoC system specify that an IC between the SoC and codec > is master. This is intended to put both the SoC and Codec into slave modes. > > By default un-patched SoC and Codec drivers will return -EINVAL if they aren't > enabled and tested for this mode. > > soc-dia.h has the new SND_SOC_DAIFMT_IBM_IFM definition set as : > #define SND_SOC_DAIFMT_IBM_IFM (5 << 12) /* IC clk & FRM master */ > > The cs42xx8 codec driver is enabled for this mode and so too is the BCM2835 > SoC driver. This forms a chain : bcm2835<=>IC<=>cs42xx8 > where the IC is bit and frame master. Model your IC as a codec. No need to add patches to random drivers and add a flag with the rather meaningless semantics "someone else is automagically setting up clocks for me". so long, Hias > > Matt Flax (3): > ASoC : Add an IC bit and frame master mode (SoC and Codec slave). > ASoC: cs42xx8: allow IC master mode. > ASoC: bcm2835: Add mutichannel mode in DSP and IC master modes. > > include/sound/soc-dai.h | 9 ++++++--- > sound/soc/bcm/bcm2835-i2s.c | 21 ++++++++++++++++++++- > sound/soc/codecs/cs42xx8.c | 1 + > 3 files changed, 27 insertions(+), 4 deletions(-) > > -- > 2.7.4 > From mboxrd@z Thu Jan 1 00:00:00 1970 From: hias@horus.com (Matthias Reichl) Date: Sat, 25 Feb 2017 14:39:53 +0100 Subject: [PATCH 0/3] ASoC: Enable a new IC master mode: bcm2835<=>IC<=>cs42xx8 In-Reply-To: References: Message-ID: <20170225133952.GA28091@camel2.lan> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Sat, Feb 25, 2017 at 04:03:11PM +1100, Matt Flax wrote: > This patch set lets the ASoC system specify that an IC between the SoC and codec > is master. This is intended to put both the SoC and Codec into slave modes. > > By default un-patched SoC and Codec drivers will return -EINVAL if they aren't > enabled and tested for this mode. > > soc-dia.h has the new SND_SOC_DAIFMT_IBM_IFM definition set as : > #define SND_SOC_DAIFMT_IBM_IFM (5 << 12) /* IC clk & FRM master */ > > The cs42xx8 codec driver is enabled for this mode and so too is the BCM2835 > SoC driver. This forms a chain : bcm2835<=>IC<=>cs42xx8 > where the IC is bit and frame master. Model your IC as a codec. No need to add patches to random drivers and add a flag with the rather meaningless semantics "someone else is automagically setting up clocks for me". so long, Hias > > Matt Flax (3): > ASoC : Add an IC bit and frame master mode (SoC and Codec slave). > ASoC: cs42xx8: allow IC master mode. > ASoC: bcm2835: Add mutichannel mode in DSP and IC master modes. > > include/sound/soc-dai.h | 9 ++++++--- > sound/soc/bcm/bcm2835-i2s.c | 21 ++++++++++++++++++++- > sound/soc/codecs/cs42xx8.c | 1 + > 3 files changed, 27 insertions(+), 4 deletions(-) > > -- > 2.7.4 >