]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/log
mirror_ubuntu-eoan-kernel.git
12 years agoASoC: Convert cs42l51 to devm_kzalloc()
Axel Lin [Thu, 29 Dec 2011 04:00:13 +0000 (12:00 +0800)]
ASoC: Convert cs42l51 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: da7210: Add support for line input and mic
Ashish Chavan [Mon, 2 Jan 2012 12:05:52 +0000 (17:35 +0530)]
ASoC: da7210: Add support for line input and mic

DA7210 has three line inputs (AUX1 Left, AUX1 Right and AUX2) and
a stereo MIC. This patch adds gain controls for MIC, AUX1, AUX2 as
well as INPGA.

Signed-off-by: Ashish Chavan <ashish.chavan@kpitcummins.com>
Signed-off-by: David Dajun Chen <dchen@diasemi.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert corgi to table based DAPM and control init
Axel Lin [Fri, 30 Dec 2011 03:16:32 +0000 (11:16 +0800)]
ASoC: Convert corgi to table based DAPM and control init

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use dai_fmt in corgi machine driver
Axel Lin [Fri, 30 Dec 2011 03:13:24 +0000 (11:13 +0800)]
ASoC: Use dai_fmt in corgi machine driver

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use dai_fmt in poodle machine driver
Axel Lin [Fri, 30 Dec 2011 01:20:40 +0000 (09:20 +0800)]
ASoC: Use dai_fmt in poodle machine driver

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert poodle to table based DAPM and control init
Axel Lin [Fri, 30 Dec 2011 01:19:32 +0000 (09:19 +0800)]
ASoC: Convert poodle to table based DAPM and control init

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: pxa: Convert poodle to use snd_soc_register_card()
Axel Lin [Fri, 30 Dec 2011 01:16:11 +0000 (09:16 +0800)]
ASoC: pxa: Convert poodle to use snd_soc_register_card()

Use snd_soc_register_card() instead of creating a "soc-audio" platform device.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Enable ASoC register map dump for some regmap CODECs
Mark Brown [Thu, 29 Dec 2011 12:18:53 +0000 (12:18 +0000)]
ASoC: Enable ASoC register map dump for some regmap CODECs

It's still useful to be able to poke around in the register map at
runtime.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Remove unused label from wm8994 probe()
Mark Brown [Thu, 29 Dec 2011 11:08:34 +0000 (11:08 +0000)]
ASoC: Remove unused label from wm8994 probe()

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert tlv320aic32x4 to devm_kzalloc()
Axel Lin [Mon, 26 Dec 2011 12:57:24 +0000 (20:57 +0800)]
ASoC: Convert tlv320aic32x4 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert jz4740 to devm_kzalloc()
Axel Lin [Mon, 26 Dec 2011 12:55:01 +0000 (20:55 +0800)]
ASoC: Convert jz4740 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert adau1701 to devm_kzalloc()
Axel Lin [Mon, 26 Dec 2011 12:53:09 +0000 (20:53 +0800)]
ASoC: Convert adau1701 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert ad1836 to devm_kzalloc()
Axel Lin [Mon, 26 Dec 2011 12:50:02 +0000 (20:50 +0800)]
ASoC: Convert ad1836 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert adau1373 to devm_kzalloc()
Axel Lin [Mon, 26 Dec 2011 12:52:13 +0000 (20:52 +0800)]
ASoC: Convert adau1373 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert ad193x to devm_kzalloc()
Axel Lin [Mon, 26 Dec 2011 12:51:16 +0000 (20:51 +0800)]
ASoC: Convert ad193x to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: mxs: Add .owner to struct snd_soc_card
Lothar Waßmann [Wed, 28 Dec 2011 12:06:21 +0000 (20:06 +0800)]
ASoC: mxs: Add .owner to struct snd_soc_card

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert sgtl5000 to use devm_kzalloc()
Fabio Estevam [Wed, 28 Dec 2011 13:30:11 +0000 (11:30 -0200)]
ASoC: Convert sgtl5000 to use devm_kzalloc()

