diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-18 10:05:33 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-18 10:05:33 -0400 |
commit | 23abd863d2d6072eefbbf77543c349cd8a9fc5d8 (patch) | |
tree | 0015d453518c400cff3911a148860b4514e99a9f | |
parent | d45a26bd9790fcde58cf4b11a775ff56c6b44e0b (diff) | |
parent | cd3ff762991ebf309e089ed5a87a8965f175f46a (diff) |
Merge remote-tracking branch 'asoc/topic/fsl' into asoc-next
-rw-r--r-- | sound/soc/fsl/fsl_ssi.h | 8 | ||||
-rw-r--r-- | sound/soc/fsl/imx-audmux.c | 3 | ||||
-rw-r--r-- | sound/soc/fsl/imx-pcm-fiq.c | 2 | ||||
-rw-r--r-- | sound/soc/fsl/imx-sgtl5000.c | 2 | ||||
-rw-r--r-- | sound/soc/fsl/imx-ssi.c | 2 |
5 files changed, 12 insertions, 5 deletions
diff --git a/sound/soc/fsl/fsl_ssi.h b/sound/soc/fsl/fsl_ssi.h index 217300029b5b..e6b9a69e2a68 100644 --- a/sound/soc/fsl/fsl_ssi.h +++ b/sound/soc/fsl/fsl_ssi.h | |||
@@ -196,5 +196,13 @@ struct ccsr_ssi { | |||
196 | #define CCSR_SSI_SOR_WAIT(x) (((x) & 3) << CCSR_SSI_SOR_WAIT_SHIFT) | 196 | #define CCSR_SSI_SOR_WAIT(x) (((x) & 3) << CCSR_SSI_SOR_WAIT_SHIFT) |
197 | #define CCSR_SSI_SOR_SYNRST 0x00000001 | 197 | #define CCSR_SSI_SOR_SYNRST 0x00000001 |
198 | 198 | ||
199 | #define CCSR_SSI_SACNT_FRDIV(x) (((x) & 0x3f) << 5) | ||
200 | #define CCSR_SSI_SACNT_WR 0x00000010 | ||
201 | #define CCSR_SSI_SACNT_RD 0x00000008 | ||
202 | #define CCSR_SSI_SACNT_RDWR_MASK 0x00000018 | ||
203 | #define CCSR_SSI_SACNT_TIF 0x00000004 | ||
204 | #define CCSR_SSI_SACNT_FV 0x00000002 | ||
205 | #define CCSR_SSI_SACNT_AC97EN 0x00000001 | ||
206 | |||
199 | #endif | 207 | #endif |
200 | 208 | ||
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index 3f333e5b4673..47f046a8fdab 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c | |||
@@ -262,7 +262,7 @@ static int imx_audmux_probe(struct platform_device *pdev) | |||
262 | return PTR_ERR(pinctrl); | 262 | return PTR_ERR(pinctrl); |
263 | } | 263 | } |
264 | 264 | ||
265 | audmux_clk = clk_get(&pdev->dev, "audmux"); | 265 | audmux_clk = devm_clk_get(&pdev->dev, "audmux"); |
266 | if (IS_ERR(audmux_clk)) { | 266 | if (IS_ERR(audmux_clk)) { |
267 | dev_dbg(&pdev->dev, "cannot get clock: %ld\n", | 267 | dev_dbg(&pdev->dev, "cannot get clock: %ld\n", |
268 | PTR_ERR(audmux_clk)); | 268 | PTR_ERR(audmux_clk)); |
@@ -282,7 +282,6 @@ static int imx_audmux_remove(struct platform_device *pdev) | |||
282 | { | 282 | { |
283 | if (audmux_type == IMX31_AUDMUX) | 283 | if (audmux_type == IMX31_AUDMUX) |
284 | audmux_debugfs_remove(); | 284 | audmux_debugfs_remove(); |
285 | clk_put(audmux_clk); | ||
286 | 285 | ||
287 | return 0; | 286 | return 0; |
288 | } | 287 | } |
diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c index 025d0d9494f4..670b96b0ce2f 100644 --- a/sound/soc/fsl/imx-pcm-fiq.c +++ b/sound/soc/fsl/imx-pcm-fiq.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include "imx-ssi.h" | 34 | #include "imx-ssi.h" |
35 | 35 | ||
36 | struct imx_pcm_runtime_data { | 36 | struct imx_pcm_runtime_data { |
37 | int period; | 37 | unsigned int period; |
38 | int periods; | 38 | int periods; |
39 | unsigned long offset; | 39 | unsigned long offset; |
40 | unsigned long last_offset; | 40 | unsigned long last_offset; |
diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c index 424347e9b2d7..9584e78858df 100644 --- a/sound/soc/fsl/imx-sgtl5000.c +++ b/sound/soc/fsl/imx-sgtl5000.c | |||
@@ -148,7 +148,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev) | |||
148 | data->dai.stream_name = "HiFi"; | 148 | data->dai.stream_name = "HiFi"; |
149 | data->dai.codec_dai_name = "sgtl5000"; | 149 | data->dai.codec_dai_name = "sgtl5000"; |
150 | data->dai.codec_of_node = codec_np; | 150 | data->dai.codec_of_node = codec_np; |
151 | data->dai.cpu_dai_name = dev_name(&ssi_pdev->dev); | 151 | data->dai.cpu_of_node = ssi_np; |
152 | data->dai.platform_name = "imx-pcm-audio"; | 152 | data->dai.platform_name = "imx-pcm-audio"; |
153 | data->dai.init = &imx_sgtl5000_dai_init; | 153 | data->dai.init = &imx_sgtl5000_dai_init; |
154 | data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | | 154 | data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | |
diff --git a/sound/soc/fsl/imx-ssi.c b/sound/soc/fsl/imx-ssi.c index 9128b7b26ecf..935eee204bce 100644 --- a/sound/soc/fsl/imx-ssi.c +++ b/sound/soc/fsl/imx-ssi.c | |||
@@ -386,7 +386,7 @@ static struct snd_soc_dai_driver imx_ac97_dai = { | |||
386 | .stream_name = "AC97 Playback", | 386 | .stream_name = "AC97 Playback", |
387 | .channels_min = 2, | 387 | .channels_min = 2, |
388 | .channels_max = 2, | 388 | .channels_max = 2, |
389 | .rates = SNDRV_PCM_RATE_48000, | 389 | .rates = SNDRV_PCM_RATE_8000_48000, |
390 | .formats = SNDRV_PCM_FMTBIT_S16_LE, | 390 | .formats = SNDRV_PCM_FMTBIT_S16_LE, |
391 | }, | 391 | }, |
392 | .capture = { | 392 | .capture = { |