diff options
-rw-r--r-- | Documentation/devicetree/bindings/sound/fsl-sai.txt | 3 | ||||
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/sound/fsl-sai.txt b/Documentation/devicetree/bindings/sound/fsl-sai.txt index 77864f4dd352..dc9f9c356268 100644 --- a/Documentation/devicetree/bindings/sound/fsl-sai.txt +++ b/Documentation/devicetree/bindings/sound/fsl-sai.txt | |||
@@ -38,8 +38,7 @@ Note: | |||
38 | default synchronous mode (sync Rx with Tx) will be used, which means both | 38 | default synchronous mode (sync Rx with Tx) will be used, which means both |
39 | transimitter and receiver will send and receive data by following clocks | 39 | transimitter and receiver will send and receive data by following clocks |
40 | of transimitter. | 40 | of transimitter. |
41 | - fsl,sai-asynchronous will be ignored if fsl,sai-synchronous-rx property is | 41 | - fsl,sai-asynchronous and fsl,sai-synchronous-rx are exclusive. |
42 | already present. | ||
43 | 42 | ||
44 | Example: | 43 | Example: |
45 | sai2: sai@40031000 { | 44 | sai2: sai@40031000 { |
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index ef7c758627b1..4c9e71c2f52a 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c | |||
@@ -634,6 +634,13 @@ static int fsl_sai_probe(struct platform_device *pdev) | |||
634 | fsl_sai_dai.symmetric_channels = 1; | 634 | fsl_sai_dai.symmetric_channels = 1; |
635 | fsl_sai_dai.symmetric_samplebits = 1; | 635 | fsl_sai_dai.symmetric_samplebits = 1; |
636 | 636 | ||
637 | if (of_find_property(np, "fsl,sai-synchronous-rx", NULL) && | ||
638 | of_find_property(np, "fsl,sai-asynchronous", NULL)) { | ||
639 | /* error out if both synchronous and asynchronous are present */ | ||
640 | dev_err(&pdev->dev, "invalid binding for synchronous mode\n"); | ||
641 | return -EINVAL; | ||
642 | } | ||
643 | |||
637 | if (of_find_property(np, "fsl,sai-synchronous-rx", NULL)) { | 644 | if (of_find_property(np, "fsl,sai-synchronous-rx", NULL)) { |
638 | /* Sync Rx with Tx */ | 645 | /* Sync Rx with Tx */ |
639 | sai->synchronous[RX] = false; | 646 | sai->synchronous[RX] = false; |