Allow writing into the debugfs register files

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
ASOC: WM5102: Add dapm routes for CPVDD

INx receive power from MICVDD which is
supplied via CPVDD so add MICVDD-CPVDD
dapm routes

Change-Id: I5f073986a8fdd2ae06eb616b9125e2039f9a698b
Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
ASoC: arizona: Hookup SYSCLK to inputs and noise generators

All sources and sinks should enable SYSCLK.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 6dc6a3f81ee66b50acee5f1aa1de2f7d2d4e55fa)

Change-Id: Ie6b41a55b531f8fe4fd8ce3639acaa9acd72aff5
Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
ASOC: WM8804: Add alsa control for SPDIF-RX

SPDIF RX was enabled or disabled based on the
source for SPDIF TX. When source for SPDIF TX is
AIF then SPDIF RX was disabled and when the source
is SPDIF RX then it is enabled. This logic was not
correct as SPDIF RX can also be enabled when we just
want SPDIF RX -> AIF path without any SPDIF TX in
picture

Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
ASOC: dapm: add param_fixup callback

dai-link params for codec-codec links were fixed.
The fixed link between codec and another chip which
may be another codec, baseband, bluetooth codec etc
may require run time configuaration changes.
This change provides an optional callback to modify
these params.

Change-Id: Iad6ee3951bc4e8b8bc519c62642a2b4bcd949c18
Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
ASoC: arizona: Check clocking during hw_params rather than startup

It is a fairly common usage to configure SYSCLK as part of the hw_params
callback in the machine driver. The current driver applies PCM
constraints based on the value of SYSCLK during the startup callback
however because many systems will have not configured SYSCLK yet this
will often use the SYSCLK value that was used for the last stream.

The patch checks the clocking constraints as part of the hw_params
callback, which will be after any clocking changes have been made by
the machine driver.

Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
ARM: bcm2708: Limit the boot time interrupt allocation

Limit the boot time interrupt allocation to RPi related
interrupts only

Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
ASOC: arizona: Use virtual IRQs

Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
ASOC: RPi: Add support for Wolfson Audio Card

Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
dma: bcm2708: synchronise dma and dmaengine drivers

dmaengine driver is dependent on dma driver, before it
allocates dma channels, it must wait for dma driver
probe to complete. Also the soc dma engine must wait for
dma device and channel to be allocated by dma engine
driver.

Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
ASOC: RPi: Set WM8804 MCLK_DIV=0 (256fs)

Avoids any issues with PLL setup whilst switching between
RX and TX modes

Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
config: add config for wolfson audio card

Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
ASOC: BCM2708: Update pcm hw info flag

Signed-off-by: nikesh <Nikesh.Oswal@wolfsonmicro.com>
ASoC: arizona: An OUTDIV of 1 is not valid, avoid this

One is not a valid value for the OUTDIV start searching at 2 instead.

Change-Id: Ibeda365afbe7f25778da7f3c185e474a5565200c
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
ASoC: arizona: Disable AIF TX/RX before configuring it

If we don't disable the AIF TX/RX then we may fall into a
situation where the new AIF settings are ignored by the device.

For example, this problem manifests when switching between
different sample rates.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>