Convert sgtl5000 codec driver to use devm_kzalloc().

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: sgtl5000: Fix voltage units in dev_err message
Fabio Estevam [Wed, 28 Dec 2011 11:55:15 +0000 (09:55 -0200)]
ASoC: sgtl5000: Fix voltage units in dev_err message

vdda, vddio and vddd are voltages expressed in milivolts (mV), so use the
proper annotation.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert kirkwood-t5325 to table based DAPM init
Axel Lin [Wed, 28 Dec 2011 11:03:23 +0000 (19:03 +0800)]
ASoC: Convert kirkwood-t5325 to table based DAPM init

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use dai_fmt in kirkwood-t5325 machine driver
Axel Lin [Wed, 28 Dec 2011 10:59:30 +0000 (18:59 +0800)]
ASoC: Use dai_fmt in kirkwood-t5325 machine driver

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use dai_fmt in kirkwood-openrd machine driver
Axel Lin [Wed, 28 Dec 2011 10:58:17 +0000 (18:58 +0800)]
ASoC: Use dai_fmt in kirkwood-openrd machine driver

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Fix build error in sound/soc/kirkwood/kirkwood-i2s.c
Axel Lin [Wed, 28 Dec 2011 08:05:22 +0000 (16:05 +0800)]
ASoC: Fix build error in sound/soc/kirkwood/kirkwood-i2s.c

Since commit db33f4de "ARM: Orion: Remove address map info from all platform data structures",
the dram is removed from struct kirkwood_asoc_platform_data.

This patch fixes below build error:
  CC      sound/soc/kirkwood/kirkwood-i2s.o
sound/soc/kirkwood/kirkwood-i2s.c: In function 'kirkwood_i2s_dev_probe':
sound/soc/kirkwood/kirkwood-i2s.c:444: error: 'struct kirkwood_asoc_platform_data' has no member named 'dram'
sound/soc/kirkwood/kirkwood-i2s.c:450: error: 'struct kirkwood_asoc_platform_data' has no member named 'dram'
make[3]: *** [sound/soc/kirkwood/kirkwood-i2s.o] Error 1
make[2]: *** [sound/soc/kirkwood] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert 88pm860x-codec to devm_kzalloc()
Axel Lin [Mon, 26 Dec 2011 12:48:48 +0000 (20:48 +0800)]
ASoC: Convert 88pm860x-codec to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert uda1380 to devm_kzalloc()
Axel Lin [Mon, 26 Dec 2011 12:58:14 +0000 (20:58 +0800)]
ASoC: Convert uda1380 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert lm4857 to devm_kzalloc()
Axel Lin [Mon, 26 Dec 2011 12:56:25 +0000 (20:56 +0800)]
ASoC: Convert lm4857 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert da7210 to devm_kzalloc()
Axel Lin [Mon, 26 Dec 2011 12:54:04 +0000 (20:54 +0800)]
ASoC: Convert da7210 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoMerge branch 'for-3.2' into for-3.3
Mark Brown [Fri, 23 Dec 2011 18:08:02 +0000 (18:08 +0000)]
Merge branch 'for-3.2' into for-3.3

12 years agoASoC: wm8776: add missing break in sample size switch
Joachim Eastwood [Fri, 23 Dec 2011 16:32:25 +0000 (17:32 +0100)]
ASoC: wm8776: add missing break in sample size switch

Broken in commit d1dc698a54259cb454284456483b45f67c865cf8

Signed-off-by: Joachim Eastwood <joachim.eastwood@jotron.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Add trivial pm_runtime usage to Samsung DAI drivers
Mark Brown [Thu, 8 Dec 2011 08:45:03 +0000 (16:45 +0800)]
ASoC: Add trivial pm_runtime usage to Samsung DAI drivers

