linux/sound/soc
Axel Lin 4bd3a1f415 ASoC: Fix inconsistent meaning of default case while checking alc5623->id
In alc5623_i2c_probe(),
the default case for checking alc5623->id behaves the same as case 0x23.
However, In alc5623_probe() the default case for checking alc5623->id
becomes to be the same as case 0x21.
This makes the meaning of default case inconsistent.

Since we have checked codec id in alc5623_i2c_probe() by comparing
vid2 with id->driver_data, it is not possible to run into the default case now.

In case we may add more supported devices to alc5623_i2c_table in the future,
this patch changes the default case return -EINVAL to let people know that
they should not run into this case. They should also add a new case accordingly
for the new id.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-12-03 12:25:24 +00:00
..
atmel Merge branch 'for-2.6.37' into for-2.6.38 2010-11-25 11:17:24 +00:00
au1x ASoC: Do not include soc-dapm.h 2010-11-22 14:04:41 +00:00
blackfin ASoC: Do not include soc-dapm.h 2010-11-22 14:04:41 +00:00
codecs ASoC: Fix inconsistent meaning of default case while checking alc5623->id 2010-12-03 12:25:24 +00:00
davinci Merge branch 'for-2.6.37' into for-2.6.38 2010-11-25 11:17:24 +00:00
ep93xx Merge branch 'for-2.6.37' into for-2.6.38 2010-11-25 11:17:24 +00:00
fsl ASoC: Add missing dev_set_drvdata in p1022_ds_probe 2010-11-29 18:28:53 +00:00
imx Merge branch 'for-2.6.37' into for-2.6.38 2010-11-25 11:17:24 +00:00
jz4740 ASoC: Do not include soc-dapm.h 2010-11-22 14:04:41 +00:00
kirkwood ASoC: Do not include soc-dapm.h 2010-11-22 14:04:41 +00:00
nuc900 Merge branch 'for-2.6.37' into for-2.6.38 2010-11-30 11:35:43 +00:00
omap Merge branch 'for-2.6.37' into for-2.6.38 2010-11-25 21:16:52 +00:00
pxa Merge branch 'for-2.6.37' into for-2.6.38 2010-11-25 11:17:24 +00:00
s6000 Merge branch 'for-2.6.37' into for-2.6.38 2010-11-30 11:35:43 +00:00
samsung ASoC: Fix resource leak in smdk_spdif.c 2010-11-29 11:01:06 +00:00
sh ASoC: sh: fsi: remove runtime register check from fsi_master_xxx 2010-12-03 12:24:15 +00:00
txx9 ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
Kconfig ASoC: Samsung: Rename from s3c24xx to samsung 2010-11-23 14:13:04 +00:00
Makefile ASoC: Samsung: Rename from s3c24xx to samsung 2010-11-23 14:13:04 +00:00
soc-cache.c ASoC: Move active copy of CODEC read and write into runtime structure 2010-12-03 12:18:17 +00:00
soc-core.c ASoC: Move active copy of CODEC read and write into runtime structure 2010-12-03 12:18:17 +00:00
soc-dapm.c ASoC: Do not include soc-dapm.h 2010-11-22 14:04:41 +00:00
soc-jack.c ASoC: Do not include soc-dapm.h 2010-11-22 14:04:41 +00:00
soc-utils.c ASoC: Add BCLK calculation utility for TDM mode too 2009-11-25 19:55:46 +00:00