Lars-Peter Clausen
d24eb0db9c
ASoC: codecs: max98088: Fix register cache incoherency
...
The multi-component patch(commit f0fba2ad1
) moved the allocation of the
register cache from the driver to the ASoC core. Most drivers where adjusted to
this, but the max98088 driver still uses its own register cache for its
private functions, while functions from the ASoC core use the generic cache.
Thus we end up with two from each other incoherent caches, which can lead to
undefined behaviour.
This patch fixes the issue by changing the max98088 driver to use the
generic register cache in its private functions.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de >
Cc: Peter Hsiang <Peter.Hsiang@maxim-ic.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: stable@kernel.org (for 2.6.37 only)
2010-12-28 23:19:06 +00:00
Jiri Kosina
4b7bd36470
Merge branch 'master' into for-next
...
Conflicts:
MAINTAINERS
arch/arm/mach-omap2/pm24xx.c
drivers/scsi/bfa/bfa_fcpim.c
Needed to update to apply fixes for which the old branch was too
outdated.
2010-12-22 18:57:02 +01:00
Mark Brown
d50a87402e
Merge branch 'for-2.6.37' into for-2.6.38
2010-11-23 14:30:41 +00:00
Axel Lin
bc5954f00e
ASoC: max98088 - fix a memory leak
...
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-11-23 14:29:51 +00:00
Jarkko Nikula
505fb824e7
ASoC: Do not include soc-dapm.h
...
There is no need to include soc-dapm.h since soc.h includes it.
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com >
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2010-11-22 14:04:41 +00:00
Mark Brown
04af964f9c
Merge branch 'for-2.6.37' into for-2.6.38
2010-11-19 11:45:05 +00:00
Jesse Marroquin
fb762a5b37
ASoC: Add support for MAX98089 CODEC
...
This patch adds initial support for the MAX98089 CODEC.
Signed-off-by: Jesse Marroquin <jesse.marroquin@maxim-ic.com >
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2010-11-18 10:56:04 +00:00
Liam Girdwood
ce6120cca2
ASoC: Decouple DAPM from CODECs
...
Decoupling Dynamic Audio Power Management (DAPM) from codec devices is
required when developing ASoC further. Such as for other ASoC components to
have DAPM widgets or when extending DAPM to handle cross-device paths.
This patch decouples DAPM related variables from struct snd_soc_codec and
moves them to new struct snd_soc_dapm_context that is used to encapsulate
DAPM context of a device. ASoC core and API of DAPM functions are modified
to use DAPM context instead of codec.
This patch does not change current functionality and a large part of changes
come because of structure and internal API changes.
Core implementation is from Liam Girdwood <lrg@slimlogic.co.uk > with some
minor core changes, codecs and machine driver conversions from
Jarkko Nikula <jhnikula@gmail.com >.
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk >
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com >
Cc: Nicolas Ferre <nicolas.ferre@atmel.com >
Cc: Manuel Lauss <manuel.lauss@googlemail.com >
Cc: Mike Frysinger <vapier.adi@gmail.com >
Cc: Cliff Cai <cliff.cai@analog.com >
Cc: Kevin Hilman <khilman@deeprootsystems.com >
Cc: Ryan Mallon <ryan@bluewatersys.com >
Cc: Timur Tabi <timur@freescale.com >
Cc: Sascha Hauer <s.hauer@pengutronix.de >
Cc: Lars-Peter Clausen <lars@metafoo.de >
Cc: Arnaud Patard (Rtp) <arnaud.patard@rtp-net.org >
Cc: Wan ZongShun <mcuos.com@gmail.com >
Cc: Eric Miao <eric.y.miao@gmail.com >
Cc: Jassi Brar <jassi.brar@samsung.com >
Cc: Daniel Gloeckner <dg@emlix.com >
Cc: Kuninori Morimoto <morimoto.kuninori@renesas.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2010-11-06 11:28:29 -04:00
Uwe Kleine-König
b595076a18
tree-wide: fix comment/printk typos
...
"gadget", "through", "command", "maintain", "maintain", "controller", "address",
"between", "initiali[zs]e", "instead", "function", "select", "already",
"equal", "access", "management", "hierarchy", "registration", "interest",
"relative", "memory", "offset", "already",
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Signed-off-by: Jiri Kosina <jkosina@suse.cz >
2010-11-01 15:38:34 -04:00
Arnaud Lacombe
f3607aef0d
ASoC: sound/max98088: add missing __devexit marker
...
This fixes the following warning:
sound/soc/codecs/max98088.c:2054:12: warning: 'max98088_i2c_remove' defined but not used
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com >
Signed-off-by: Takashi Iwai <tiwai@suse.de >
2010-10-27 07:53:31 +02:00
Dimitris Papastamos
4428bc0990
ASoC: max98088: Staticise m98088_eq_band
...
This function is not exported and it does not seem to be called from
anywhere else therefore it should be static.
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com >
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2010-10-21 13:47:49 -07:00
Mark Brown
e86e1244a4
ASoC: Restore MAX98088 CODEC driver
...
This reverts commit f6765502f8
and adds
the missing include file.
Signed-off-by: Peter Hsiang <Peter.Hsiang@maxim-ic.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2010-10-18 16:46:27 -07:00
Mark Brown
f6765502f8
Revert "ASoC: Add max98088 CODEC driver"
...
This reverts commit e65d255a5a
since it
does not build.
2010-10-18 06:01:33 +01:00
Peter Hsiang
e65d255a5a
ASoC: Add max98088 CODEC driver
...
This patch adds the MAX98088 CODEC driver.
Signed-off-by: Peter Hsiang <peter.hsiang@maxim-ic.com >
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2010-10-15 11:56:44 +01:00