summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorManoj Gangwal <mgangwal@nvidia.com>2012-10-10 12:08:15 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:36:18 -0700
commit4619c318870255bc5d0f41f0250831827ff2ce7a (patch)
treed1596692b15615d30516d0b67054a81f7365c123 /sound
parent255d93b390abf8d4a8a9070bb57aaa25db786892 (diff)
asoc: codec: spdif: Remove platfrom related check.
Bug 1035521 Change-Id: I63e6c1850a4c3d26abeb500547ec3a58edcea54d Signed-off-by: Manoj Gangwal <mgangwal@nvidia.com> Reviewed-on: http://git-master/r/143007 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Peterson <speterson@nvidia.com> Rebase-Id: Rca29680898bb267a4823c00b80a3e63dd03a0082
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/spdif_transciever.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/sound/soc/codecs/spdif_transciever.c b/sound/soc/codecs/spdif_transciever.c
index 4a3e2427dc22..c02c2cfe990f 100644
--- a/sound/soc/codecs/spdif_transciever.c
+++ b/sound/soc/codecs/spdif_transciever.c
@@ -29,8 +29,6 @@
#define STUB_RATES SNDRV_PCM_RATE_8000_96000
#define STUB_FORMATS SNDRV_PCM_FMTBIT_S16_LE
-static struct snd_soc_codec_driver soc_codec_spdif_dit;
-
static int spdif_probe(struct snd_soc_codec *codec) {
codec->dapm.idle_bias_off = 1;
return 0;
@@ -49,7 +47,7 @@ static int spdif_read(struct snd_soc_codec * codec, unsigned int reg){
return 0;
}
-static struct snd_soc_codec_driver soc_codec_spdif_dit1 = {
+static struct snd_soc_codec_driver soc_codec_spdif_dit = {
.probe = spdif_probe,
.dapm_widgets = spdif_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(spdif_dapm_widgets),
@@ -77,14 +75,9 @@ static struct snd_soc_dai_driver dit_stub_dai = {
static int spdif_dit_probe(struct platform_device *pdev)
{
- if (machine_is_kai() ||
- machine_is_tegra_enterprise() ||
- machine_is_tai())
- return snd_soc_register_codec(&pdev->dev,
- &soc_codec_spdif_dit1, &dit_stub_dai, 1);
- else
- return snd_soc_register_codec(&pdev->dev,
- &soc_codec_spdif_dit, &dit_stub_dai, 1);
+ return snd_soc_register_codec(&pdev->dev,
+ &soc_codec_spdif_dit, &dit_stub_dai, 1);
+
}
static int spdif_dit_remove(struct platform_device *pdev)