Currently this won't actually do anything but using this will help the
core SoC code track when the system is idle.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: mid-x86: Add .owner to struct snd_soc_card
Axel Lin [Fri, 23 Dec 2011 06:50:17 +0000 (14:50 +0800)]
ASoC: mid-x86: Add .owner to struct snd_soc_card

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: kirkwood: Add .owner to struct snd_soc_card
Axel Lin [Fri, 23 Dec 2011 06:49:28 +0000 (14:49 +0800)]
ASoC: kirkwood: Add .owner to struct snd_soc_card

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: txx9: Add .owner to struct snd_soc_card
Axel Lin [Fri, 23 Dec 2011 06:54:30 +0000 (14:54 +0800)]
ASoC: txx9: Add .owner to struct snd_soc_card

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: sh: Add .owner to struct snd_soc_card
Axel Lin [Fri, 23 Dec 2011 06:53:32 +0000 (14:53 +0800)]
ASoC: sh: Add .owner to struct snd_soc_card

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: s6000: Add .owner to struct snd_soc_card
Axel Lin [Fri, 23 Dec 2011 06:52:22 +0000 (14:52 +0800)]
ASoC: s6000: Add .owner to struct snd_soc_card

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Daniel Glöckner <dg@emlix.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: nuc900: Add .owner to struct snd_soc_card
Axel Lin [Fri, 23 Dec 2011 06:51:17 +0000 (14:51 +0800)]
ASoC: nuc900: Add .owner to struct snd_soc_card

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: jz4740: Add .owner to struct snd_soc_card
Axel Lin [Fri, 23 Dec 2011 06:48:19 +0000 (14:48 +0800)]
ASoC: jz4740: Add .owner to struct snd_soc_card

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: imx: Add .owner to struct snd_soc_card
Axel Lin [Fri, 23 Dec 2011 06:47:08 +0000 (14:47 +0800)]
ASoC: imx: Add .owner to struct snd_soc_card

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: au1x: Add .owner to struct snd_soc_card
Axel Lin [Fri, 23 Dec 2011 01:53:55 +0000 (09:53 +0800)]
ASoC: au1x: Add .owner to struct snd_soc_card

Add missing .owner of struct snd_soc_card. This prevents the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: tegra: Add .owner to struct snd_soc_card
Axel Lin [Thu, 22 Dec 2011 13:23:01 +0000 (21:23 +0800)]
ASoC: tegra: Add .owner to struct snd_soc_card

Missed .owner of struct snd_soc_card will prevent the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: ep93xx: Add .owner to struct snd_soc_card
Axel Lin [Thu, 22 Dec 2011 13:21:37 +0000 (21:21 +0800)]
ASoC: ep93xx: Add .owner to struct snd_soc_card

Missed .owner of struct snd_soc_card will prevent the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: davinci: Add .owner to struct snd_soc_card
Axel Lin [Thu, 22 Dec 2011 13:19:42 +0000 (21:19 +0800)]
ASoC: davinci: Add .owner to struct snd_soc_card

Missed .owner of struct snd_soc_card will prevent the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: blackfin: Add .owner to struct snd_soc_card
Axel Lin [Thu, 22 Dec 2011 13:17:22 +0000 (21:17 +0800)]
ASoC: blackfin: Add .owner to struct snd_soc_card

Missed .owner of struct snd_soc_card will prevent the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: atmel: Add .owner to struct snd_soc_card
Axel Lin [Thu, 22 Dec 2011 13:14:58 +0000 (21:14 +0800)]
ASoC: atmel: Add .owner to struct snd_soc_card

Missed .owner of struct snd_soc_card will prevent the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: fsl: Add .owner to struct snd_soc_card
Axel Lin [Thu, 22 Dec 2011 13:04:54 +0000 (21:04 +0800)]
ASoC: fsl: Add .owner to struct snd_soc_card

Missed .owner of struct snd_soc_card will prevent the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Declare soc_new_pcm() properly
Mark Brown [Thu, 22 Dec 2011 12:16:39 +0000 (12:16 +0000)]
ASoC: Declare soc_new_pcm() properly

Ensure that everything is seeing the same declaration by moving it to
a header file rather than putting the declaration in soc-core.c

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
12 years agoMerge branch 'for-3.2' into for-3.3
Mark Brown [Thu, 22 Dec 2011 12:02:29 +0000 (12:02 +0000)]
Merge branch 'for-3.2' into for-3.3

