diff options
author | Manoj Gangwal <mgangwal@nvidia.com> | 2012-10-10 12:08:15 +0530 |
---|---|---|
committer | Mrutyunjay Sawant <msawant@nvidia.com> | 2012-10-11 03:10:59 -0700 |
commit | 0e6736d66e420654338f2dac5b69bfee1771431b (patch) | |
tree | 36969a29fe63c637ad4a5cce0133abc9976dc7cb /sound | |
parent | cbc5fb31ee68575ba1e8a5f234e8c03ed530f288 (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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/spdif_transciever.c | 15 |
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) |