diff options
Diffstat (limited to 'sound/soc/sh')
-rw-r--r-- | sound/soc/sh/fsi-ak4642.c | 1 | ||||
-rw-r--r-- | sound/soc/sh/fsi-da7210.c | 1 | ||||
-rw-r--r-- | sound/soc/sh/fsi-hdmi.c | 1 | ||||
-rw-r--r-- | sound/soc/sh/fsi.c | 13 | ||||
-rw-r--r-- | sound/soc/sh/sh7760-ac97.c | 7 | ||||
-rw-r--r-- | sound/soc/sh/siu_dai.c | 1 | ||||
-rw-r--r-- | sound/soc/sh/ssi.c | 2 |
7 files changed, 12 insertions, 14 deletions
diff --git a/sound/soc/sh/fsi-ak4642.c b/sound/soc/sh/fsi-ak4642.c index 770a71a15366..dff64b95f5dc 100644 --- a/sound/soc/sh/fsi-ak4642.c +++ b/sound/soc/sh/fsi-ak4642.c | |||
@@ -10,6 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/platform_device.h> | 12 | #include <linux/platform_device.h> |
13 | #include <linux/module.h> | ||
13 | #include <sound/sh_fsi.h> | 14 | #include <sound/sh_fsi.h> |
14 | 15 | ||
15 | struct fsi_ak4642_data { | 16 | struct fsi_ak4642_data { |
diff --git a/sound/soc/sh/fsi-da7210.c b/sound/soc/sh/fsi-da7210.c index 59553fd8c2fb..f5586b5b0c3b 100644 --- a/sound/soc/sh/fsi-da7210.c +++ b/sound/soc/sh/fsi-da7210.c | |||
@@ -11,6 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/module.h> | ||
14 | #include <sound/sh_fsi.h> | 15 | #include <sound/sh_fsi.h> |
15 | 16 | ||
16 | static int fsi_da7210_init(struct snd_soc_pcm_runtime *rtd) | 17 | static int fsi_da7210_init(struct snd_soc_pcm_runtime *rtd) |
diff --git a/sound/soc/sh/fsi-hdmi.c b/sound/soc/sh/fsi-hdmi.c index d3d9fd880680..3ebebe706ad3 100644 --- a/sound/soc/sh/fsi-hdmi.c +++ b/sound/soc/sh/fsi-hdmi.c | |||
@@ -10,6 +10,7 @@ | |||
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/platform_device.h> | 12 | #include <linux/platform_device.h> |
13 | #include <linux/module.h> | ||
13 | #include <sound/sh_fsi.h> | 14 | #include <sound/sh_fsi.h> |
14 | 15 | ||
15 | struct fsi_hdmi_data { | 16 | struct fsi_hdmi_data { |
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 8e112ccffb13..3d7016e128f9 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/pm_runtime.h> | 16 | #include <linux/pm_runtime.h> |
17 | #include <linux/io.h> | 17 | #include <linux/io.h> |
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | #include <linux/module.h> | ||
19 | #include <sound/soc.h> | 20 | #include <sound/soc.h> |
20 | #include <sound/sh_fsi.h> | 21 | #include <sound/sh_fsi.h> |
21 | 22 | ||
@@ -210,7 +211,7 @@ struct fsi_master { | |||
210 | * basic read write function | 211 | * basic read write function |
211 | */ | 212 | */ |
212 | 213 | ||
213 | static void __fsi_reg_write(u32 reg, u32 data) | 214 | static void __fsi_reg_write(u32 __iomem *reg, u32 data) |
214 | { | 215 | { |
215 | /* valid data area is 24bit */ | 216 | /* valid data area is 24bit */ |
216 | data &= 0x00ffffff; | 217 | data &= 0x00ffffff; |
@@ -218,12 +219,12 @@ static void __fsi_reg_write(u32 reg, u32 data) | |||
218 | __raw_writel(data, reg); | 219 | __raw_writel(data, reg); |
219 | } | 220 | } |
220 | 221 | ||
221 | static u32 __fsi_reg_read(u32 reg) | 222 | static u32 __fsi_reg_read(u32 __iomem *reg) |
222 | { | 223 | { |
223 | return __raw_readl(reg); | 224 | return __raw_readl(reg); |
224 | } | 225 | } |
225 | 226 | ||
226 | static void __fsi_reg_mask_set(u32 reg, u32 mask, u32 data) | 227 | static void __fsi_reg_mask_set(u32 __iomem *reg, u32 mask, u32 data) |
227 | { | 228 | { |
228 | u32 val = __fsi_reg_read(reg); | 229 | u32 val = __fsi_reg_read(reg); |
229 | 230 | ||
@@ -250,7 +251,7 @@ static u32 _fsi_master_read(struct fsi_master *master, u32 reg) | |||
250 | unsigned long flags; | 251 | unsigned long flags; |
251 | 252 | ||
252 | spin_lock_irqsave(&master->lock, flags); | 253 | spin_lock_irqsave(&master->lock, flags); |
253 | ret = __fsi_reg_read((u32)(master->base + reg)); | 254 | ret = __fsi_reg_read(master->base + reg); |
254 | spin_unlock_irqrestore(&master->lock, flags); | 255 | spin_unlock_irqrestore(&master->lock, flags); |
255 | 256 | ||
256 | return ret; | 257 | return ret; |
@@ -264,7 +265,7 @@ static void _fsi_master_mask_set(struct fsi_master *master, | |||
264 | unsigned long flags; | 265 | unsigned long flags; |
265 | 266 | ||
266 | spin_lock_irqsave(&master->lock, flags); | 267 | spin_lock_irqsave(&master->lock, flags); |
267 | __fsi_reg_mask_set((u32)(master->base + reg), mask, data); | 268 | __fsi_reg_mask_set(master->base + reg, mask, data); |
268 | spin_unlock_irqrestore(&master->lock, flags); | 269 | spin_unlock_irqrestore(&master->lock, flags); |
269 | } | 270 | } |
270 | 271 | ||
@@ -1285,7 +1286,7 @@ static int fsi_probe(struct platform_device *pdev) | |||
1285 | pm_runtime_enable(&pdev->dev); | 1286 | pm_runtime_enable(&pdev->dev); |
1286 | dev_set_drvdata(&pdev->dev, master); | 1287 | dev_set_drvdata(&pdev->dev, master); |
1287 | 1288 | ||
1288 | ret = request_irq(irq, &fsi_interrupt, IRQF_DISABLED, | 1289 | ret = request_irq(irq, &fsi_interrupt, 0, |
1289 | id_entry->name, master); | 1290 | id_entry->name, master); |
1290 | if (ret) { | 1291 | if (ret) { |
1291 | dev_err(&pdev->dev, "irq request err\n"); | 1292 | dev_err(&pdev->dev, "irq request err\n"); |
diff --git a/sound/soc/sh/sh7760-ac97.c b/sound/soc/sh/sh7760-ac97.c index 917d3ceadc9d..c62ae689c4a1 100644 --- a/sound/soc/sh/sh7760-ac97.c +++ b/sound/soc/sh/sh7760-ac97.c | |||
@@ -20,12 +20,6 @@ | |||
20 | extern struct snd_soc_dai_driver sh4_hac_dai[2]; | 20 | extern struct snd_soc_dai_driver sh4_hac_dai[2]; |
21 | extern struct snd_soc_platform_driver sh7760_soc_platform; | 21 | extern struct snd_soc_platform_driver sh7760_soc_platform; |
22 | 22 | ||
23 | static int machine_init(struct snd_soc_pcm_runtime *rtd) | ||
24 | { | ||
25 | snd_soc_dapm_sync(&rtd->codec->dapm); | ||
26 | return 0; | ||
27 | } | ||
28 | |||
29 | static struct snd_soc_dai_link sh7760_ac97_dai = { | 23 | static struct snd_soc_dai_link sh7760_ac97_dai = { |
30 | .name = "AC97", | 24 | .name = "AC97", |
31 | .stream_name = "AC97 HiFi", | 25 | .stream_name = "AC97 HiFi", |
@@ -33,7 +27,6 @@ static struct snd_soc_dai_link sh7760_ac97_dai = { | |||
33 | .codec_dai_name = "ac97-hifi", | 27 | .codec_dai_name = "ac97-hifi", |
34 | .platform_name = "sh7760-pcm-audio", | 28 | .platform_name = "sh7760-pcm-audio", |
35 | .codec_name = "ac97-codec", | 29 | .codec_name = "ac97-codec", |
36 | .init = machine_init, | ||
37 | .ops = NULL, | 30 | .ops = NULL, |
38 | }; | 31 | }; |
39 | 32 | ||
diff --git a/sound/soc/sh/siu_dai.c b/sound/soc/sh/siu_dai.c index 4973c2939d79..edacfeb13b94 100644 --- a/sound/soc/sh/siu_dai.c +++ b/sound/soc/sh/siu_dai.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/firmware.h> | 23 | #include <linux/firmware.h> |
24 | #include <linux/pm_runtime.h> | 24 | #include <linux/pm_runtime.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <linux/module.h> | ||
26 | 27 | ||
27 | #include <asm/clock.h> | 28 | #include <asm/clock.h> |
28 | #include <asm/siu.h> | 29 | #include <asm/siu.h> |
diff --git a/sound/soc/sh/ssi.c b/sound/soc/sh/ssi.c index 05192d97b377..e0c621c0553b 100644 --- a/sound/soc/sh/ssi.c +++ b/sound/soc/sh/ssi.c | |||
@@ -342,7 +342,7 @@ static struct snd_soc_dai_ops ssi_dai_ops = { | |||
342 | .set_fmt = ssi_set_fmt, | 342 | .set_fmt = ssi_set_fmt, |
343 | }; | 343 | }; |
344 | 344 | ||
345 | struct snd_soc_dai_driver sh4_ssi_dai[] = { | 345 | static struct snd_soc_dai_driver sh4_ssi_dai[] = { |
346 | { | 346 | { |
347 | .name = "ssi-dai.0", | 347 | .name = "ssi-dai.0", |
348 | .playback = { | 348 | .playback = { |