diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/Kconfig | 4 | ||||
-rw-r--r-- | sound/soc/codecs/Kconfig | 3 | ||||
-rw-r--r-- | sound/soc/codecs/twl6040.c | 3 | ||||
-rw-r--r-- | sound/soc/fsl/mpc8610_hpcd.c | 8 | ||||
-rw-r--r-- | sound/soc/fsl/p1022_ds.c | 10 | ||||
-rw-r--r-- | sound/soc/imx/imx-audmux.c | 8 | ||||
-rw-r--r-- | sound/soc/omap/Kconfig | 2 | ||||
-rw-r--r-- | sound/soc/soc-core.c | 8 | ||||
-rw-r--r-- | sound/soc/soc-dapm.c | 16 |
9 files changed, 18 insertions, 44 deletions
diff --git a/sound/pci/Kconfig b/sound/pci/Kconfig index 88168044375f..5ca0939e4223 100644 --- a/sound/pci/Kconfig +++ b/sound/pci/Kconfig | |||
@@ -2,8 +2,8 @@ | |||
2 | 2 | ||
3 | config SND_TEA575X | 3 | config SND_TEA575X |
4 | tristate | 4 | tristate |
5 | depends on SND_FM801_TEA575X_BOOL || SND_ES1968_RADIO || RADIO_SF16FMR2 | 5 | depends on SND_FM801_TEA575X_BOOL || SND_ES1968_RADIO || RADIO_SF16FMR2 || RADIO_MAXIRADIO |
6 | default SND_FM801 || SND_ES1968 || RADIO_SF16FMR2 | 6 | default SND_FM801 || SND_ES1968 || RADIO_SF16FMR2 || RADIO_MAXIRADIO |
7 | 7 | ||
8 | menuconfig SND_PCI | 8 | menuconfig SND_PCI |
9 | bool "PCI sound devices" | 9 | bool "PCI sound devices" |
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 6508e8b790bb..59d8efaa17e9 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig | |||
@@ -57,7 +57,7 @@ config SND_SOC_ALL_CODECS | |||
57 | select SND_SOC_TPA6130A2 if I2C | 57 | select SND_SOC_TPA6130A2 if I2C |
58 | select SND_SOC_TLV320DAC33 if I2C | 58 | select SND_SOC_TLV320DAC33 if I2C |
59 | select SND_SOC_TWL4030 if TWL4030_CORE | 59 | select SND_SOC_TWL4030 if TWL4030_CORE |
60 | select SND_SOC_TWL6040 if TWL4030_CORE | 60 | select SND_SOC_TWL6040 if TWL6040_CORE |
61 | select SND_SOC_UDA134X | 61 | select SND_SOC_UDA134X |
62 | select SND_SOC_UDA1380 if I2C | 62 | select SND_SOC_UDA1380 if I2C |
63 | select SND_SOC_WL1273 if MFD_WL1273_CORE | 63 | select SND_SOC_WL1273 if MFD_WL1273_CORE |
@@ -276,7 +276,6 @@ config SND_SOC_TWL4030 | |||
276 | tristate | 276 | tristate |
277 | 277 | ||
278 | config SND_SOC_TWL6040 | 278 | config SND_SOC_TWL6040 |
279 | select TWL6040_CORE | ||
280 | tristate | 279 | tristate |
281 | 280 | ||
282 | config SND_SOC_UDA134X | 281 | config SND_SOC_UDA134X |
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index 2d8c6b825e57..dc7509b9d53a 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/pm.h> | 26 | #include <linux/pm.h> |
27 | #include <linux/platform_device.h> | 27 | #include <linux/platform_device.h> |
28 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
29 | #include <linux/i2c/twl.h> | ||
30 | #include <linux/mfd/twl6040.h> | 29 | #include <linux/mfd/twl6040.h> |
31 | 30 | ||
32 | #include <sound/core.h> | 31 | #include <sound/core.h> |
@@ -1528,7 +1527,7 @@ static int twl6040_resume(struct snd_soc_codec *codec) | |||
1528 | static int twl6040_probe(struct snd_soc_codec *codec) | 1527 | static int twl6040_probe(struct snd_soc_codec *codec) |
1529 | { | 1528 | { |
1530 | struct twl6040_data *priv; | 1529 | struct twl6040_data *priv; |
1531 | struct twl4030_codec_data *pdata = dev_get_platdata(codec->dev); | 1530 | struct twl6040_codec_data *pdata = dev_get_platdata(codec->dev); |
1532 | struct platform_device *pdev = container_of(codec->dev, | 1531 | struct platform_device *pdev = container_of(codec->dev, |
1533 | struct platform_device, dev); | 1532 | struct platform_device, dev); |
1534 | int ret = 0; | 1533 | int ret = 0; |
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c index afbabf427f27..3fea5a15ffe8 100644 --- a/sound/soc/fsl/mpc8610_hpcd.c +++ b/sound/soc/fsl/mpc8610_hpcd.c | |||
@@ -58,9 +58,9 @@ static int mpc8610_hpcd_machine_probe(struct snd_soc_card *card) | |||
58 | { | 58 | { |
59 | struct mpc8610_hpcd_data *machine_data = | 59 | struct mpc8610_hpcd_data *machine_data = |
60 | container_of(card, struct mpc8610_hpcd_data, card); | 60 | container_of(card, struct mpc8610_hpcd_data, card); |
61 | struct ccsr_guts_86xx __iomem *guts; | 61 | struct ccsr_guts __iomem *guts; |
62 | 62 | ||
63 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_86xx)); | 63 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
64 | if (!guts) { | 64 | if (!guts) { |
65 | dev_err(card->dev, "could not map global utilities\n"); | 65 | dev_err(card->dev, "could not map global utilities\n"); |
66 | return -ENOMEM; | 66 | return -ENOMEM; |
@@ -142,9 +142,9 @@ static int mpc8610_hpcd_machine_remove(struct snd_soc_card *card) | |||
142 | { | 142 | { |
143 | struct mpc8610_hpcd_data *machine_data = | 143 | struct mpc8610_hpcd_data *machine_data = |
144 | container_of(card, struct mpc8610_hpcd_data, card); | 144 | container_of(card, struct mpc8610_hpcd_data, card); |
145 | struct ccsr_guts_86xx __iomem *guts; | 145 | struct ccsr_guts __iomem *guts; |
146 | 146 | ||
147 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_86xx)); | 147 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
148 | if (!guts) { | 148 | if (!guts) { |
149 | dev_err(card->dev, "could not map global utilities\n"); | 149 | dev_err(card->dev, "could not map global utilities\n"); |
150 | return -ENOMEM; | 150 | return -ENOMEM; |
diff --git a/sound/soc/fsl/p1022_ds.c b/sound/soc/fsl/p1022_ds.c index 46623405a2ce..982a1c944983 100644 --- a/sound/soc/fsl/p1022_ds.c +++ b/sound/soc/fsl/p1022_ds.c | |||
@@ -46,7 +46,7 @@ | |||
46 | * ch: The channel on the DMA controller (0, 1, 2, or 3) | 46 | * ch: The channel on the DMA controller (0, 1, 2, or 3) |
47 | * device: The device to set as the target (CCSR_GUTS_DMUXCR_xxx) | 47 | * device: The device to set as the target (CCSR_GUTS_DMUXCR_xxx) |
48 | */ | 48 | */ |
49 | static inline void guts_set_dmuxcr(struct ccsr_guts_85xx __iomem *guts, | 49 | static inline void guts_set_dmuxcr(struct ccsr_guts __iomem *guts, |
50 | unsigned int co, unsigned int ch, unsigned int device) | 50 | unsigned int co, unsigned int ch, unsigned int device) |
51 | { | 51 | { |
52 | unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch)); | 52 | unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch)); |
@@ -90,9 +90,9 @@ static int p1022_ds_machine_probe(struct snd_soc_card *card) | |||
90 | { | 90 | { |
91 | struct machine_data *mdata = | 91 | struct machine_data *mdata = |
92 | container_of(card, struct machine_data, card); | 92 | container_of(card, struct machine_data, card); |
93 | struct ccsr_guts_85xx __iomem *guts; | 93 | struct ccsr_guts __iomem *guts; |
94 | 94 | ||
95 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_85xx)); | 95 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
96 | if (!guts) { | 96 | if (!guts) { |
97 | dev_err(card->dev, "could not map global utilities\n"); | 97 | dev_err(card->dev, "could not map global utilities\n"); |
98 | return -ENOMEM; | 98 | return -ENOMEM; |
@@ -164,9 +164,9 @@ static int p1022_ds_machine_remove(struct snd_soc_card *card) | |||
164 | { | 164 | { |
165 | struct machine_data *mdata = | 165 | struct machine_data *mdata = |
166 | container_of(card, struct machine_data, card); | 166 | container_of(card, struct machine_data, card); |
167 | struct ccsr_guts_85xx __iomem *guts; | 167 | struct ccsr_guts __iomem *guts; |
168 | 168 | ||
169 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts_85xx)); | 169 | guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); |
170 | if (!guts) { | 170 | if (!guts) { |
171 | dev_err(card->dev, "could not map global utilities\n"); | 171 | dev_err(card->dev, "could not map global utilities\n"); |
172 | return -ENOMEM; | 172 | return -ENOMEM; |
diff --git a/sound/soc/imx/imx-audmux.c b/sound/soc/imx/imx-audmux.c index 0fe66c3dde12..f23700359c67 100644 --- a/sound/soc/imx/imx-audmux.c +++ b/sound/soc/imx/imx-audmux.c | |||
@@ -40,12 +40,6 @@ static void __iomem *audmux_base; | |||
40 | #ifdef CONFIG_DEBUG_FS | 40 | #ifdef CONFIG_DEBUG_FS |
41 | static struct dentry *audmux_debugfs_root; | 41 | static struct dentry *audmux_debugfs_root; |
42 | 42 | ||
43 | static int audmux_open_file(struct inode *inode, struct file *file) | ||
44 | { | ||
45 | file->private_data = inode->i_private; | ||
46 | return 0; | ||
47 | } | ||
48 | |||
49 | /* There is an annoying discontinuity in the SSI numbering with regard | 43 | /* There is an annoying discontinuity in the SSI numbering with regard |
50 | * to the Linux number of the devices */ | 44 | * to the Linux number of the devices */ |
51 | static const char *audmux_port_string(int port) | 45 | static const char *audmux_port_string(int port) |
@@ -145,7 +139,7 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf, | |||
145 | } | 139 | } |
146 | 140 | ||
147 | static const struct file_operations audmux_debugfs_fops = { | 141 | static const struct file_operations audmux_debugfs_fops = { |
148 | .open = audmux_open_file, | 142 | .open = simple_open, |
149 | .read = audmux_read_file, | 143 | .read = audmux_read_file, |
150 | .llseek = default_llseek, | 144 | .llseek = default_llseek, |
151 | }; | 145 | }; |
diff --git a/sound/soc/omap/Kconfig b/sound/soc/omap/Kconfig index e00dd0b1139c..deafbfaacdbf 100644 --- a/sound/soc/omap/Kconfig +++ b/sound/soc/omap/Kconfig | |||
@@ -97,7 +97,7 @@ config SND_OMAP_SOC_SDP3430 | |||
97 | 97 | ||
98 | config SND_OMAP_SOC_OMAP_ABE_TWL6040 | 98 | config SND_OMAP_SOC_OMAP_ABE_TWL6040 |
99 | tristate "SoC Audio support for OMAP boards using ABE and twl6040 codec" | 99 | tristate "SoC Audio support for OMAP boards using ABE and twl6040 codec" |
100 | depends on TWL4030_CORE && SND_OMAP_SOC && ARCH_OMAP4 | 100 | depends on TWL6040_CORE && SND_OMAP_SOC && ARCH_OMAP4 |
101 | select SND_OMAP_SOC_DMIC | 101 | select SND_OMAP_SOC_DMIC |
102 | select SND_OMAP_SOC_MCPDM | 102 | select SND_OMAP_SOC_MCPDM |
103 | select SND_SOC_TWL6040 | 103 | select SND_SOC_TWL6040 |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index b390f00b4e99..c88d9741b9e7 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -201,12 +201,6 @@ static ssize_t pmdown_time_set(struct device *dev, | |||
201 | static DEVICE_ATTR(pmdown_time, 0644, pmdown_time_show, pmdown_time_set); | 201 | static DEVICE_ATTR(pmdown_time, 0644, pmdown_time_show, pmdown_time_set); |
202 | 202 | ||
203 | #ifdef CONFIG_DEBUG_FS | 203 | #ifdef CONFIG_DEBUG_FS |
204 | static int codec_reg_open_file(struct inode *inode, struct file *file) | ||
205 | { | ||
206 | file->private_data = inode->i_private; | ||
207 | return 0; | ||
208 | } | ||
209 | |||
210 | static ssize_t codec_reg_read_file(struct file *file, char __user *user_buf, | 204 | static ssize_t codec_reg_read_file(struct file *file, char __user *user_buf, |
211 | size_t count, loff_t *ppos) | 205 | size_t count, loff_t *ppos) |
212 | { | 206 | { |
@@ -264,7 +258,7 @@ static ssize_t codec_reg_write_file(struct file *file, | |||
264 | } | 258 | } |
265 | 259 | ||
266 | static const struct file_operations codec_reg_fops = { | 260 | static const struct file_operations codec_reg_fops = { |
267 | .open = codec_reg_open_file, | 261 | .open = simple_open, |
268 | .read = codec_reg_read_file, | 262 | .read = codec_reg_read_file, |
269 | .write = codec_reg_write_file, | 263 | .write = codec_reg_write_file, |
270 | .llseek = default_llseek, | 264 | .llseek = default_llseek, |
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index dc7dbfe61cd0..1bb6d4a63cd8 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -1546,12 +1546,6 @@ static int dapm_power_widgets(struct snd_soc_dapm_context *dapm, int event) | |||
1546 | } | 1546 | } |
1547 | 1547 | ||
1548 | #ifdef CONFIG_DEBUG_FS | 1548 | #ifdef CONFIG_DEBUG_FS |
1549 | static int dapm_widget_power_open_file(struct inode *inode, struct file *file) | ||
1550 | { | ||
1551 | file->private_data = inode->i_private; | ||
1552 | return 0; | ||
1553 | } | ||
1554 | |||
1555 | static ssize_t dapm_widget_power_read_file(struct file *file, | 1549 | static ssize_t dapm_widget_power_read_file(struct file *file, |
1556 | char __user *user_buf, | 1550 | char __user *user_buf, |
1557 | size_t count, loff_t *ppos) | 1551 | size_t count, loff_t *ppos) |
@@ -1615,17 +1609,11 @@ static ssize_t dapm_widget_power_read_file(struct file *file, | |||
1615 | } | 1609 | } |
1616 | 1610 | ||
1617 | static const struct file_operations dapm_widget_power_fops = { | 1611 | static const struct file_operations dapm_widget_power_fops = { |
1618 | .open = dapm_widget_power_open_file, | 1612 | .open = simple_open, |
1619 | .read = dapm_widget_power_read_file, | 1613 | .read = dapm_widget_power_read_file, |
1620 | .llseek = default_llseek, | 1614 | .llseek = default_llseek, |
1621 | }; | 1615 | }; |
1622 | 1616 | ||
1623 | static int dapm_bias_open_file(struct inode *inode, struct file *file) | ||
1624 | { | ||
1625 | file->private_data = inode->i_private; | ||
1626 | return 0; | ||
1627 | } | ||
1628 | |||
1629 | static ssize_t dapm_bias_read_file(struct file *file, char __user *user_buf, | 1617 | static ssize_t dapm_bias_read_file(struct file *file, char __user *user_buf, |
1630 | size_t count, loff_t *ppos) | 1618 | size_t count, loff_t *ppos) |
1631 | { | 1619 | { |
@@ -1656,7 +1644,7 @@ static ssize_t dapm_bias_read_file(struct file *file, char __user *user_buf, | |||
1656 | } | 1644 | } |
1657 | 1645 | ||
1658 | static const struct file_operations dapm_bias_fops = { | 1646 | static const struct file_operations dapm_bias_fops = { |
1659 | .open = dapm_bias_open_file, | 1647 | .open = simple_open, |
1660 | .read = dapm_bias_read_file, | 1648 | .read = dapm_bias_read_file, |
1661 | .llseek = default_llseek, | 1649 | .llseek = default_llseek, |
1662 | }; | 1650 | }; |