linux/sound/soc/codecs
Axel Lin ef99e9b5a1 ASoC: wm8523: fix resource reclaim in wm8523_register error path
This patch includes below fixes:
1. If another WM8523 is registered, need to kfree wm8523 before return -EINVAL.
2. If snd_soc_register_codec failed, goto error path to properly free resources.
3. Instead of using mixed in-line and goto style cleanup, use goto style error
   handling if snd_soc_register_dai failed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-08-03 07:44:10 +01:00
..
ac97.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 2010-04-07 08:42:25 -07:00
ac97.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
ad193x.c ASoC: ad193x: add set_sysclk entry to support different clock input 2010-05-21 09:23:49 -07:00
ad193x.h ASoC: ad193x: add set_sysclk entry to support different clock input 2010-05-21 09:23:49 -07:00
ad1836.c ASoC: ad1836: fix a memory leak if another ad1836 is registered 2010-08-03 07:40:26 +01:00
ad1836.h ASoC: ad1836: reset and restore clock control mode in suspend/resume entry 2010-01-25 14:52:22 +00:00
ad1980.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ad1980.h ALSA: ASoC codec: fix compiling error in ad1980 driver after ASoC API changed 2008-09-09 09:10:54 +02:00
ad73311.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ad73311.h ASoC: Blackfin: fix typo in MUTE definition 2009-03-06 13:37:18 +00:00
ads117x.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ads117x.h ASoC: ADS117x ADC driver 2009-11-04 21:27:53 +00:00
ak4104.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
ak4104.h ASoC: Add a driver for AK4104 S/PDIF transmitter 2009-03-09 10:46:17 +00:00
ak4535.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
ak4535.h ALSA: ASoC: Convert ak4535 to a new-style i2c driver 2008-09-04 10:34:21 +02:00
ak4642.c ASoC: ak4642: fix a memory leak if failed to initialise AK4642 2010-08-03 07:40:41 +01:00
ak4642.h ASoC: Add ak4642/ak4643 codec support 2009-08-21 10:54:02 +01:00
ak4671.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
ak4671.h ASoC: AK4671: add ak4671 codec driver 2009-09-10 00:27:57 +01:00
cq93vc.c ASoC: Remove unneeded suspend bias managment from CODEC drivers 2010-05-10 10:35:25 +01:00
cq93vc.h ASoC: DaVinci: CQ93VC Voice Codec 2010-03-12 11:12:22 +00:00
cs42l51.c ASoC: Add driver for cs42l51 2010-05-31 12:20:02 +01:00
cs42l51.h ASoC: Add driver for cs42l51 2010-05-31 12:20:02 +01:00
cs4270.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
cs4270.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
cx20442.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
cx20442.h ASoC: CX20442: push down machine independent line discipline bits 2009-07-31 22:38:44 +01:00
da7210.c ASoC: da7210: fix a memory leak if failed to initialise da7210 audio codec 2010-08-03 07:43:52 +01:00
da7210.h ASoC: Add DA7210 codec device support for ALSA 2009-12-16 17:31:04 +00:00
jz4740.c ASoC: Add JZ4740 codec driver 2010-06-23 00:10:45 +01:00
jz4740.h ASoC: Add JZ4740 codec driver 2010-06-23 00:10:45 +01:00
Kconfig ASoC: Initial WM8741 CODEC driver 2010-08-03 07:38:15 +01:00
l3.c ASoC: UDA134x codec driver 2008-11-17 11:45:39 +00:00
Makefile ASoC: Initial WM8741 CODEC driver 2010-08-03 07:38:15 +01:00
max9877.c ASoC: MAX9877: fix write operation for register 2009-07-23 11:08:30 +01:00
max9877.h ASoC: MAX9877: add MAX9877 amp driver 2009-07-15 16:59:31 +01:00
pcm3008.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
pcm3008.h ASoC: Add PCM3008 ALSA SoC driver 2008-11-19 13:16:38 +00:00
spdif_transciever.c ASoC: Fix S/PDIF build 2010-05-31 13:47:26 +01:00
spdif_transciever.h ASoC: Fix S/PDIF build 2010-05-31 13:47:26 +01:00
ssm2602.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
ssm2602.h sound: ASoC codec: SSM2602 audio codec driver 2008-09-09 09:11:15 +02:00
stac9766.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
stac9766.h ASoC: Codec for STAC9766 used on the Efika 2009-05-24 13:15:21 +01:00
tlv320aic3x.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
tlv320aic3x.h ASoC: tlv320aic3x: Change to use device model 2009-08-21 10:52:49 +01:00
tlv320aic23.c codecs/tlv320aic23: fix bias management for suspend/resume 2010-06-23 11:28:53 +01:00
tlv320aic23.h ALSA: ASoC: Add TLV320AIC23 codec driver 2008-10-13 02:16:48 +02:00
tlv320aic26.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
tlv320aic26.h ALSA: ASoC: Export DAI and codec for TLV320AIC26 2008-07-29 21:32:25 +02:00
tlv320dac33.c ASoC: tlv320dac33: Add support for automatic FIFO configuration 2010-07-29 10:21:11 +01:00
tlv320dac33.h ASoC: tlv320dac33: typo fix in the header 2009-10-21 19:08:21 +01:00
tpa6130a2.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
tpa6130a2.h ASoC: TPA6130A2: Make tpa6130a2_power as static 2009-10-12 13:40:54 +01:00
twl4030.c ASoC: TWL4030: Capture route DAPM event fix 2010-07-27 11:43:40 +01:00
twl4030.h ASoC: TWL4030: Add configurable delay after digimic enable 2010-07-21 11:57:58 +01:00
twl6040.c ASoC: TWL6040: Correct widget handling for drivers 2010-07-17 19:27:18 +01:00
twl6040.h ASoC: TWL6040: Add twl6040 codec driver 2010-03-19 11:29:33 +00:00
uda134x.c ASoC: uda134x: correct bias level setup for codecs family 2010-06-30 14:46:56 +01:00
uda134x.h ASoC: uda134x: add DATA011 register found in codecs family 2010-06-30 14:46:56 +01:00
uda1380.c ASoC: Remove unneeded suspend bias managment from CODEC drivers 2010-05-10 10:35:25 +01:00
uda1380.h ASoC: UDA1380: refactor device registration 2009-06-15 21:54:48 +01:00
wm2000.c ASoC: Default WM2000 ANC and speaker to enabled 2010-06-15 15:14:00 +01:00
wm2000.h ASoC: Add WM2000 driver 2010-02-12 10:31:06 +00:00
wm8350.c Merge branch 'for-2.6.35' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6 into fix/asoc 2010-05-27 09:46:10 +02:00
wm8350.h ASoC: Implement WM835x microphone jack detection support 2010-03-17 09:27:19 +00:00
wm8400.c Merge branch 'for-2.6.35' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6 into fix/asoc 2010-05-27 09:46:10 +02:00
wm8400.h ASoC: Add initial driver for the WM8400 CODEC 2009-03-11 13:49:46 +00:00
wm8510.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8510.h ALSA: ASoC: Add WM8510 SPI support 2008-10-13 02:17:15 +02:00
wm8523.c ASoC: wm8523: fix resource reclaim in wm8523_register error path 2010-08-03 07:44:10 +01:00
wm8523.h ASoC: Add WM8523 CODEC driver 2009-07-01 18:47:45 +01:00
wm8580.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8580.h ASoC: Move WM8580 to normal I2C device probe 2009-03-12 15:43:24 +00:00
wm8711.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8711.h ASoC: Add WM8711 CODEC driver 2009-08-18 20:37:49 +01:00
wm8727.c ASoC: wm8727: add a missing return in wm8727_platform_probe 2010-07-14 20:12:18 +01:00
wm8727.h ASoC: Add support for the WM8727 DAC. 2009-11-02 15:24:19 +00:00
wm8728.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8728.h ASoC: Add WM8728 codec driver 2008-11-14 14:44:53 +00:00
wm8731.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8731.h ASoC: Refactor WM8731 device registration 2009-02-18 11:55:22 +00:00
wm8741.c ASoC: Initial WM8741 CODEC driver 2010-08-03 07:38:15 +01:00
wm8741.h ASoC: Initial WM8741 CODEC driver 2010-08-03 07:38:15 +01:00
wm8750.c ASoC: codec: Add WM8987 device id to WM8750 driver 2010-07-04 18:02:07 +09:00
wm8750.h sound: ASoC: Add WM8750 SPI support 2008-09-23 08:18:19 +02:00
wm8753.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8753.h ASoC: Convert WM8753 to register via normal device probe 2009-02-24 23:49:53 +00:00
wm8776.c ASoC: Remove duplicate AUX definition from WM8776 2010-07-17 19:44:40 +01:00
wm8776.h ASoC: Add WM8776 CODEC driver 2009-08-06 11:36:45 +01:00
wm8900.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8900.h ASoC: Convert WM8900 to do more work at I2C probe time 2008-12-10 19:47:40 +00:00
wm8903.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8903.h ASoC: Implement interrupt driven microphone detection for WM8903 2010-03-16 15:57:43 +00:00
wm8904.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8904.h ASoC: Support GPIO based microphone detection for WM8904 2010-03-16 16:03:30 +00:00
wm8940.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8940.h ASoC WM8940 Driver 2009-04-27 20:37:13 +01:00
wm8955.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8955.h ASoC: Add initial WM8955 CODEC driver 2009-12-18 13:06:47 +00:00
wm8960.c ASoC: Automatically manage ALC coefficients for WM8960 2010-07-06 08:46:10 +09:00
wm8960.h ASoC: Remove redundant WM8960 SYSCLKSEL clkdiv option 2010-04-28 11:33:04 +01:00
wm8961.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8961.h ASoC: Add WM8961 driver 2009-06-12 17:16:06 +01:00
wm8971.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8971.h sound: ASoC: Add WM8971 CODEC driver 2008-09-23 08:18:05 +02:00
wm8974.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8974.h ASoC: clean up wm8974 and wm8978 clock divider handling 2010-01-29 14:32:52 +00:00
wm8978.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8978.h ASoC: clean up wm8974 and wm8978 clock divider handling 2010-01-29 14:32:52 +00:00
wm8988.c ASoC:: remove a redundant snd_soc_unregister_codec call in wm8988_register 2010-07-14 20:12:31 +01:00
wm8988.h ASoC: Add WM8988 CODEC driver 2009-04-07 18:51:23 +01:00
wm8990.c Merge commit 'v2.6.35-rc1' into for-2.6.36 2010-05-31 11:07:15 +01:00
wm8990.h ASoC: Enable WM8990 ADC clocking workaround 2008-11-17 17:24:54 +00:00
wm8993.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm8993.h ASoC: Add WM8993 CODEC driver 2009-07-08 17:20:20 +01:00
wm8994.c ASoC: Unconditionally enable WM8994 AIF1ADC TDM mode 2010-07-20 10:27:05 +01:00
wm8994.h ASoC: Implement WM8994 OPCLK support 2010-07-09 08:50:12 +09:00
wm9081.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm9081.h ASoC: WM9081 mono DAC with integrated 2.6W class AB/D amplifier driver 2009-05-22 15:11:22 +01:00
wm9090.c ASoC: Add WM9090 amplifier driver 2010-04-30 16:12:44 +01:00
wm9090.h ASoC: Add WM9090 amplifier driver 2010-04-30 16:12:44 +01:00
wm9705.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
wm9705.h ASoC: Driver for the WM9705 AC97 codec. 2009-01-16 16:40:25 +00:00
wm9712.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm9712.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
wm9713.c Merge branch 'topic/asoc' into for-linus 2010-05-20 12:00:43 +02:00
wm9713.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
wm_hubs.c ASoC: Explicitly disable DC servo on WM hubs headphone powerdown 2010-07-20 09:48:07 +01:00
wm_hubs.h ASoC: Support second DC servo readback method for wm_hubs 2010-04-05 16:19:09 +01:00