12 years agoRevert "ASoC: mxs: correct 'direction' of device_prep_dma_cyclic"
Mark Brown [Thu, 22 Dec 2011 11:37:03 +0000 (11:37 +0000)]
Revert "ASoC: mxs: correct 'direction' of device_prep_dma_cyclic"

This reverts commit dbec3b30a601791717bc5bb827e210c3b5d6e067 as it
should never have been applied to the ASoC tree at all, let alone 3.2.

12 years agoASoC: samsung: Add .owner to struct snd_soc_card
Axel Lin [Thu, 22 Dec 2011 02:53:15 +0000 (10:53 +0800)]
ASoC: samsung: Add .owner to struct snd_soc_card

Missed .owner of struct snd_soc_card will prevent the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: pxa: Add .owner to struct snd_soc_card
Axel Lin [Thu, 22 Dec 2011 01:44:43 +0000 (09:44 +0800)]
ASoC: pxa: Add .owner to struct snd_soc_card

Missed .owner of struct snd_soc_card will prevent the module from being
removed from underneath its users.

Reported-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Allow DAI links to be specified using device tree nodes
Stephen Warren [Wed, 21 Dec 2011 17:40:59 +0000 (10:40 -0700)]
ASoC: Allow DAI links to be specified using device tree nodes

DAI link endpoints and platform (DMA) devices are currently specified
by name. When instantiating sound cards from device tree, it may be more
convenient to refer to these devices by phandle in the device tree, and
for code to describe DAI links using the "struct device_node *"
("of_node") those phandles map to.

This change adds new fields to snd_soc_dai_link which can "name" devices
using of_node, enhances soc_bind_dai_link() to allow binding based on
of_node, and enhances snd_soc_register_card() to ensure that illegal
combinations of name and of_node are not used.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Remove ifdefs for GPIO_SYSFS
Mark Brown [Tue, 20 Dec 2011 23:59:41 +0000 (23:59 +0000)]
ASoC: Remove ifdefs for GPIO_SYSFS

It is part of the GPIO API so should be stubbed appropriately.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert cs42l51 to table based DAPM and control init
Axel Lin [Tue, 20 Dec 2011 02:19:54 +0000 (10:19 +0800)]
ASoC: Convert cs42l51 to table based DAPM and control init

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert 88pm860x-codec to table based DAPM and control init
Axel Lin [Tue, 20 Dec 2011 02:14:25 +0000 (10:14 +0800)]
ASoC: Convert 88pm860x-codec to table based DAPM and control init

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use dai_fmt in imote2 machine driver
Axel Lin [Tue, 20 Dec 2011 08:27:28 +0000 (16:27 +0800)]
ASoC: Use dai_fmt in imote2 machine driver

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use dai_fmt in hx4700 machine driver
Axel Lin [Tue, 20 Dec 2011 08:13:26 +0000 (16:13 +0800)]
ASoC: Use dai_fmt in hx4700 machine driver

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert ak4671 to devm_kzalloc()
Axel Lin [Tue, 20 Dec 2011 06:41:19 +0000 (14:41 +0800)]
ASoC: Convert ak4671 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert ak4642 to devm_kzalloc()
Axel Lin [Tue, 20 Dec 2011 06:40:12 +0000 (14:40 +0800)]
ASoC: Convert ak4642 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert ak4641 to devm_kzalloc()
Axel Lin [Tue, 20 Dec 2011 06:39:20 +0000 (14:39 +0800)]
ASoC: Convert ak4641 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert ak4535 to devm_kzalloc()
Axel Lin [Tue, 20 Dec 2011 06:38:09 +0000 (14:38 +0800)]
ASoC: Convert ak4535 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert ak4104 to devm_kzalloc()
Axel Lin [Tue, 20 Dec 2011 06:37:12 +0000 (14:37 +0800)]
ASoC: Convert ak4104 to devm_kzalloc()

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Tegra+WM8903 machine: Add device tree binding
Stephen Warren [Mon, 12 Dec 2011 22:55:36 +0000 (15:55 -0700)]
ASoC: Tegra+WM8903 machine: Add device tree binding

