diff options
author | Alan Tull <alan.tull@freescale.com> | 2011-10-20 10:51:55 -0500 |
---|---|---|
committer | Eric Miao <eric.miao@linaro.org> | 2011-11-10 11:36:46 +0800 |
commit | 2ad18796e07fe8c885c86e079f2059ed4056c3cb (patch) | |
tree | c243a75ec558d79c08db5424dc626fb8a84768e0 | |
parent | cb378f255b2b4fdf2c2edeeb0a3f9885e80a9363 (diff) |
SAUCE: mxc_spdif: spdif gets clock from spdif streamtest/lt-3.2
BugLink: http://bugs.launchpad.net/bugs/880632
The S/PDIF block's DPLL recovers the clock from the input
bitstream.
Signed-off-by: Alan Tull <alan.tull@freescale.com>
Signed-off-by: Eric Miao <eric.miao@linaro.org>
-rw-r--r-- | sound/soc/codecs/mxc_spdif.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/soc/codecs/mxc_spdif.c b/sound/soc/codecs/mxc_spdif.c index fbcd7549420..3369e3bdcc2 100644 --- a/sound/soc/codecs/mxc_spdif.c +++ b/sound/soc/codecs/mxc_spdif.c @@ -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; } |