linux/sound/soc/fsl
Elinor Montmasson 6d174cc4f2
ASoC: fsl-asoc-card: merge spdif support from imx-spdif.c
The imx-spdif machine driver creates audio card to directly use an
S/PDIF device. However, it doesn't support interacting with an ASRC.
fsl-asoc-card already has the support to create audio card which can
use the ASRC.

Merge the S/PDIF support from imx-spdif into driver fsl-asoc-card
to extend the support of S/PDIF audio card with the use of ASRC devices.

fsl-asoc-card uses slightly different DT properties than imx-spdif:
* the "spdif-controller" property from imx-spdif is named "audio-cpu" in
  fsl-asoc-card.
* fsl-asoc-card uses codecs explicitly declared in DT
  with "audio-codec".
  With an SPDIF, codec drivers spdif_transmitter and
  spdif_receiver should be used.
  Driver imx-spdif used instead the dummy codec and a pair of
  boolean properties, "spdif-in" and "spdif-out".

To keep backward compatibility, support for "spdif-controller",
"spdif-in" and "spdif-out" is also added to fsl-asoc-card.
However, it is recommended to use the new properties if possible.
It is better to declare transmitter and/or receiver in DT
than using the dummy codec.

DTs using compatible "fsl,imx-audio-spdif" are still compatible, and
fsl-asoc-card will behave the same as imx-spdif
for these DTs.

Signed-off-by: Elinor Montmasson <elinor.montmasson@savoirfairelinux.com>
Link: https://patch.msgid.link/20240627083104.123357-5-elinor.montmasson@savoirfairelinux.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-07-08 16:09:38 +01:00
..
efika-audio-fabric.c
eukrea-tlv320.c
fsl-asoc-card.c ASoC: fsl-asoc-card: merge spdif support from imx-spdif.c 2024-07-08 16:09:38 +01:00
fsl_asrc.c
fsl_asrc.h
fsl_asrc_common.h
fsl_asrc_dma.c
fsl_aud2htx.c
fsl_aud2htx.h
fsl_audmix.c ASoC: fsl_audmix: Split playback and capture stream to different DAI 2024-06-26 17:48:13 +01:00
fsl_audmix.h
fsl_dma.c
fsl_dma.h
fsl_easrc.c
fsl_easrc.h
fsl_esai.c
fsl_esai.h
fsl_micfil.c
fsl_micfil.h
fsl_mqs.c
fsl_qmc_audio.c ASoC: fsl: fsl_qmc_audio: Add support for non-interleaved mode. 2024-07-04 12:25:00 +01:00
fsl_rpmsg.c ASoC: fsl_rpmsg: Add support for i.MX95 platform 2024-07-01 13:12:35 +01:00
fsl_rpmsg.h
fsl_sai.c ASoC: fsl_sai: Add separate DAI for transmitter and receiver 2024-06-26 17:48:12 +01:00
fsl_sai.h ASoC: fsl_sai: Add separate DAI for transmitter and receiver 2024-06-26 17:48:12 +01:00
fsl_spdif.c
fsl_spdif.h
fsl_ssi.c
fsl_ssi.h
fsl_ssi_dbg.c
fsl_utils.c
fsl_utils.h
fsl_xcvr.c ASoC: fsl_xcvr: Improve suspend/resume flow in fsl_xcvr_trigger() 2024-07-03 15:17:51 +01:00
fsl_xcvr.h
imx-audio-rpmsg.c
imx-audmix.c ASoC: imx-audmix: Split capture device for audmix 2024-06-26 17:48:14 +01:00
imx-audmux.c
imx-audmux.h
imx-card.c
imx-es8328.c ASoC: fsl: Remove unused of_gpio.h 2024-06-10 12:48:37 +01:00
imx-hdmi.c
imx-pcm-dma.c
imx-pcm-fiq.c ASoC: fsl: imx-pcm-fiq: add missing MODULE_DESCRIPTION() macro 2024-06-17 13:08:28 +01:00
imx-pcm-rpmsg.c
imx-pcm-rpmsg.h
imx-pcm.h
imx-rpmsg.c ASoC: fsl: Remove unused of_gpio.h 2024-06-10 12:48:37 +01:00
imx-sgtl5000.c
imx-ssi.h
Kconfig ASoC: fsl-asoc-card: merge spdif support from imx-spdif.c 2024-07-08 16:09:38 +01:00
lpc3xxx-i2s.c ASoC: fsl: lpc3xxx-i2s: Avoid using ret uninitialized in lpc32xx_i2s_probe() 2024-07-01 17:50:50 +01:00
lpc3xxx-i2s.h ASoC: fsl: lpc3xxx-i2s: Include bitfield.h for FIELD_PREP 2024-07-01 20:07:28 +01:00
lpc3xxx-pcm.c ASoC: fsl: Add i2s and pcm drivers for LPC32xx CPUs 2024-06-28 13:39:23 +01:00
Makefile ASoC: fsl-asoc-card: merge spdif support from imx-spdif.c 2024-07-08 16:09:38 +01:00
mpc5200_dma.c
mpc5200_dma.h
mpc5200_psc_ac97.c
mpc5200_psc_i2s.c
p1022_ds.c
p1022_rdk.c
pcm030-audio-fabric.c