[alsa-devel] [PATCH 0/3] ASoC: Enable a new IC master mode: bcm2835<=>IC<=>cs42xx8
Matthias Reichl
hias at horus.com
Sat Feb 25 14:39:53 CET 2017
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
>
More information about the Alsa-devel
mailing list