diff options
| -rw-r--r-- | sound/soc/codecs/Kconfig | 12 | ||||
| -rw-r--r-- | sound/soc/codecs/Makefile | 4 | ||||
| -rw-r--r-- | sound/soc/codecs/sigmadsp-i2c.c | 35 | ||||
| -rw-r--r-- | sound/soc/codecs/sigmadsp-regmap.c | 36 | ||||
| -rw-r--r-- | sound/soc/codecs/sigmadsp.c | 65 | ||||
| -rw-r--r-- | sound/soc/codecs/sigmadsp.h | 20 | ||||
| -rw-r--r-- | sound/soc/fsl/fsl_dma.c | 4 | ||||
| -rw-r--r-- | sound/soc/fsl/fsl_spdif.c | 6 | ||||
| -rw-r--r-- | sound/soc/pxa/Kconfig | 11 | ||||
| -rw-r--r-- | sound/soc/sh/rcar/core.c | 2 |
10 files changed, 119 insertions, 76 deletions
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index cbfa1e18f651..0b9571c858f8 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig | |||
| @@ -225,11 +225,11 @@ config SND_SOC_ADAU1373 | |||
| 225 | config SND_SOC_ADAU1701 | 225 | config SND_SOC_ADAU1701 |
| 226 | tristate "Analog Devices ADAU1701 CODEC" | 226 | tristate "Analog Devices ADAU1701 CODEC" |
| 227 | depends on I2C | 227 | depends on I2C |
| 228 | select SND_SOC_SIGMADSP | 228 | select SND_SOC_SIGMADSP_I2C |
| 229 | 229 | ||
| 230 | config SND_SOC_ADAU17X1 | 230 | config SND_SOC_ADAU17X1 |
| 231 | tristate | 231 | tristate |
| 232 | select SND_SOC_SIGMADSP | 232 | select SND_SOC_SIGMADSP_REGMAP |
| 233 | 233 | ||
| 234 | config SND_SOC_ADAU1761 | 234 | config SND_SOC_ADAU1761 |
| 235 | tristate | 235 | tristate |
| @@ -476,6 +476,14 @@ config SND_SOC_SIGMADSP | |||
| 476 | tristate | 476 | tristate |
| 477 | select CRC32 | 477 | select CRC32 |
| 478 | 478 | ||
| 479 | config SND_SOC_SIGMADSP_I2C | ||
| 480 | tristate | ||
| 481 | select SND_SOC_SIGMADSP | ||
| 482 | |||
| 483 | config SND_SOC_SIGMADSP_REGMAP | ||
| 484 | tristate | ||
| 485 | select SND_SOC_SIGMADSP | ||
| 486 | |||
| 479 | config SND_SOC_SIRF_AUDIO_CODEC | 487 | config SND_SOC_SIRF_AUDIO_CODEC |
| 480 | tristate "SiRF SoC internal audio codec" | 488 | tristate "SiRF SoC internal audio codec" |
| 481 | select REGMAP_MMIO | 489 | select REGMAP_MMIO |
diff --git a/sound/soc/codecs/Makefile b/sound/soc/codecs/Makefile index be3377b8d73f..1bd6e1cf6f82 100644 --- a/sound/soc/codecs/Makefile +++ b/sound/soc/codecs/Makefile | |||
| @@ -77,6 +77,8 @@ snd-soc-sgtl5000-objs := sgtl5000.o | |||
| 77 | snd-soc-alc5623-objs := alc5623.o | 77 | snd-soc-alc5623-objs := alc5623.o |
| 78 | snd-soc-alc5632-objs := alc5632.o | 78 | snd-soc-alc5632-objs := alc5632.o |
| 79 | snd-soc-sigmadsp-objs := sigmadsp.o | 79 | snd-soc-sigmadsp-objs := sigmadsp.o |
| 80 | snd-soc-sigmadsp-i2c-objs := sigmadsp-i2c.o | ||
| 81 | snd-soc-sigmadsp-regmap-objs := sigmadsp-regmap.o | ||
| 80 | snd-soc-si476x-objs := si476x.o | 82 | snd-soc-si476x-objs := si476x.o |
| 81 | snd-soc-sirf-audio-codec-objs := sirf-audio-codec.o | 83 | snd-soc-sirf-audio-codec-objs := sirf-audio-codec.o |
| 82 | snd-soc-sn95031-objs := sn95031.o | 84 | snd-soc-sn95031-objs := sn95031.o |
| @@ -240,6 +242,8 @@ obj-$(CONFIG_SND_SOC_RT5651) += snd-soc-rt5651.o | |||
| 240 | obj-$(CONFIG_SND_SOC_RT5677) += snd-soc-rt5677.o | 242 | obj-$(CONFIG_SND_SOC_RT5677) += snd-soc-rt5677.o |
| 241 | obj-$(CONFIG_SND_SOC_SGTL5000) += snd-soc-sgtl5000.o | 243 | obj-$(CONFIG_SND_SOC_SGTL5000) += snd-soc-sgtl5000.o |
| 242 | obj-$(CONFIG_SND_SOC_SIGMADSP) += snd-soc-sigmadsp.o | 244 | obj-$(CONFIG_SND_SOC_SIGMADSP) += snd-soc-sigmadsp.o |
| 245 | obj-$(CONFIG_SND_SOC_SIGMADSP_I2C) += snd-soc-sigmadsp-i2c.o | ||
| 246 | obj-$(CONFIG_SND_SOC_SIGMADSP_REGMAP) += snd-soc-sigmadsp-regmap.o | ||
| 243 | obj-$(CONFIG_SND_SOC_SI476X) += snd-soc-si476x.o | 247 | obj-$(CONFIG_SND_SOC_SI476X) += snd-soc-si476x.o |
| 244 | obj-$(CONFIG_SND_SOC_SN95031) +=snd-soc-sn95031.o | 248 | obj-$(CONFIG_SND_SOC_SN95031) +=snd-soc-sn95031.o |
| 245 | obj-$(CONFIG_SND_SOC_SPDIF) += snd-soc-spdif-rx.o snd-soc-spdif-tx.o | 249 | obj-$(CONFIG_SND_SOC_SPDIF) += snd-soc-spdif-rx.o snd-soc-spdif-tx.o |
diff --git a/sound/soc/codecs/sigmadsp-i2c.c b/sound/soc/codecs/sigmadsp-i2c.c new file mode 100644 index 000000000000..246081aae8ca --- /dev/null +++ b/sound/soc/codecs/sigmadsp-i2c.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* | ||
| 2 | * Load Analog Devices SigmaStudio firmware files | ||
| 3 | * | ||
| 4 | * Copyright 2009-2011 Analog Devices Inc. | ||
| 5 | * | ||
| 6 | * Licensed under the GPL-2 or later. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #include <linux/i2c.h> | ||
| 10 | #include <linux/export.h> | ||
| 11 | #include <linux/module.h> | ||
| 12 | |||
| 13 | #include "sigmadsp.h" | ||
| 14 | |||
| 15 | static int sigma_action_write_i2c(void *control_data, | ||
| 16 | const struct sigma_action *sa, size_t len) | ||
| 17 | { | ||
| 18 | return i2c_master_send(control_data, (const unsigned char *)&sa->addr, | ||
| 19 | len); | ||
| 20 | } | ||
| 21 | |||
| 22 | int process_sigma_firmware(struct i2c_client *client, const char *name) | ||
| 23 | { | ||
| 24 | struct sigma_firmware ssfw; | ||
| 25 | |||
| 26 | ssfw.control_data = client; | ||
| 27 | ssfw.write = sigma_action_write_i2c; | ||
| 28 | |||
| 29 | return _process_sigma_firmware(&client->dev, &ssfw, name); | ||
| 30 | } | ||
| 31 | EXPORT_SYMBOL(process_sigma_firmware); | ||
| 32 | |||
| 33 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | ||
| 34 | MODULE_DESCRIPTION("SigmaDSP I2C firmware loader"); | ||
| 35 | MODULE_LICENSE("GPL"); | ||
diff --git a/sound/soc/codecs/sigmadsp-regmap.c b/sound/soc/codecs/sigmadsp-regmap.c new file mode 100644 index 000000000000..f78ed8d2cfb2 --- /dev/null +++ b/sound/soc/codecs/sigmadsp-regmap.c | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* | ||
| 2 | * Load Analog Devices SigmaStudio firmware files | ||
| 3 | * | ||
| 4 | * Copyright 2009-2011 Analog Devices Inc. | ||
| 5 | * | ||
| 6 | * Licensed under the GPL-2 or later. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #include <linux/regmap.h> | ||
| 10 | #include <linux/export.h> | ||
| 11 | #include <linux/module.h> | ||
| 12 | |||
| 13 | #include "sigmadsp.h" | ||
| 14 | |||
| 15 | static int sigma_action_write_regmap(void *control_data, | ||
| 16 | const struct sigma_action *sa, size_t len) | ||
| 17 | { | ||
| 18 | return regmap_raw_write(control_data, be16_to_cpu(sa->addr), | ||
| 19 | sa->payload, len - 2); | ||
| 20 | } | ||
| 21 | |||
| 22 | int process_sigma_firmware_regmap(struct device *dev, struct regmap *regmap, | ||
| 23 | const char *name) | ||
| 24 | { | ||
| 25 | struct sigma_firmware ssfw; | ||
| 26 | |||
| 27 | ssfw.control_data = regmap; | ||
| 28 | ssfw.write = sigma_action_write_regmap; | ||
| 29 | |||
| 30 | return _process_sigma_firmware(dev, &ssfw, name); | ||
| 31 | } | ||
| 32 | EXPORT_SYMBOL(process_sigma_firmware_regmap); | ||
| 33 | |||
| 34 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | ||
| 35 | MODULE_DESCRIPTION("SigmaDSP regmap firmware loader"); | ||
| 36 | MODULE_LICENSE("GPL"); | ||
diff --git a/sound/soc/codecs/sigmadsp.c b/sound/soc/codecs/sigmadsp.c index 4068f2491232..f2de7e049bc6 100644 --- a/sound/soc/codecs/sigmadsp.c +++ b/sound/soc/codecs/sigmadsp.c | |||
| @@ -34,23 +34,6 @@ enum { | |||
| 34 | SIGMA_ACTION_END, | 34 | SIGMA_ACTION_END, |
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | struct sigma_action { | ||
| 38 | u8 instr; | ||
| 39 | u8 len_hi; | ||
| 40 | __le16 len; | ||
| 41 | __be16 addr; | ||
| 42 | unsigned char payload[]; | ||
| 43 | } __packed; | ||
| 44 | |||
| 45 | struct sigma_firmware { | ||
| 46 | const struct firmware *fw; | ||
| 47 | size_t pos; | ||
| 48 | |||
| 49 | void *control_data; | ||
| 50 | int (*write)(void *control_data, const struct sigma_action *sa, | ||
| 51 | size_t len); | ||
| 52 | }; | ||
| 53 | |||
| 54 | static inline u32 sigma_action_len(struct sigma_action *sa) | 37 | static inline u32 sigma_action_len(struct sigma_action *sa) |
| 55 | { | 38 | { |
| 56 | return (sa->len_hi << 16) | le16_to_cpu(sa->len); | 39 | return (sa->len_hi << 16) | le16_to_cpu(sa->len); |
| @@ -138,7 +121,7 @@ process_sigma_actions(struct sigma_firmware *ssfw) | |||
| 138 | return 0; | 121 | return 0; |
| 139 | } | 122 | } |
| 140 | 123 | ||
| 141 | static int _process_sigma_firmware(struct device *dev, | 124 | int _process_sigma_firmware(struct device *dev, |
| 142 | struct sigma_firmware *ssfw, const char *name) | 125 | struct sigma_firmware *ssfw, const char *name) |
| 143 | { | 126 | { |
| 144 | int ret; | 127 | int ret; |
| @@ -197,50 +180,6 @@ static int _process_sigma_firmware(struct device *dev, | |||
| 197 | 180 | ||
| 198 | return ret; | 181 | return ret; |
| 199 | } | 182 | } |
| 200 | 183 | EXPORT_SYMBOL_GPL(_process_sigma_firmware); | |
| 201 | #if IS_ENABLED(CONFIG_I2C) | ||
| 202 | |||
| 203 | static int sigma_action_write_i2c(void *control_data, | ||
| 204 | const struct sigma_action *sa, size_t len) | ||
| 205 | { | ||
| 206 | return i2c_master_send(control_data, (const unsigned char *)&sa->addr, | ||
| 207 | len); | ||
| 208 | } | ||
| 209 | |||
| 210 | int process_sigma_firmware(struct i2c_client *client, const char *name) | ||
| 211 | { | ||
| 212 | struct sigma_firmware ssfw; | ||
| 213 | |||
| 214 | ssfw.control_data = client; | ||
| 215 | ssfw.write = sigma_action_write_i2c; | ||
| 216 | |||
| 217 | return _process_sigma_firmware(&client->dev, &ssfw, name); | ||
| 218 | } | ||
| 219 | EXPORT_SYMBOL(process_sigma_firmware); | ||
| 220 | |||
| 221 | #endif | ||
| 222 | |||
| 223 | #if IS_ENABLED(CONFIG_REGMAP) | ||
| 224 | |||
| 225 | static int sigma_action_write_regmap(void *control_data, | ||
| 226 | const struct sigma_action *sa, size_t len) | ||
| 227 | { | ||
| 228 | return regmap_raw_write(control_data, be16_to_cpu(sa->addr), | ||
| 229 | sa->payload, len - 2); | ||
| 230 | } | ||
| 231 | |||
| 232 | int process_sigma_firmware_regmap(struct device *dev, struct regmap *regmap, | ||
| 233 | const char *name) | ||
| 234 | { | ||
| 235 | struct sigma_firmware ssfw; | ||
| 236 | |||
| 237 | ssfw.control_data = regmap; | ||
| 238 | ssfw.write = sigma_action_write_regmap; | ||
| 239 | |||
| 240 | return _process_sigma_firmware(dev, &ssfw, name); | ||
| 241 | } | ||
| 242 | EXPORT_SYMBOL(process_sigma_firmware_regmap); | ||
| 243 | |||
| 244 | #endif | ||
| 245 | 184 | ||
| 246 | MODULE_LICENSE("GPL"); | 185 | MODULE_LICENSE("GPL"); |
diff --git a/sound/soc/codecs/sigmadsp.h b/sound/soc/codecs/sigmadsp.h index e439cbd7af7d..c47cd23e9827 100644 --- a/sound/soc/codecs/sigmadsp.h +++ b/sound/soc/codecs/sigmadsp.h | |||
| @@ -12,6 +12,26 @@ | |||
| 12 | #include <linux/device.h> | 12 | #include <linux/device.h> |
| 13 | #include <linux/regmap.h> | 13 | #include <linux/regmap.h> |
| 14 | 14 | ||
| 15 | struct sigma_action { | ||
| 16 | u8 instr; | ||
| 17 | u8 len_hi; | ||
| 18 | __le16 len; | ||
| 19 | __be16 addr; | ||
| 20 | unsigned char payload[]; | ||
| 21 | } __packed; | ||
| 22 | |||
| 23 | struct sigma_firmware { | ||
| 24 | const struct firmware *fw; | ||
| 25 | size_t pos; | ||
| 26 | |||
| 27 | void *control_data; | ||
| 28 | int (*write)(void *control_data, const struct sigma_action *sa, | ||
| 29 | size_t len); | ||
| 30 | }; | ||
| 31 | |||
| 32 | int _process_sigma_firmware(struct device *dev, | ||
| 33 | struct sigma_firmware *ssfw, const char *name); | ||
| 34 | |||
| 15 | struct i2c_client; | 35 | struct i2c_client; |
| 16 | 36 | ||
| 17 | extern int process_sigma_firmware(struct i2c_client *client, const char *name); | 37 | extern int process_sigma_firmware(struct i2c_client *client, const char *name); |
diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c index 6bb0ea59284f..a609aafc994d 100644 --- a/sound/soc/fsl/fsl_dma.c +++ b/sound/soc/fsl/fsl_dma.c | |||
| @@ -923,8 +923,8 @@ static int fsl_soc_dma_probe(struct platform_device *pdev) | |||
| 923 | dma->dai.pcm_free = fsl_dma_free_dma_buffers; | 923 | dma->dai.pcm_free = fsl_dma_free_dma_buffers; |
| 924 | 924 | ||
| 925 | /* Store the SSI-specific information that we need */ | 925 | /* Store the SSI-specific information that we need */ |
| 926 | dma->ssi_stx_phys = res.start + offsetof(struct ccsr_ssi, stx0); | 926 | dma->ssi_stx_phys = res.start + CCSR_SSI_STX0; |
| 927 | dma->ssi_srx_phys = res.start + offsetof(struct ccsr_ssi, srx0); | 927 | dma->ssi_srx_phys = res.start + CCSR_SSI_SRX0; |
| 928 | 928 | ||
| 929 | iprop = of_get_property(ssi_np, "fsl,fifo-depth", NULL); | 929 | iprop = of_get_property(ssi_np, "fsl,fifo-depth", NULL); |
| 930 | if (iprop) | 930 | if (iprop) |
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index b912d45a2a4c..d7a60614dd21 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c | |||
| @@ -762,7 +762,7 @@ static int fsl_spdif_vbit_get(struct snd_kcontrol *kcontrol, | |||
| 762 | struct regmap *regmap = spdif_priv->regmap; | 762 | struct regmap *regmap = spdif_priv->regmap; |
| 763 | u32 val; | 763 | u32 val; |
| 764 | 764 | ||
| 765 | val = regmap_read(regmap, REG_SPDIF_SIS, &val); | 765 | regmap_read(regmap, REG_SPDIF_SIS, &val); |
| 766 | ucontrol->value.integer.value[0] = (val & INT_VAL_NOGOOD) != 0; | 766 | ucontrol->value.integer.value[0] = (val & INT_VAL_NOGOOD) != 0; |
| 767 | regmap_write(regmap, REG_SPDIF_SIC, INT_VAL_NOGOOD); | 767 | regmap_write(regmap, REG_SPDIF_SIC, INT_VAL_NOGOOD); |
| 768 | 768 | ||
| @@ -1076,7 +1076,7 @@ static u32 fsl_spdif_txclk_caldiv(struct fsl_spdif_priv *spdif_priv, | |||
| 1076 | goto out; | 1076 | goto out; |
| 1077 | } else if (arate / rate[index] == 1) { | 1077 | } else if (arate / rate[index] == 1) { |
| 1078 | /* A little bigger than expect */ | 1078 | /* A little bigger than expect */ |
| 1079 | sub = (arate - rate[index]) * 100000; | 1079 | sub = (u64)(arate - rate[index]) * 100000; |
| 1080 | do_div(sub, rate[index]); | 1080 | do_div(sub, rate[index]); |
| 1081 | if (sub >= savesub) | 1081 | if (sub >= savesub) |
| 1082 | continue; | 1082 | continue; |
| @@ -1086,7 +1086,7 @@ static u32 fsl_spdif_txclk_caldiv(struct fsl_spdif_priv *spdif_priv, | |||
| 1086 | spdif_priv->txrate[index] = arate; | 1086 | spdif_priv->txrate[index] = arate; |
| 1087 | } else if (rate[index] / arate == 1) { | 1087 | } else if (rate[index] / arate == 1) { |
| 1088 | /* A little smaller than expect */ | 1088 | /* A little smaller than expect */ |
| 1089 | sub = (rate[index] - arate) * 100000; | 1089 | sub = (u64)(rate[index] - arate) * 100000; |
| 1090 | do_div(sub, rate[index]); | 1090 | do_div(sub, rate[index]); |
| 1091 | if (sub >= savesub) | 1091 | if (sub >= savesub) |
| 1092 | continue; | 1092 | continue; |
diff --git a/sound/soc/pxa/Kconfig b/sound/soc/pxa/Kconfig index 6acb225ec6fd..2434b6d61675 100644 --- a/sound/soc/pxa/Kconfig +++ b/sound/soc/pxa/Kconfig | |||
| @@ -11,6 +11,7 @@ config SND_PXA2XX_SOC | |||
| 11 | config SND_MMP_SOC | 11 | config SND_MMP_SOC |
| 12 | bool "Soc Audio for Marvell MMP chips" | 12 | bool "Soc Audio for Marvell MMP chips" |
| 13 | depends on ARCH_MMP | 13 | depends on ARCH_MMP |
| 14 | select MMP_SRAM | ||
| 14 | select SND_SOC_GENERIC_DMAENGINE_PCM | 15 | select SND_SOC_GENERIC_DMAENGINE_PCM |
| 15 | select SND_ARM | 16 | select SND_ARM |
| 16 | help | 17 | help |
| @@ -40,7 +41,7 @@ config SND_MMP_SOC_SSPA | |||
| 40 | 41 | ||
| 41 | config SND_PXA2XX_SOC_CORGI | 42 | config SND_PXA2XX_SOC_CORGI |
| 42 | tristate "SoC Audio support for Sharp Zaurus SL-C7x0" | 43 | tristate "SoC Audio support for Sharp Zaurus SL-C7x0" |
| 43 | depends on SND_PXA2XX_SOC && PXA_SHARP_C7xx | 44 | depends on SND_PXA2XX_SOC && PXA_SHARP_C7xx && I2C |
| 44 | select SND_PXA2XX_SOC_I2S | 45 | select SND_PXA2XX_SOC_I2S |
| 45 | select SND_SOC_WM8731 | 46 | select SND_SOC_WM8731 |
| 46 | help | 47 | help |
| @@ -49,7 +50,7 @@ config SND_PXA2XX_SOC_CORGI | |||
| 49 | 50 | ||
| 50 | config SND_PXA2XX_SOC_SPITZ | 51 | config SND_PXA2XX_SOC_SPITZ |
| 51 | tristate "SoC Audio support for Sharp Zaurus SL-Cxx00" | 52 | tristate "SoC Audio support for Sharp Zaurus SL-Cxx00" |
| 52 | depends on SND_PXA2XX_SOC && PXA_SHARP_Cxx00 | 53 | depends on SND_PXA2XX_SOC && PXA_SHARP_Cxx00 && I2C |
| 53 | select SND_PXA2XX_SOC_I2S | 54 | select SND_PXA2XX_SOC_I2S |
| 54 | select SND_SOC_WM8750 | 55 | select SND_SOC_WM8750 |
| 55 | help | 56 | help |
| @@ -58,7 +59,7 @@ config SND_PXA2XX_SOC_SPITZ | |||
| 58 | 59 | ||
| 59 | config SND_PXA2XX_SOC_Z2 | 60 | config SND_PXA2XX_SOC_Z2 |
| 60 | tristate "SoC Audio support for Zipit Z2" | 61 | tristate "SoC Audio support for Zipit Z2" |
| 61 | depends on SND_PXA2XX_SOC && MACH_ZIPIT2 | 62 | depends on SND_PXA2XX_SOC && MACH_ZIPIT2 && I2C |
| 62 | select SND_PXA2XX_SOC_I2S | 63 | select SND_PXA2XX_SOC_I2S |
| 63 | select SND_SOC_WM8750 | 64 | select SND_SOC_WM8750 |
| 64 | help | 65 | help |
| @@ -66,7 +67,7 @@ config SND_PXA2XX_SOC_Z2 | |||
| 66 | 67 | ||
| 67 | config SND_PXA2XX_SOC_POODLE | 68 | config SND_PXA2XX_SOC_POODLE |
| 68 | tristate "SoC Audio support for Poodle" | 69 | tristate "SoC Audio support for Poodle" |
| 69 | depends on SND_PXA2XX_SOC && MACH_POODLE | 70 | depends on SND_PXA2XX_SOC && MACH_POODLE && I2C |
| 70 | select SND_PXA2XX_SOC_I2S | 71 | select SND_PXA2XX_SOC_I2S |
| 71 | select SND_SOC_WM8731 | 72 | select SND_SOC_WM8731 |
| 72 | help | 73 | help |
| @@ -181,7 +182,7 @@ config SND_PXA2XX_SOC_HX4700 | |||
| 181 | 182 | ||
| 182 | config SND_PXA2XX_SOC_MAGICIAN | 183 | config SND_PXA2XX_SOC_MAGICIAN |
| 183 | tristate "SoC Audio support for HTC Magician" | 184 | tristate "SoC Audio support for HTC Magician" |
| 184 | depends on SND_PXA2XX_SOC && MACH_MAGICIAN | 185 | depends on SND_PXA2XX_SOC && MACH_MAGICIAN && I2C |
| 185 | select SND_PXA2XX_SOC_I2S | 186 | select SND_PXA2XX_SOC_I2S |
| 186 | select SND_PXA_SOC_SSP | 187 | select SND_PXA_SOC_SSP |
| 187 | select SND_SOC_UDA1380 | 188 | select SND_SOC_UDA1380 |
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 91880156e1ae..4e86265f625c 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c | |||
| @@ -315,7 +315,7 @@ static void rsnd_dma_of_name(struct rsnd_dma *dma, | |||
| 315 | dst_mod = mod[index]; | 315 | dst_mod = mod[index]; |
| 316 | } else { | 316 | } else { |
| 317 | src_mod = mod[index]; | 317 | src_mod = mod[index]; |
| 318 | dst_mod = mod[index + 1]; | 318 | dst_mod = mod[index - 1]; |
| 319 | } | 319 | } |
| 320 | 320 | ||
| 321 | index = 0; | 321 | index = 0; |