This driver is parameterized in two ways:

a) Platform data, which supplies the set of GPIOs used by the driver.
   These GPIOs can now be parsed out of device tree.

b) Machine-specific DAPM route arrays embedded into the ASoC machine
   driver itself. Historically, the driver picks the appropriate array
   to use using machine_is_*(). The driver now requires this array to
   be parsed from device tree when instantiated through device tree,
   using the core ASoC support for this parsing.

Based on work by John Bonesio, but significantly reworked since then.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Add utility to parse DAPM routes from device tree
Stephen Warren [Mon, 12 Dec 2011 22:55:35 +0000 (15:55 -0700)]
ASoC: Add utility to parse DAPM routes from device tree

Implement snd_soc_of_parse_audio_routing(), a utility function that can
parses a simple DAPM route table from device tree.The machine driver
specifies the DT property to use, since this is binding-specific.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Add utility to set a card's name from device tree
Stephen Warren [Mon, 12 Dec 2011 22:55:34 +0000 (15:55 -0700)]
ASoC: Add utility to set a card's name from device tree

Implement snd_soc_of_parse_card_name(), a utility function that sets a
card's name from device tree. The machine driver specifies the DT
property to use, since this is binding-specific.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Rename rt562[1|2]_vol_snd_controls to alc562[1|2]_vol_snd_controls
Axel Lin [Thu, 15 Dec 2011 03:57:57 +0000 (11:57 +0800)]
ASoC: Rename rt562[1|2]_vol_snd_controls to alc562[1|2]_vol_snd_controls

The module desciption says this is ASoC alc5621/2/3 driver.
Make the naming consistent with the reset of the code.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoMerge branch 'for-3.2' into for-3.3
Mark Brown [Tue, 20 Dec 2011 00:53:23 +0000 (00:53 +0000)]
Merge branch 'for-3.2' into for-3.3

12 years agoASoC: Use dai_fmt in snappercl15 machine driver
Axel Lin [Sat, 17 Dec 2011 07:41:11 +0000 (15:41 +0800)]
ASoC: Use dai_fmt in snappercl15 machine driver

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Reviewed-by: Mika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use dai_fmt in edb93xx machine driver
Axel Lin [Sat, 17 Dec 2011 07:36:52 +0000 (15:36 +0800)]
ASoC: Use dai_fmt in edb93xx machine driver

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Alexander Sverdlin <subaparts@yandex.ru>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: mxs: correct 'direction' of device_prep_dma_cyclic
Shawn Guo [Wed, 14 Dec 2011 07:47:46 +0000 (15:47 +0800)]
ASoC: mxs: correct 'direction' of device_prep_dma_cyclic

The commit 49920bc (dmaengine: add new enum dma_transfer_direction)
changes the type of parameter 'direction' of device_prep_dma_cyclic
from dma_data_direction to dma_transfer_direction.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Remove export of s3c_pcm_dai
Axel Lin [Wed, 14 Dec 2011 11:13:26 +0000 (19:13 +0800)]
ASoC: Remove export of s3c_pcm_dai

We don't need to export s3c_pcm_dai after multi-component patch.
Thus remove export of s3c_pcm_dai and make it static.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Tegra machine ASoC driver for boards using ALC5332 codec
Leon Romanovsky [Mon, 19 Dec 2011 19:51:52 +0000 (21:51 +0200)]
ASoC: Tegra machine ASoC driver for boards using ALC5332 codec

At this stage only Toshiba AC100/Dynabook supported.

Signed-off-by: Leon Romanovsky <leon@leon.nu>
Signed-off-by: Andrey Danin <danindrey@mail.ru>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert uda1380 to table based DAPM and control init
Axel Lin [Mon, 19 Dec 2011 05:54:38 +0000 (13:54 +0800)]
ASoC: Convert uda1380 to table based DAPM and control init

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert max9850 to table based DAPM and control init
Axel Lin [Mon, 19 Dec 2011 05:13:31 +0000 (13:13 +0800)]
ASoC: Convert max9850 to table based DAPM and control init

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use standard cache sync code in wm8961
Mark Brown [Fri, 16 Dec 2011 06:57:11 +0000 (07:57 +0100)]
ASoC: Use standard cache sync code in wm8961

