diff options
| -rw-r--r-- | sound/soc/codecs/alc5623.c | 3 | ||||
| -rw-r--r-- | sound/soc/codecs/rt5640.c | 9 | ||||
| -rw-r--r-- | sound/soc/codecs/tlv320aic23-i2c.c | 7 | ||||
| -rw-r--r-- | sound/soc/samsung/ac97.c | 6 | ||||
| -rw-r--r-- | sound/soc/samsung/dma.h | 6 | ||||
| -rw-r--r-- | sound/soc/samsung/i2s.c | 6 | ||||
| -rw-r--r-- | sound/soc/samsung/pcm.c | 5 | ||||
| -rw-r--r-- | sound/soc/samsung/s3c2412-i2s.c | 4 | ||||
| -rw-r--r-- | sound/soc/samsung/s3c24xx-i2s.c | 4 | ||||
| -rw-r--r-- | sound/soc/samsung/spdif.c | 3 |
10 files changed, 35 insertions, 18 deletions
diff --git a/sound/soc/codecs/alc5623.c b/sound/soc/codecs/alc5623.c index 09f7e773bafb..f500905e9373 100644 --- a/sound/soc/codecs/alc5623.c +++ b/sound/soc/codecs/alc5623.c | |||
| @@ -902,7 +902,6 @@ static int alc5623_probe(struct snd_soc_codec *codec) | |||
| 902 | { | 902 | { |
| 903 | struct alc5623_priv *alc5623 = snd_soc_codec_get_drvdata(codec); | 903 | struct alc5623_priv *alc5623 = snd_soc_codec_get_drvdata(codec); |
| 904 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 904 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
| 905 | int ret; | ||
| 906 | 905 | ||
| 907 | alc5623_reset(codec); | 906 | alc5623_reset(codec); |
| 908 | 907 | ||
| @@ -961,7 +960,7 @@ static int alc5623_probe(struct snd_soc_codec *codec) | |||
| 961 | return -EINVAL; | 960 | return -EINVAL; |
| 962 | } | 961 | } |
| 963 | 962 | ||
| 964 | return ret; | 963 | return 0; |
| 965 | } | 964 | } |
| 966 | 965 | ||
| 967 | /* power down chip */ | 966 | /* power down chip */ |
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c index 0061ae6b6716..68b4dd622b87 100644 --- a/sound/soc/codecs/rt5640.c +++ b/sound/soc/codecs/rt5640.c | |||
| @@ -2074,6 +2074,14 @@ static const struct i2c_device_id rt5640_i2c_id[] = { | |||
| 2074 | }; | 2074 | }; |
| 2075 | MODULE_DEVICE_TABLE(i2c, rt5640_i2c_id); | 2075 | MODULE_DEVICE_TABLE(i2c, rt5640_i2c_id); |
| 2076 | 2076 | ||
| 2077 | #if defined(CONFIG_OF) | ||
| 2078 | static const struct of_device_id rt5640_of_match[] = { | ||
| 2079 | { .compatible = "realtek,rt5640", }, | ||
| 2080 | {}, | ||
| 2081 | }; | ||
| 2082 | MODULE_DEVICE_TABLE(of, rt5640_of_match); | ||
| 2083 | #endif | ||
| 2084 | |||
| 2077 | #ifdef CONFIG_ACPI | 2085 | #ifdef CONFIG_ACPI |
| 2078 | static struct acpi_device_id rt5640_acpi_match[] = { | 2086 | static struct acpi_device_id rt5640_acpi_match[] = { |
| 2079 | { "INT33CA", 0 }, | 2087 | { "INT33CA", 0 }, |
| @@ -2203,6 +2211,7 @@ static struct i2c_driver rt5640_i2c_driver = { | |||
| 2203 | .name = "rt5640", | 2211 | .name = "rt5640", |
| 2204 | .owner = THIS_MODULE, | 2212 | .owner = THIS_MODULE, |
| 2205 | .acpi_match_table = ACPI_PTR(rt5640_acpi_match), | 2213 | .acpi_match_table = ACPI_PTR(rt5640_acpi_match), |
| 2214 | .of_match_table = of_match_ptr(rt5640_of_match), | ||
| 2206 | }, | 2215 | }, |
| 2207 | .probe = rt5640_i2c_probe, | 2216 | .probe = rt5640_i2c_probe, |
| 2208 | .remove = rt5640_i2c_remove, | 2217 | .remove = rt5640_i2c_remove, |
diff --git a/sound/soc/codecs/tlv320aic23-i2c.c b/sound/soc/codecs/tlv320aic23-i2c.c index 20fc46092c2c..b73c94ebcc2a 100644 --- a/sound/soc/codecs/tlv320aic23-i2c.c +++ b/sound/soc/codecs/tlv320aic23-i2c.c | |||
| @@ -43,9 +43,16 @@ static const struct i2c_device_id tlv320aic23_id[] = { | |||
| 43 | 43 | ||
| 44 | MODULE_DEVICE_TABLE(i2c, tlv320aic23_id); | 44 | MODULE_DEVICE_TABLE(i2c, tlv320aic23_id); |
| 45 | 45 | ||
| 46 | static const struct of_device_id tlv320aic23_of_match[] = { | ||
| 47 | { .compatible = "ti,tlv320aic23", }, | ||
| 48 | { } | ||
| 49 | }; | ||
| 50 | MODULE_DEVICE_TABLE(of, tlv320aic23_of_match); | ||
| 51 | |||
| 46 | static struct i2c_driver tlv320aic23_i2c_driver = { | 52 | static struct i2c_driver tlv320aic23_i2c_driver = { |
| 47 | .driver = { | 53 | .driver = { |
| 48 | .name = "tlv320aic23-codec", | 54 | .name = "tlv320aic23-codec", |
| 55 | .of_match_table = of_match_ptr(tlv320aic23_of_match), | ||
| 49 | }, | 56 | }, |
| 50 | .probe = tlv320aic23_i2c_probe, | 57 | .probe = tlv320aic23_i2c_probe, |
| 51 | .remove = __exit_p(tlv320aic23_i2c_remove), | 58 | .remove = __exit_p(tlv320aic23_i2c_remove), |
diff --git a/sound/soc/samsung/ac97.c b/sound/soc/samsung/ac97.c index 4a88e36c82ec..76b072bd4ba2 100644 --- a/sound/soc/samsung/ac97.c +++ b/sound/soc/samsung/ac97.c | |||
| @@ -39,15 +39,15 @@ struct s3c_ac97_info { | |||
| 39 | }; | 39 | }; |
| 40 | static struct s3c_ac97_info s3c_ac97; | 40 | static struct s3c_ac97_info s3c_ac97; |
| 41 | 41 | ||
| 42 | static struct s3c2410_dma_client s3c_dma_client_out = { | 42 | static struct s3c_dma_client s3c_dma_client_out = { |
| 43 | .name = "AC97 PCMOut" | 43 | .name = "AC97 PCMOut" |
| 44 | }; | 44 | }; |
| 45 | 45 | ||
| 46 | static struct s3c2410_dma_client s3c_dma_client_in = { | 46 | static struct s3c_dma_client s3c_dma_client_in = { |
| 47 | .name = "AC97 PCMIn" | 47 | .name = "AC97 PCMIn" |
| 48 | }; | 48 | }; |
| 49 | 49 | ||
| 50 | static struct s3c2410_dma_client s3c_dma_client_micin = { | 50 | static struct s3c_dma_client s3c_dma_client_micin = { |
| 51 | .name = "AC97 MicIn" | 51 | .name = "AC97 MicIn" |
| 52 | }; | 52 | }; |
| 53 | 53 | ||
diff --git a/sound/soc/samsung/dma.h b/sound/soc/samsung/dma.h index 225e5378014e..ad7c0f04f00d 100644 --- a/sound/soc/samsung/dma.h +++ b/sound/soc/samsung/dma.h | |||
| @@ -14,8 +14,12 @@ | |||
| 14 | 14 | ||
| 15 | #include <sound/dmaengine_pcm.h> | 15 | #include <sound/dmaengine_pcm.h> |
| 16 | 16 | ||
| 17 | struct s3c_dma_client { | ||
| 18 | char *name; | ||
| 19 | }; | ||
| 20 | |||
| 17 | struct s3c_dma_params { | 21 | struct s3c_dma_params { |
| 18 | struct s3c2410_dma_client *client; /* stream identifier */ | 22 | struct s3c_dma_client *client; /* stream identifier */ |
| 19 | int channel; /* Channel ID */ | 23 | int channel; /* Channel ID */ |
| 20 | dma_addr_t dma_addr; | 24 | dma_addr_t dma_addr; |
| 21 | int dma_size; /* Size of the DMA transfer */ | 25 | int dma_size; /* Size of the DMA transfer */ |
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 0a9b44c940ce..048ead967199 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c | |||
| @@ -1211,10 +1211,10 @@ static int samsung_i2s_probe(struct platform_device *pdev) | |||
| 1211 | pri_dai->dma_playback.dma_addr = regs_base + I2STXD; | 1211 | pri_dai->dma_playback.dma_addr = regs_base + I2STXD; |
| 1212 | pri_dai->dma_capture.dma_addr = regs_base + I2SRXD; | 1212 | pri_dai->dma_capture.dma_addr = regs_base + I2SRXD; |
| 1213 | pri_dai->dma_playback.client = | 1213 | pri_dai->dma_playback.client = |
| 1214 | (struct s3c2410_dma_client *)&pri_dai->dma_playback; | 1214 | (struct s3c_dma_client *)&pri_dai->dma_playback; |
| 1215 | pri_dai->dma_playback.ch_name = "tx"; | 1215 | pri_dai->dma_playback.ch_name = "tx"; |
| 1216 | pri_dai->dma_capture.client = | 1216 | pri_dai->dma_capture.client = |
| 1217 | (struct s3c2410_dma_client *)&pri_dai->dma_capture; | 1217 | (struct s3c_dma_client *)&pri_dai->dma_capture; |
| 1218 | pri_dai->dma_capture.ch_name = "rx"; | 1218 | pri_dai->dma_capture.ch_name = "rx"; |
| 1219 | pri_dai->dma_playback.dma_size = 4; | 1219 | pri_dai->dma_playback.dma_size = 4; |
| 1220 | pri_dai->dma_capture.dma_size = 4; | 1220 | pri_dai->dma_capture.dma_size = 4; |
| @@ -1233,7 +1233,7 @@ static int samsung_i2s_probe(struct platform_device *pdev) | |||
| 1233 | } | 1233 | } |
| 1234 | sec_dai->dma_playback.dma_addr = regs_base + I2STXDS; | 1234 | sec_dai->dma_playback.dma_addr = regs_base + I2STXDS; |
| 1235 | sec_dai->dma_playback.client = | 1235 | sec_dai->dma_playback.client = |
| 1236 | (struct s3c2410_dma_client *)&sec_dai->dma_playback; | 1236 | (struct s3c_dma_client *)&sec_dai->dma_playback; |
| 1237 | sec_dai->dma_playback.ch_name = "tx-sec"; | 1237 | sec_dai->dma_playback.ch_name = "tx-sec"; |
| 1238 | 1238 | ||
| 1239 | if (!np) { | 1239 | if (!np) { |
diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c index 6a5e4bf6ac96..ab54e297957c 100644 --- a/sound/soc/samsung/pcm.c +++ b/sound/soc/samsung/pcm.c | |||
| @@ -20,7 +20,6 @@ | |||
| 20 | #include <sound/pcm_params.h> | 20 | #include <sound/pcm_params.h> |
| 21 | 21 | ||
| 22 | #include <linux/platform_data/asoc-s3c.h> | 22 | #include <linux/platform_data/asoc-s3c.h> |
| 23 | #include <mach/dma.h> | ||
| 24 | 23 | ||
| 25 | #include "dma.h" | 24 | #include "dma.h" |
| 26 | #include "pcm.h" | 25 | #include "pcm.h" |
| @@ -132,11 +131,11 @@ struct s3c_pcm_info { | |||
| 132 | struct s3c_dma_params *dma_capture; | 131 | struct s3c_dma_params *dma_capture; |
| 133 | }; | 132 | }; |
| 134 | 133 | ||
| 135 | static struct s3c2410_dma_client s3c_pcm_dma_client_out = { | 134 | static struct s3c_dma_client s3c_pcm_dma_client_out = { |
| 136 | .name = "PCM Stereo out" | 135 | .name = "PCM Stereo out" |
| 137 | }; | 136 | }; |
| 138 | 137 | ||
| 139 | static struct s3c2410_dma_client s3c_pcm_dma_client_in = { | 138 | static struct s3c_dma_client s3c_pcm_dma_client_in = { |
| 140 | .name = "PCM Stereo in" | 139 | .name = "PCM Stereo in" |
| 141 | }; | 140 | }; |
| 142 | 141 | ||
diff --git a/sound/soc/samsung/s3c2412-i2s.c b/sound/soc/samsung/s3c2412-i2s.c index d0794458963a..e9bb5d7a71ee 100644 --- a/sound/soc/samsung/s3c2412-i2s.c +++ b/sound/soc/samsung/s3c2412-i2s.c | |||
| @@ -33,11 +33,11 @@ | |||
| 33 | #include "regs-i2s-v2.h" | 33 | #include "regs-i2s-v2.h" |
| 34 | #include "s3c2412-i2s.h" | 34 | #include "s3c2412-i2s.h" |
| 35 | 35 | ||
| 36 | static struct s3c2410_dma_client s3c2412_dma_client_out = { | 36 | static struct s3c_dma_client s3c2412_dma_client_out = { |
| 37 | .name = "I2S PCM Stereo out" | 37 | .name = "I2S PCM Stereo out" |
| 38 | }; | 38 | }; |
| 39 | 39 | ||
| 40 | static struct s3c2410_dma_client s3c2412_dma_client_in = { | 40 | static struct s3c_dma_client s3c2412_dma_client_in = { |
| 41 | .name = "I2S PCM Stereo in" | 41 | .name = "I2S PCM Stereo in" |
| 42 | }; | 42 | }; |
| 43 | 43 | ||
diff --git a/sound/soc/samsung/s3c24xx-i2s.c b/sound/soc/samsung/s3c24xx-i2s.c index f31e916dd8c4..d7b8457b5650 100644 --- a/sound/soc/samsung/s3c24xx-i2s.c +++ b/sound/soc/samsung/s3c24xx-i2s.c | |||
| @@ -31,11 +31,11 @@ | |||
| 31 | #include "dma.h" | 31 | #include "dma.h" |
| 32 | #include "s3c24xx-i2s.h" | 32 | #include "s3c24xx-i2s.h" |
| 33 | 33 | ||
| 34 | static struct s3c2410_dma_client s3c24xx_dma_client_out = { | 34 | static struct s3c_dma_client s3c24xx_dma_client_out = { |
| 35 | .name = "I2S PCM Stereo out" | 35 | .name = "I2S PCM Stereo out" |
| 36 | }; | 36 | }; |
| 37 | 37 | ||
| 38 | static struct s3c2410_dma_client s3c24xx_dma_client_in = { | 38 | static struct s3c_dma_client s3c24xx_dma_client_in = { |
| 39 | .name = "I2S PCM Stereo in" | 39 | .name = "I2S PCM Stereo in" |
| 40 | }; | 40 | }; |
| 41 | 41 | ||
diff --git a/sound/soc/samsung/spdif.c b/sound/soc/samsung/spdif.c index 28487dcc4538..cfe63b7bcc9f 100644 --- a/sound/soc/samsung/spdif.c +++ b/sound/soc/samsung/spdif.c | |||
| @@ -18,7 +18,6 @@ | |||
| 18 | #include <sound/pcm_params.h> | 18 | #include <sound/pcm_params.h> |
| 19 | 19 | ||
| 20 | #include <linux/platform_data/asoc-s3c.h> | 20 | #include <linux/platform_data/asoc-s3c.h> |
| 21 | #include <mach/dma.h> | ||
| 22 | 21 | ||
| 23 | #include "dma.h" | 22 | #include "dma.h" |
| 24 | #include "spdif.h" | 23 | #include "spdif.h" |
| @@ -94,7 +93,7 @@ struct samsung_spdif_info { | |||
| 94 | struct s3c_dma_params *dma_playback; | 93 | struct s3c_dma_params *dma_playback; |
| 95 | }; | 94 | }; |
| 96 | 95 | ||
| 97 | static struct s3c2410_dma_client spdif_dma_client_out = { | 96 | static struct s3c_dma_client spdif_dma_client_out = { |
| 98 | .name = "S/PDIF Stereo out", | 97 | .name = "S/PDIF Stereo out", |
| 99 | }; | 98 | }; |
| 100 | 99 | ||
