]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00139265-1 spdif capture gets clock from spdif stream
authorAlan Tull <alan.tull@freescale.com>
Thu, 20 Oct 2011 15:51:55 +0000 (10:51 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:17 +0000 (08:33 +0200)
The S/PDIF block's DPLL recovers the clock from the input
bitstream.  So S/PDIF capture rate is not dependent on
transmit clocks available.

Signed-off-by: Alan Tull <alan.tull@freescale.com>
sound/soc/codecs/mxc_spdif.c

index fbcd7549420992bbfcfc63b98d620e89e3923502..3369e3bdcc22f5b072d5a737b3356249b5008095 100644 (file)
@@ -1167,11 +1167,9 @@ static int __devinit mxc_spdif_probe(struct platform_device *pdev)
                mxc_spdif_codec_dai.capture.channels_min = 2;
                mxc_spdif_codec_dai.capture.channels_max = 2;
 
-               if (plat_data->spdif_clk_44100 >= 0)
-                       mxc_spdif_codec_dai.capture.rates |= SNDRV_PCM_RATE_44100;
-               if (plat_data->spdif_clk_48000 >= 0)
-                       mxc_spdif_codec_dai.capture.rates |= SNDRV_PCM_RATE_32000 |
-                                                            SNDRV_PCM_RATE_48000;
+               /* rx clock is recovered from audio stream, so it is not
+                  dependent on tx clocks available */
+               mxc_spdif_codec_dai.capture.rates = MXC_SPDIF_RATES_CAPTURE;
 
                mxc_spdif_codec_dai.capture.formats = MXC_SPDIF_FORMATS_CAPTURE;
        }