diff options
author | Mark Brown <broonie@linaro.org> | 2014-05-02 13:00:35 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-02 13:00:35 -0400 |
commit | eba17e6868059849fc2ffa79aabdd5b59f229fb9 (patch) | |
tree | 25c40aff5f46f9de63b331be410fda46a5dddbcb | |
parent | 1025c05f727be33e065bb502a223637681c7991d (diff) | |
parent | c894e394d4b96a57964aac6fda9253d47bafbbf7 (diff) |
Merge branch 'topic/input' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-cs42l51
Conflicts:
sound/soc/codecs/Kconfig
-rw-r--r-- | sound/soc/codecs/Kconfig | 8 | ||||
-rw-r--r-- | sound/soc/codecs/cs42l52.c | 12 | ||||
-rw-r--r-- | sound/soc/codecs/wm8962.c | 12 | ||||
-rw-r--r-- | sound/soc/fsl/Kconfig | 2 | ||||
-rw-r--r-- | sound/soc/samsung/Kconfig | 2 |
5 files changed, 6 insertions, 30 deletions
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 5279ef41597d..d739ba7baeff 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig | |||
@@ -40,7 +40,7 @@ config SND_SOC_ALL_CODECS | |||
40 | select SND_SOC_ALC5632 if I2C | 40 | select SND_SOC_ALC5632 if I2C |
41 | select SND_SOC_CQ0093VC if MFD_DAVINCI_VOICECODEC | 41 | select SND_SOC_CQ0093VC if MFD_DAVINCI_VOICECODEC |
42 | select SND_SOC_CS42L51_I2C if I2C | 42 | select SND_SOC_CS42L51_I2C if I2C |
43 | select SND_SOC_CS42L52 if I2C | 43 | select SND_SOC_CS42L52 if I2C && INPUT |
44 | select SND_SOC_CS42L73 if I2C | 44 | select SND_SOC_CS42L73 if I2C |
45 | select SND_SOC_CS4270 if I2C | 45 | select SND_SOC_CS4270 if I2C |
46 | select SND_SOC_CS4271 if SND_SOC_I2C_AND_SPI | 46 | select SND_SOC_CS4271 if SND_SOC_I2C_AND_SPI |
@@ -127,7 +127,7 @@ config SND_SOC_ALL_CODECS | |||
127 | select SND_SOC_WM8955 if I2C | 127 | select SND_SOC_WM8955 if I2C |
128 | select SND_SOC_WM8960 if I2C | 128 | select SND_SOC_WM8960 if I2C |
129 | select SND_SOC_WM8961 if I2C | 129 | select SND_SOC_WM8961 if I2C |
130 | select SND_SOC_WM8962 if I2C | 130 | select SND_SOC_WM8962 if I2C && INPUT |
131 | select SND_SOC_WM8971 if I2C | 131 | select SND_SOC_WM8971 if I2C |
132 | select SND_SOC_WM8974 if I2C | 132 | select SND_SOC_WM8974 if I2C |
133 | select SND_SOC_WM8978 if I2C | 133 | select SND_SOC_WM8978 if I2C |
@@ -286,7 +286,7 @@ config SND_SOC_CS42L51_I2C | |||
286 | 286 | ||
287 | config SND_SOC_CS42L52 | 287 | config SND_SOC_CS42L52 |
288 | tristate "Cirrus Logic CS42L52 CODEC" | 288 | tristate "Cirrus Logic CS42L52 CODEC" |
289 | depends on I2C | 289 | depends on I2C && INPUT |
290 | 290 | ||
291 | config SND_SOC_CS42L73 | 291 | config SND_SOC_CS42L73 |
292 | tristate "Cirrus Logic CS42L73 CODEC" | 292 | tristate "Cirrus Logic CS42L73 CODEC" |
@@ -602,7 +602,7 @@ config SND_SOC_WM8961 | |||
602 | 602 | ||
603 | config SND_SOC_WM8962 | 603 | config SND_SOC_WM8962 |
604 | tristate "Wolfson Microelectronics WM8962 CODEC" | 604 | tristate "Wolfson Microelectronics WM8962 CODEC" |
605 | depends on I2C | 605 | depends on I2C && INPUT |
606 | 606 | ||
607 | config SND_SOC_WM8971 | 607 | config SND_SOC_WM8971 |
608 | tristate | 608 | tristate |
diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c index 460d35547a68..b7635400f31b 100644 --- a/sound/soc/codecs/cs42l52.c +++ b/sound/soc/codecs/cs42l52.c | |||
@@ -50,11 +50,9 @@ struct cs42l52_private { | |||
50 | u8 mclksel; | 50 | u8 mclksel; |
51 | u32 mclk; | 51 | u32 mclk; |
52 | u8 flags; | 52 | u8 flags; |
53 | #if IS_ENABLED(CONFIG_INPUT) | ||
54 | struct input_dev *beep; | 53 | struct input_dev *beep; |
55 | struct work_struct beep_work; | 54 | struct work_struct beep_work; |
56 | int beep_rate; | 55 | int beep_rate; |
57 | #endif | ||
58 | }; | 56 | }; |
59 | 57 | ||
60 | static const struct reg_default cs42l52_reg_defaults[] = { | 58 | static const struct reg_default cs42l52_reg_defaults[] = { |
@@ -962,7 +960,6 @@ static int cs42l52_resume(struct snd_soc_codec *codec) | |||
962 | return 0; | 960 | return 0; |
963 | } | 961 | } |
964 | 962 | ||
965 | #if IS_ENABLED(CONFIG_INPUT) | ||
966 | static int beep_rates[] = { | 963 | static int beep_rates[] = { |
967 | 261, 522, 585, 667, 706, 774, 889, 1000, | 964 | 261, 522, 585, 667, 706, 774, 889, 1000, |
968 | 1043, 1200, 1333, 1412, 1600, 1714, 2000, 2182 | 965 | 1043, 1200, 1333, 1412, 1600, 1714, 2000, 2182 |
@@ -1096,15 +1093,6 @@ static void cs42l52_free_beep(struct snd_soc_codec *codec) | |||
1096 | snd_soc_update_bits(codec, CS42L52_BEEP_TONE_CTL, | 1093 | snd_soc_update_bits(codec, CS42L52_BEEP_TONE_CTL, |
1097 | CS42L52_BEEP_EN_MASK, 0); | 1094 | CS42L52_BEEP_EN_MASK, 0); |
1098 | } | 1095 | } |
1099 | #else | ||
1100 | static void cs42l52_init_beep(struct snd_soc_codec *codec) | ||
1101 | { | ||
1102 | } | ||
1103 | |||
1104 | static void cs42l52_free_beep(struct snd_soc_codec *codec) | ||
1105 | { | ||
1106 | } | ||
1107 | #endif | ||
1108 | 1096 | ||
1109 | static int cs42l52_probe(struct snd_soc_codec *codec) | 1097 | static int cs42l52_probe(struct snd_soc_codec *codec) |
1110 | { | 1098 | { |
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 5522d2566c67..ba761fc96d2f 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c | |||
@@ -74,11 +74,9 @@ struct wm8962_priv { | |||
74 | struct regulator_bulk_data supplies[WM8962_NUM_SUPPLIES]; | 74 | struct regulator_bulk_data supplies[WM8962_NUM_SUPPLIES]; |
75 | struct notifier_block disable_nb[WM8962_NUM_SUPPLIES]; | 75 | struct notifier_block disable_nb[WM8962_NUM_SUPPLIES]; |
76 | 76 | ||
77 | #if IS_ENABLED(CONFIG_INPUT) | ||
78 | struct input_dev *beep; | 77 | struct input_dev *beep; |
79 | struct work_struct beep_work; | 78 | struct work_struct beep_work; |
80 | int beep_rate; | 79 | int beep_rate; |
81 | #endif | ||
82 | 80 | ||
83 | #ifdef CONFIG_GPIOLIB | 81 | #ifdef CONFIG_GPIOLIB |
84 | struct gpio_chip gpio_chip; | 82 | struct gpio_chip gpio_chip; |
@@ -3145,7 +3143,6 @@ int wm8962_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack) | |||
3145 | } | 3143 | } |
3146 | EXPORT_SYMBOL_GPL(wm8962_mic_detect); | 3144 | EXPORT_SYMBOL_GPL(wm8962_mic_detect); |
3147 | 3145 | ||
3148 | #if IS_ENABLED(CONFIG_INPUT) | ||
3149 | static int beep_rates[] = { | 3146 | static int beep_rates[] = { |
3150 | 500, 1000, 2000, 4000, | 3147 | 500, 1000, 2000, 4000, |
3151 | }; | 3148 | }; |
@@ -3277,15 +3274,6 @@ static void wm8962_free_beep(struct snd_soc_codec *codec) | |||
3277 | 3274 | ||
3278 | snd_soc_update_bits(codec, WM8962_BEEP_GENERATOR_1, WM8962_BEEP_ENA,0); | 3275 | snd_soc_update_bits(codec, WM8962_BEEP_GENERATOR_1, WM8962_BEEP_ENA,0); |
3279 | } | 3276 | } |
3280 | #else | ||
3281 | static void wm8962_init_beep(struct snd_soc_codec *codec) | ||
3282 | { | ||
3283 | } | ||
3284 | |||
3285 | static void wm8962_free_beep(struct snd_soc_codec *codec) | ||
3286 | { | ||
3287 | } | ||
3288 | #endif | ||
3289 | 3277 | ||
3290 | static void wm8962_set_gpio_mode(struct wm8962_priv *wm8962, int gpio) | 3278 | static void wm8962_set_gpio_mode(struct wm8962_priv *wm8962, int gpio) |
3291 | { | 3279 | { |
diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig index 338a91642471..f4069d0ef811 100644 --- a/sound/soc/fsl/Kconfig +++ b/sound/soc/fsl/Kconfig | |||
@@ -187,7 +187,7 @@ config SND_SOC_EUKREA_TLV320 | |||
187 | 187 | ||
188 | config SND_SOC_IMX_WM8962 | 188 | config SND_SOC_IMX_WM8962 |
189 | tristate "SoC Audio support for i.MX boards with wm8962" | 189 | tristate "SoC Audio support for i.MX boards with wm8962" |
190 | depends on OF && I2C | 190 | depends on OF && I2C && INPUT |
191 | select SND_SOC_WM8962 | 191 | select SND_SOC_WM8962 |
192 | select SND_SOC_IMX_PCM_DMA | 192 | select SND_SOC_IMX_PCM_DMA |
193 | select SND_SOC_IMX_AUDMUX | 193 | select SND_SOC_IMX_AUDMUX |
diff --git a/sound/soc/samsung/Kconfig b/sound/soc/samsung/Kconfig index f2e289180e46..14568bedd425 100644 --- a/sound/soc/samsung/Kconfig +++ b/sound/soc/samsung/Kconfig | |||
@@ -204,7 +204,7 @@ config SND_SOC_SPEYSIDE | |||
204 | 204 | ||
205 | config SND_SOC_TOBERMORY | 205 | config SND_SOC_TOBERMORY |
206 | tristate "Audio support for Wolfson Tobermory" | 206 | tristate "Audio support for Wolfson Tobermory" |
207 | depends on SND_SOC_SAMSUNG && MACH_WLF_CRAGG_6410 | 207 | depends on SND_SOC_SAMSUNG && MACH_WLF_CRAGG_6410 && INPUT |
208 | select SND_SAMSUNG_I2S | 208 | select SND_SAMSUNG_I2S |
209 | select SND_SOC_WM8962 | 209 | select SND_SOC_WM8962 |
210 | 210 | ||