We write the reset register with the default value so it should not be
mistakenly written.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert wm8961 to devm_kzalloc()
Mark Brown [Fri, 16 Dec 2011 06:56:02 +0000 (07:56 +0100)]
ASoC: Convert wm8961 to devm_kzalloc()

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Remove I2C ifdefs from wm8961 driver
Mark Brown [Fri, 16 Dec 2011 06:55:02 +0000 (07:55 +0100)]
ASoC: Remove I2C ifdefs from wm8961 driver

The driver only supports I2C so no need to conditionalise its use.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert WM8960 to devm_kzalloc()
Mark Brown [Fri, 16 Dec 2011 06:42:58 +0000 (07:42 +0100)]
ASoC: Convert WM8960 to devm_kzalloc()

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: pxa: Convert e800_wm9712 to use snd_soc_register_card()
Axel Lin [Thu, 15 Dec 2011 02:54:25 +0000 (10:54 +0800)]
ASoC: pxa: Convert e800_wm9712 to use snd_soc_register_card()

Use snd_soc_register_card() instead of creating a "soc-audio" platform device.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: pxa: Convert tosa to use snd_soc_register_card()
Axel Lin [Thu, 15 Dec 2011 02:57:22 +0000 (10:57 +0800)]
ASoC: pxa: Convert tosa to use snd_soc_register_card()

Use snd_soc_register_card() instead of creating a "soc-audio" platform device.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: pxa: Convert imote2 to use snd_soc_register_card()
Axel Lin [Thu, 15 Dec 2011 02:55:24 +0000 (10:55 +0800)]
ASoC: pxa: Convert imote2 to use snd_soc_register_card()

Use snd_soc_register_card() instead of creating a "soc-audio" platform device.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: pxa: Convert e750_wm9705 to use snd_soc_register_card()
Axel Lin [Thu, 15 Dec 2011 02:53:29 +0000 (10:53 +0800)]
ASoC: pxa: Convert e750_wm9705 to use snd_soc_register_card()

Use snd_soc_register_card() instead of creating a "soc-audio" platform device.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: pxa: Convert e740_wm9705 to use snd_soc_register_card()
Axel Lin [Thu, 15 Dec 2011 02:52:42 +0000 (10:52 +0800)]
ASoC: pxa: Convert e740_wm9705 to use snd_soc_register_card()

Use snd_soc_register_card() instead of creating a "soc-audio" platform device.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: omap-mcbsp: Enable FIFO usage on OMAP4
Peter Ujfalusi [Thu, 15 Dec 2011 09:32:27 +0000 (11:32 +0200)]
ASoC: omap-mcbsp: Enable FIFO usage on OMAP4

Allow McBSP FIFO configuration from ASoC dai driver
on OMAP4 platform.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoOMAP4: mcbsp: Enable FIFO usage
Peter Ujfalusi [Thu, 15 Dec 2011 09:32:26 +0000 (11:32 +0200)]
OMAP4: mcbsp: Enable FIFO usage

All McBSP instances on OMAP4 has 128 word long FIFO

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoMerge branch 'topic/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
Mark Brown [Sat, 17 Dec 2011 09:05:46 +0000 (10:05 +0100)]
Merge branch 'topic/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound into for-3.3

12 years agoASoC: Fix compile error in sound/soc/mid-x86/sst_platform.c
Joerg Roedel [Thu, 15 Dec 2011 17:24:54 +0000 (18:24 +0100)]
ASoC: Fix compile error in sound/soc/mid-x86/sst_platform.c

The variable ret_val is used but not declared. This causes
the following compile error:

sound/soc/mid-x86/sst_platform.c: In function ‘sst_platform_open’:
sound/soc/mid-x86/sst_platform.c:274:2: error: ‘ret_val’ undeclared (first use in this function)
sound/soc/mid-x86/sst_platform.c:274:2: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [sound/soc/mid-x86/sst_platform.o] Error 1

