[alsa-devel] [PATCH v8 2/2] ASoC: fsl: Add S/PDIF machine driver
swarren at wwwdotorg.org
Mon Aug 19 23:39:26 CEST 2013
On 08/19/2013 06:08 AM, Nicolin Chen wrote:
> This patch implements a device-tree-only machine driver for Freescale
> i.MX series Soc. It works with spdif_transmitter/spdif_receiver and
> fsl_spdif.c drivers.
> diff --git a/Documentation/devicetree/bindings/sound/imx-audio-spdif.txt b/Documentation/devicetree/bindings/sound/imx-audio-spdif.txt
> +Optional properties:
> + - spdif-transmitter : The phandle of the spdif-transmitter dummy codec
> + - spdif-receiver : The phandle of the spdif-receiver dummy codec
> +* Note: At least one of these two properties should be set in the DT binding.
Those object truly don't exist in HW and only exist due to internal
details of Linux's ASoC subsystem.
Instead, you should register any SPDIF rx/tx dummy CODEC internally to
the machine driver.
Perhaps you'll still need properties to indicate which of the RX and TX
paths of the HW block are actually connected to anything on the board.
Perhaps a Boolean property "spdif-tx" to indicate TX support, otherwise
RX support is assumed?
Or, to map the properties more directly to HW, perhaps name the property
"spdif-tx-jack-exists", or even "spdif-tx-jack" and make it a phandle to
a node that represents the actual S/PDIF connector?
More information about the Alsa-devel