diff options
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r-- | sound/soc/tegra/tegra_asoc_utils.c | 1 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_das.c | 4 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_i2s.c | 2 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_pcm.c | 2 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_spdif.c | 5 | ||||
-rw-r--r-- | sound/soc/tegra/tegra_wm8903.c | 2 | ||||
-rw-r--r-- | sound/soc/tegra/trimslice.c | 2 |
7 files changed, 7 insertions, 11 deletions
diff --git a/sound/soc/tegra/tegra_asoc_utils.c b/sound/soc/tegra/tegra_asoc_utils.c index dfa85cbb05c..f8428e410e0 100644 --- a/sound/soc/tegra/tegra_asoc_utils.c +++ b/sound/soc/tegra/tegra_asoc_utils.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <linux/device.h> | 24 | #include <linux/device.h> |
25 | #include <linux/err.h> | 25 | #include <linux/err.h> |
26 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
27 | #include <linux/module.h> | ||
27 | 28 | ||
28 | #include "tegra_asoc_utils.h" | 29 | #include "tegra_asoc_utils.h" |
29 | 30 | ||
diff --git a/sound/soc/tegra/tegra_das.c b/sound/soc/tegra/tegra_das.c index 9f24ef73f2c..3b55a44146a 100644 --- a/sound/soc/tegra/tegra_das.c +++ b/sound/soc/tegra/tegra_das.c | |||
@@ -212,7 +212,7 @@ err_release: | |||
212 | release_mem_region(res->start, resource_size(res)); | 212 | release_mem_region(res->start, resource_size(res)); |
213 | err_free: | 213 | err_free: |
214 | kfree(das); | 214 | kfree(das); |
215 | das = 0; | 215 | das = NULL; |
216 | exit: | 216 | exit: |
217 | return ret; | 217 | return ret; |
218 | } | 218 | } |
@@ -234,7 +234,7 @@ static int __devexit tegra_das_remove(struct platform_device *pdev) | |||
234 | release_mem_region(res->start, resource_size(res)); | 234 | release_mem_region(res->start, resource_size(res)); |
235 | 235 | ||
236 | kfree(das); | 236 | kfree(das); |
237 | das = 0; | 237 | das = NULL; |
238 | 238 | ||
239 | return 0; | 239 | return 0; |
240 | } | 240 | } |
diff --git a/sound/soc/tegra/tegra_i2s.c b/sound/soc/tegra/tegra_i2s.c index f36b9969cfe..6728fab8c41 100644 --- a/sound/soc/tegra/tegra_i2s.c +++ b/sound/soc/tegra/tegra_i2s.c | |||
@@ -312,7 +312,7 @@ static struct snd_soc_dai_ops tegra_i2s_dai_ops = { | |||
312 | .trigger = tegra_i2s_trigger, | 312 | .trigger = tegra_i2s_trigger, |
313 | }; | 313 | }; |
314 | 314 | ||
315 | struct snd_soc_dai_driver tegra_i2s_dai[] = { | 315 | static struct snd_soc_dai_driver tegra_i2s_dai[] = { |
316 | { | 316 | { |
317 | .name = DRV_NAME ".0", | 317 | .name = DRV_NAME ".0", |
318 | .probe = tegra_i2s_probe, | 318 | .probe = tegra_i2s_probe, |
diff --git a/sound/soc/tegra/tegra_pcm.c b/sound/soc/tegra/tegra_pcm.c index c7cfd96e991..436def1dfa3 100644 --- a/sound/soc/tegra/tegra_pcm.c +++ b/sound/soc/tegra/tegra_pcm.c | |||
@@ -367,7 +367,7 @@ static void tegra_pcm_free(struct snd_pcm *pcm) | |||
367 | tegra_pcm_deallocate_dma_buffer(pcm, SNDRV_PCM_STREAM_PLAYBACK); | 367 | tegra_pcm_deallocate_dma_buffer(pcm, SNDRV_PCM_STREAM_PLAYBACK); |
368 | } | 368 | } |
369 | 369 | ||
370 | struct snd_soc_platform_driver tegra_pcm_platform = { | 370 | static struct snd_soc_platform_driver tegra_pcm_platform = { |
371 | .ops = &tegra_pcm_ops, | 371 | .ops = &tegra_pcm_ops, |
372 | .pcm_new = tegra_pcm_new, | 372 | .pcm_new = tegra_pcm_new, |
373 | .pcm_free = tegra_pcm_free, | 373 | .pcm_free = tegra_pcm_free, |
diff --git a/sound/soc/tegra/tegra_spdif.c b/sound/soc/tegra/tegra_spdif.c index abe606b0a29..dd11d0c6347 100644 --- a/sound/soc/tegra/tegra_spdif.c +++ b/sound/soc/tegra/tegra_spdif.c | |||
@@ -127,7 +127,7 @@ static int tegra_spdif_hw_params(struct snd_pcm_substream *substream, | |||
127 | { | 127 | { |
128 | struct device *dev = substream->pcm->card->dev; | 128 | struct device *dev = substream->pcm->card->dev; |
129 | struct tegra_spdif *spdif = snd_soc_dai_get_drvdata(dai); | 129 | struct tegra_spdif *spdif = snd_soc_dai_get_drvdata(dai); |
130 | int ret, srate, spdifclock; | 130 | int ret, spdifclock; |
131 | 131 | ||
132 | spdif->reg_ctrl &= ~TEGRA_SPDIF_CTRL_PACK; | 132 | spdif->reg_ctrl &= ~TEGRA_SPDIF_CTRL_PACK; |
133 | spdif->reg_ctrl &= ~TEGRA_SPDIF_CTRL_BIT_MODE_MASK; | 133 | spdif->reg_ctrl &= ~TEGRA_SPDIF_CTRL_BIT_MODE_MASK; |
@@ -140,7 +140,6 @@ static int tegra_spdif_hw_params(struct snd_pcm_substream *substream, | |||
140 | return -EINVAL; | 140 | return -EINVAL; |
141 | } | 141 | } |
142 | 142 | ||
143 | srate = params_rate(params); | ||
144 | switch (params_rate(params)) { | 143 | switch (params_rate(params)) { |
145 | case 32000: | 144 | case 32000: |
146 | spdifclock = 4096000; | 145 | spdifclock = 4096000; |
@@ -232,7 +231,7 @@ static struct snd_soc_dai_ops tegra_spdif_dai_ops = { | |||
232 | .trigger = tegra_spdif_trigger, | 231 | .trigger = tegra_spdif_trigger, |
233 | }; | 232 | }; |
234 | 233 | ||
235 | struct snd_soc_dai_driver tegra_spdif_dai = { | 234 | static struct snd_soc_dai_driver tegra_spdif_dai = { |
236 | .name = DRV_NAME, | 235 | .name = DRV_NAME, |
237 | .probe = tegra_spdif_probe, | 236 | .probe = tegra_spdif_probe, |
238 | .playback = { | 237 | .playback = { |
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c index be27f1d229a..a81cf39257b 100644 --- a/sound/soc/tegra/tegra_wm8903.c +++ b/sound/soc/tegra/tegra_wm8903.c | |||
@@ -339,8 +339,6 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd) | |||
339 | snd_soc_dapm_nc_pin(dapm, "LINEOUTL"); | 339 | snd_soc_dapm_nc_pin(dapm, "LINEOUTL"); |
340 | } | 340 | } |
341 | 341 | ||
342 | snd_soc_dapm_sync(dapm); | ||
343 | |||
344 | return 0; | 342 | return 0; |
345 | } | 343 | } |
346 | 344 | ||
diff --git a/sound/soc/tegra/trimslice.c b/sound/soc/tegra/trimslice.c index 8fc07e9adf2..b3a7efa6d96 100644 --- a/sound/soc/tegra/trimslice.c +++ b/sound/soc/tegra/trimslice.c | |||
@@ -124,8 +124,6 @@ static int trimslice_asoc_init(struct snd_soc_pcm_runtime *rtd) | |||
124 | snd_soc_dapm_nc_pin(dapm, "RHPOUT"); | 124 | snd_soc_dapm_nc_pin(dapm, "RHPOUT"); |
125 | snd_soc_dapm_nc_pin(dapm, "MICIN"); | 125 | snd_soc_dapm_nc_pin(dapm, "MICIN"); |
126 | 126 | ||
127 | snd_soc_dapm_sync(dapm); | ||
128 | |||
129 | return 0; | 127 | return 0; |
130 | } | 128 | } |
131 | 129 | ||