Gaëtan Carlier
6d97c09c64
ASoC: imx-mc13783: use defines instead of numerical address of register
...
This uses already defined name of registers and makes code more readable.
Signed-off-by: Gaëtan Carlier <gcembed@gmail.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-09-06 18:47:19 +08:00
Fabio Estevam
37f45cc54c
ASoC: mc13783: Remove mono support
...
Playing a mono track on a mc13783 codec results in incorrect playback rate.
Remove mono support so that a mono track can be played correctly.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com >
Tested-by: Gaëtan Carlier <gcembed@gmail.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-09-06 08:17:12 +08:00
Heather Lomond
4758be37c0
ASoC: arizona: Fix typo in 44.1kHz rates
...
Signed-off-by: Heather Lomond <hlomond@opensource.wolfsonmicro.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-09-06 06:58:44 +08:00
Emil Goode
5d86e25c70
ASoC: wm0010: Fix warning, use format %zu for type size_t
...
Fix warning by using format specifier %zu for type size_t
Sparse warning:
sound/soc/codecs/wm0010.c:411:2: warning:
format ‘%d’ expects argument of type ‘int’,
but argument 4 has type ‘size_t’ [-Wformat]
Signed-off-by: Emil Goode <emilgoode@gmail.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-09-06 06:22:56 +08:00
Dan Carpenter
4f3ad7956d
ASoC: wm0010: unlock on error path
...
We're holding the wm0010->lock mutex when we goto err_core.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-09-06 06:20:14 +08:00
Fengguang Wu
58d4683286
ASoC: wm0010: Add missing IRQF_ONESHOT
...
FYI, there are new coccinelle warnings show up in
tree: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-3.7
head: e3523e0186
commit: e3523e0186
[95/95] ASoC: wm0010: Add initial wm0010 DSP driver
All coccinelle warnings:
+ sound/soc/codecs/wm0010.c:850:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT
--
+ sound/soc/codecs/wm0010.c:660:1-7: preceding lock on line 359
vim +850 sound/soc/codecs/wm0010.c
847 trigger = IRQF_TRIGGER_FALLING;
848 trigger |= IRQF_ONESHOT;
849
> 850 ret = request_threaded_irq(irq, NULL, wm0010_irq, trigger,
851 "wm0010", wm0010);
852 if (ret)
853 dev_err(wm0010->dev, "Failed to request IRQ %d: %d\n",
Please consider folding the attached diff :-)
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-09-06 06:20:02 +08:00
Mark Brown
75d8f2931a
Merge branch 'asoc-omap' into for-3.7
2012-09-05 20:05:11 +08:00
Hebbar, Gururaja
c24fdc886f
ASoC: tlv320aic3x: Add device tree bindings
...
Device tree support for tlv320aic3x CODEC driver.
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-27 10:25:58 -07:00
Sachin Kamat
2a9a9c876f
ASoC: ad1836: Use module_spi_driver
...
module_spi_driver makes the code simpler by eliminating
module_init and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-27 09:55:28 -07:00
Sachin Kamat
a5c8878017
ASoC: wm8770: Use module_spi_driver
...
module_spi_driver makes the code simpler by eliminating
module_init and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-27 09:55:28 -07:00
Sachin Kamat
9bb280a2eb
ASoC: tlv320aic26: Use module_spi_driver
...
module_spi_driver makes the code simpler by eliminating
module_init and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-27 09:55:27 -07:00
Mark Brown
32c50a31aa
ASoC: wm0010: Move resource acquisition to device probe
...
This is more idimatic for modern drivers. Also fix a couple of return
codes while we're at it.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-25 13:23:51 -07:00
Mark Brown
bf9d323722
ASoC: wm0010: Tweak diagnostic output
...
Make it scan better by writing ROM with capitals.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-25 13:23:45 -07:00
Mark Brown
4f3c3c1b32
ASoC: wm0010: Don't double free reset GPIO
...
We are using devm_ to allocate the GPIO so it will be freed automatically.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-25 13:23:42 -07:00
Mark Brown
d3fd716e82
ASoC: wm0010: Set idle_bias_off
...
Doesn't make any practical difference given that _SUSPEND and _OFF are
equivalent for the driver but it's what we're really doing.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-25 13:23:40 -07:00
Mark Brown
1470bfacb6
ASoC: wm0010: Add dummy widget for CLKIN
...
Make it easier to integrate the management of the clock supplying the
WM0010 with DAPM by providing a dummy supply widget which supplies the
interface widgets, this can be connected to clock outputs by the machines.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-25 13:23:37 -07:00
Mark Brown
6df3198635
ASoC: wm0010: Enable 44.1kHz support
...
With appropriate clocking configuration the WM0010 driver supports 44.1kHz
audio; enable that.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-25 13:23:34 -07:00
Mark Brown
1549c34bfd
ASoC: wm0010: Fix passthrough routing
...
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-25 13:51:33 +01:00
Dimitris Papastamos
e3523e0186
ASoC: wm0010: Add initial wm0010 DSP driver
...
The WM0010 is a compact digital signal processor that has been
highly optimised for low-power audio applications. Extensive memory
resources and core optimisation allow the device to manage all audio
processing algorithms efficiently and autonomously, while the host
processor sleeps or performs other tasks.
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-23 16:12:12 +01:00
Mark Brown
52ca1138fa
ASoC: wm8994: Update for new WM1811 variants
...
There are some new WM1811 variants distinguished by both revision and
cust_id which need slightly different handling.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-23 16:01:48 +01:00
Mark Brown
02e7947699
ASoC: wm_hubs: Allow configuration of MICBIAS power up delay via pdata
...
Sometimes the analogue circuitry connected to the microphone needs some
time to settle after power up. Allow systems to configure this delay in
the platform data, the driver will then insert the required delay during
power up of paths that involve the microphone.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-22 19:00:37 +01:00
Mark Brown
20bac1f3f4
ASoC: wm_hubs: Add trace showing semantics of the DCS update
...
Aids diagnostics.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-22 19:00:33 +01:00
Mark Brown
363947d7d9
ASoC: wm_hubs: Use explicit casts for converting to signed
...
Should be no behaviour change.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-22 19:00:28 +01:00
Mark Brown
3eadd88a37
ASoC: wm9712: Provide TLV information for capture boost controls
...
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-22 17:55:03 +01:00
Tejun Heo
43829731dd
workqueue: deprecate flush[_delayed]_work_sync()
...
flush[_delayed]_work_sync() are now spurious. Mark them deprecated
and convert all users to flush[_delayed]_work().
If you're cc'd and wondering what's going on: Now all workqueues are
non-reentrant and the regular flushes guarantee that the work item is
not pending or running on any CPU on return, so there's no reason to
use the sync flushes at all and they're going away.
This patch doesn't make any functional difference.
Signed-off-by: Tejun Heo <tj@kernel.org >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: Paul Mundt <lethal@linux-sh.org >
Cc: Ian Campbell <ian.campbell@citrix.com >
Cc: Jens Axboe <axboe@kernel.dk >
Cc: Mattia Dongili <malattia@linux.it >
Cc: Kent Yoder <key@linux.vnet.ibm.com >
Cc: David Airlie <airlied@linux.ie >
Cc: Jiri Kosina <jkosina@suse.cz >
Cc: Karsten Keil <isdn@linux-pingi.de >
Cc: Bryan Wu <bryan.wu@canonical.com >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: Alasdair Kergon <agk@redhat.com >
Cc: Mauro Carvalho Chehab <mchehab@infradead.org >
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de >
Cc: David Woodhouse <dwmw2@infradead.org >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: linux-wireless@vger.kernel.org
Cc: Anton Vorontsov <cbou@mail.ru >
Cc: Sangbeom Kim <sbkim73@samsung.com >
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Eric Van Hensbergen <ericvh@gmail.com >
Cc: Takashi Iwai <tiwai@suse.de >
Cc: Steven Whitehouse <swhiteho@redhat.com >
Cc: Petr Vandrovec <petr@vandrovec.name >
Cc: Mark Fasheh <mfasheh@suse.com >
Cc: Christoph Hellwig <hch@infradead.org >
Cc: Avi Kivity <avi@redhat.com >
2012-08-20 14:51:24 -07:00
Mark Brown
28c42c2830
ASoC: wm9712: Fix inverted capture volume
...
The capture volume increases with the register value so it shouldn't be
flagged as inverted.
Reported-by: Christoph Fritz <chf.fritz@googlemail.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-17 22:43:18 +01:00
Mark Brown
ccf795847a
ASoC: wm9712: Fix microphone source selection
...
Currently the microphone input source is not selectable as while there is
a DAPM widget it's not connected to anything so it won't be properly
instantiated. Add something more correct for the input structure to get
things going, even though it's not hooked into the rest of the routing
map and so won't actually achieve anything except allowing the relevant
register bits to be written.
Reported-by: Christop Fritz <chf.fritz@googlemail.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
Cc: stable@vger.kernel.org
2012-08-17 22:42:14 +01:00
Mark Brown
45a690f6bc
ASoC: wm8994: Add bytes controls for DRC
...
If DRC coefficients are not configured via platform data then add bytes
controls for them instead so they can be configured by applications. This
is the normal means of controlling things like this for newer systems, we
maintain compatibility with platform data to avoid disruption to existing
systems.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-17 22:40:53 +01:00
Mark Brown
939d5044b1
ASoC: wm5102: Remove DRC2
...
It will be removed from future device revisions.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-17 22:38:27 +01:00
Mark Brown
a3150f0917
ASoC: wm5102: Add AEC routing control
...
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-17 22:32:59 +01:00
Mark Brown
17c3f7e8f3
ASoC: wm5110: Add missing input PGA routes
...
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-13 13:27:30 +01:00
Mark Brown
14ebd8a8c1
ASoC: wm5102: Add missing input PGA routes
...
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-13 13:27:29 +01:00
Mark Brown
94237f8e8e
ASoC: wm5110: Enable output clocks
...
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-09 19:34:30 +01:00
Mark Brown
c665d1a8c4
ASoC: wm5102: Enable output clocks
...
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-09 19:34:29 +01:00
Mark Brown
cbd840dade
ASoC: arizona: Implement OPCLK support
...
Arizona devices support two output system clocks. Provide support for
configuring these via set_sysclk(). Once the clock API is more useful
we should migrate over to that.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-09 19:34:28 +01:00
Chris Rattray
15676937e6
ASoC: wm8994: Add missing dapm routes for WM8958 rev A
...
Signed-off-by: Chris Rattray <crattray@opensource.wolfsonmicro.com >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-09 14:21:47 +01:00
Mark Brown
52c0eee332
ASoC: wm8962: Don't duplicate bias level management in resume
...
The core will bring the bias level up for us since we use idle_bias_off,
duplicating this may be harmful.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-09 14:11:10 +01:00
Sachin Kamat
209ffe19ff
ASoC: cs42l52: Remove duplicate inclusion of slab.h header file
...
slab.h header file was included twice.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-07 15:09:25 +01:00
Sachin Kamat
f062e2b641
ASoC: tpa6130a2: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:36 +01:00
Sachin Kamat
cee4fcfa9d
ASoC: cs42l51: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:35 +01:00
Sachin Kamat
a8af02cf62
ASoC: max98095: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:35 +01:00
Sachin Kamat
2be59418f7
ASoC: wm8974: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:35 +01:00
Sachin Kamat
3c010e60ee
ASoC: wm8960: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:35 +01:00
Sachin Kamat
d0b2d4fabb
ASoC: adau1373: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:35 +01:00
Sachin Kamat
5c86ea44bb
ASoC: wm8903: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:35 +01:00
Sachin Kamat
8b08eb28c7
ASoC: wm8961: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:34 +01:00
Sachin Kamat
794836b959
ASoC: wm8940: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:34 +01:00
Sachin Kamat
3a4bfd88af
ASoC: wm2000: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:34 +01:00
Sachin Kamat
a9418ddca6
ASoC: wm2200: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:34 +01:00
Sachin Kamat
07c9c32be0
ASoC: wm8955: Use module_i2c_driver
...
module_i2c_driver makes the code simpler by eliminating module_init
and module_exit calls.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org >
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com >
2012-08-06 15:20:34 +01:00