Fix this.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
12 years agoASoC: Staticise mfld_msic_dailink
Axel Lin [Wed, 14 Dec 2011 11:23:01 +0000 (19:23 +0800)]
ASoC: Staticise mfld_msic_dailink

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Fix partial cherry pick in wm8993
Mark Brown [Thu, 15 Dec 2011 03:54:00 +0000 (11:54 +0800)]
ASoC: Fix partial cherry pick in wm8993

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use core pm_runtime callbacks for fsi
Mark Brown [Sat, 3 Dec 2011 20:22:18 +0000 (20:22 +0000)]
ASoC: Use core pm_runtime callbacks for fsi

Now that the core holds a pm_runtime reference to the device while the
link is active there is no need for the driver to do so.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use core pm_runtime callbacks for siu_dai
Mark Brown [Sat, 3 Dec 2011 20:21:32 +0000 (20:21 +0000)]
ASoC: Use core pm_runtime callbacks for siu_dai

Now that the core holds a pm_runtime reference to the device while the
link is active there is no need for the driver to do so.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Tune the accessory detection rates for WM8996
Mark Brown [Wed, 14 Dec 2011 11:23:37 +0000 (19:23 +0800)]
ASoC: Tune the accessory detection rates for WM8996

Use longer intervals when the microphone is not inserted to increase
robustness against leisurely insertion.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agomfd: Test for jack detection when deciding if wm8994 should suspend
Mark Brown [Thu, 1 Dec 2011 17:19:44 +0000 (17:19 +0000)]
mfd: Test for jack detection when deciding if wm8994 should suspend

The jack detection on WM1811 is often required during system suspend, add
it as another check when deciding if we should suspend.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
12 years agoASoC: Use standard register cache sync in wm8993
Mark Brown [Wed, 14 Dec 2011 03:40:59 +0000 (11:40 +0800)]
ASoC: Use standard register cache sync in wm8993

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Convert wm8993 to devm_kzalloc()
Mark Brown [Wed, 14 Dec 2011 03:11:52 +0000 (11:11 +0800)]
ASoC: Convert wm8993 to devm_kzalloc()

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Use standard snd_soc_cache_sync() for WM9090
Mark Brown [Tue, 13 Dec 2011 13:04:26 +0000 (21:04 +0800)]
ASoC: Use standard snd_soc_cache_sync() for WM9090

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Remove cache default for volatile wm9081 reset register
Mark Brown [Tue, 13 Dec 2011 10:30:03 +0000 (18:30 +0800)]
ASoC: Remove cache default  for volatile wm9081 reset register

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Staticise sst_pcm_new and sst_soc_platform_drv
Axel Lin [Tue, 13 Dec 2011 09:13:45 +0000 (17:13 +0800)]
ASoC: Staticise sst_pcm_new and sst_soc_platform_drv

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by Vinod Koul <vinod.koul@linux.intel.com>
Acked-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Remove unused extern declarations for sh4_hac_dai and sh7760_soc_platform
Axel Lin [Tue, 13 Dec 2011 12:23:50 +0000 (20:23 +0800)]
ASoC: Remove unused extern declarations for sh4_hac_dai and sh7760_soc_platform

Both sh4_hac_dai and sh7760_soc_platform are changed to static
by multi-component patch and they are not used in sh7760-ac97.c now.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoASoC: Complete initialisation before registering Samsung PCM DAI
Mark Brown [Mon, 12 Dec 2011 11:05:58 +0000 (19:05 +0800)]
ASoC: Complete initialisation before registering Samsung PCM DAI

Otherwise there's a race where the DAI might get used without everything
having been set up.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
12 years agoASoC: Staticise asoc_idma_platform
Mark Brown [Mon, 12 Dec 2011 14:47:25 +0000 (22:47 +0800)]
ASoC: Staticise asoc_idma_platform

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
12 years agoASoC: Fix wm8995 regmap usage
Mark Brown [Wed, 14 Dec 2011 03:20:42 +0000 (11:20 +0800)]
ASoC: Fix wm8995 regmap usage

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>