summaryrefslogtreecommitdiff
path: root/sound/soc
AgeCommit message (Collapse)AuthorFilesLines
2013-08-19ASoC: wm8997: Add inputs for noise and mic mixersMark Brown1-3/+3
The noise and mic mixer inputs were not connected, do so. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-19ASoC: wm5110: Add inputs for noise and mic mixersMark Brown1-3/+3
The noise and mic mixer inputs were not connected, do so. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-19ASoC: wm5102: Add inputs for noise and mic mixersMark Brown1-3/+3
The noise and mic mixer inputs were not connected, do so. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-18ASoC: wm8782: Add DAPM supportMark Brown1-1/+16
In order to make the device easier to hook up to external components in system designs and ensure operation when DAPM support becomes mandatory add DAPM support. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-18ASoC: wm8727: Add DAPM supportMark Brown1-1/+16
In order to make the device easier to hook up to external components in system designs and ensure operation when DAPM support becomes mandatory add DAPM support. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-18ASoC: cs4270: Add DAPM supportMark Brown1-0/+20
This makes it possible to hook the device into a more complex board and ensures it will continue to work with non-DAPM support removed from the core. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-18ASoC: wl1273: Add stub DAPM supportMark Brown1-0/+17
In order to ensure that the device continues to work with DAPM support being mandatory provide stub DAPM widgets and routes. Note that the public information on the device appears to make no mention of the FM support the driver appears to have. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-18ASoC: pcm3008: Manage DAC and ADC power with DAPMMark Brown1-33/+39
Rather than leaving the DAC and ADC active whenever the system is running manage their power with DAPM. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-18ASoC: pcm3008: Add DAPM supportMark Brown1-0/+20
Make it possible to connect external devices to the CODEC and ensure continued operation with non-DAPM support removed from the core. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-18ASoC: pcm3008: Use gpio_set_value_cansleep()Mark Brown1-4/+4
We don't set the GPIO values from atomic context so support GPIOs that can't be controlled from atomic context. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-18ASoC: wm8960: Fix PLL register writesMike Dyer1-3/+3
Bit 9 of PLL2,3 and 4 is reserved as '0'. The 24bit fractional part should be split across each register in 8bit chunks. Signed-off-by: Mike Dyer <mike.dyer@md-soft.co.uk> Signed-off-by: Mark Brown <broonie@linaro.org> Cc: stable@vger.kernel.org
2013-08-18ASoC: fsl: Drop SND_SOC_FSL_UTILS from i.mx machine codeFabio Estevam1-2/+0
SND_SOC_FSL_UTILS is only used by PowerPC machines, so let's drop it in the i.mx case. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-18ASoC: si476x: Add DAPM supportMark Brown1-0/+14
This ensures the driver continues to work with DAPM mandatory and makes it easier to connect the device up to other components in the subsystem. Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Andrey Smirnov <andrew.smirnov@gmail.com>
2013-08-16ASoC: tlv320aic26: Add basic DAPM supportMark Brown1-0/+20
Provide external widgets for the CODEC to ensure the device continues to function with DAPM mandatory and to make it easier to hook the device up to other components. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-16ASoC: tlv320aic26: Remove noisy printMark Brown1-2/+0
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-16ASoC: tlv320aic26: Remove direct use of internal I/O functionsMark Brown1-11/+11
Use the core to do I/O rather than directly calling the driver operations in order to support further refactoring. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-16ASoC: imx-audmux: Move definitions to dt-bindingsMarkus Pargmann1-51/+1
Move imx-audmux macro definitions to include/dt-bindings, so they can be used for devicetree. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15Merge remote-tracking branch 'asoc/fix/tegra' into asoc-linusMark Brown1-1/+1
2013-08-15Merge remote-tracking branch 'asoc/fix/sgtl5000' into asoc-linusMark Brown1-4/+14
2013-08-15Merge remote-tracking branch 'asoc/fix/dapm' into asoc-linusMark Brown1-3/+4
2013-08-15Merge branch 'topic/dma' of ↵Mark Brown27-462/+84
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-omap Conflicts: sound/soc/omap/Kconfig
2013-08-15ASoC: pcm1681: Add DAPM supportMark Brown1-0/+26
Provide DAPM for the device, ensuring operation with DAPM required by the core and making it easier to hook up external hardware to it. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15ASoC: pcm1792a: Add DAPM supportMark Brown1-0/+18
Provide DAPM for the device, ensuring operation with DAPM required by the core and making it easier to hook up external hardware to it. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15ASoC: pcm1792a: Remove empty capture DAI stubMark Brown1-4/+0
These intialisations are just what will be done for static data anyway so remove them. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15ASoC: pxa: add DT bindings for pxa2xx-pcmDaniel Mack1-2/+11
The bindings do not carry any resources, as the module only registers the ASoC platform driver. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15ASoC: pxa: pxa-ssp: set dma filter data from startup hookDaniel Mack1-1/+4
With the new dmaengine implementation, the filter_data parameter has to be set earlier, from pxa_ssp_startup(). Signed-off-by: Daniel Mack <zonque@gmail.com> Acked-by: Mark Brown <broonie@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15ASoC: pxa: use snd_dmaengine_dai_dma_dataDaniel Mack6-81/+78
Use snd_dmaengine_dai_dma_data for passing the dma parameters from clients to the pxa pcm lib. This does no functional change, it's just an intermedia step to migrate the pxa bits over to dmaengine. The calculation of dcmd is a transition hack which will be removed again in a later patch. It's just there to make the transition more readable. Signed-off-by: Daniel Mack <zonque@gmail.com> Acked-by: Mark Brown <broonie@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15ASoC: pxa: pxa-ssp: add DT bindingsDaniel Mack1-6/+31
The pxa ssp DAI acts as a user of a pxa ssp port, and needs an appropriate 'port' phandle in DT to reference the upstream. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15Merge branch 'topic/dma' of ↵Mark Brown27-462/+84
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-pxa
2013-08-15ALSA: move dmaengine implementation from ASoC to ALSA coreDaniel Mack6-378/+4
For the PXA DMA rework, we need the generic dmaengine implementation that currently lives in sound/soc for standalone (non-ASoC) AC'97 support. Move it to sound/core, and rename the Kconfig symbol. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15ASoC: tegra20-ac97: simplify use of devm_ioremap_resourceJulia Lawall1-6/+0
Remove unneeded error handling on the result of a call to platform_get_resource when the value is passed to devm_ioremap_resource. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression pdev,res,n,e,e1; expression ret != 0; identifier l; @@ - res = platform_get_resource(pdev, IORESOURCE_MEM, n); ... when != res - if (res == NULL) { ... \(goto l;\|return ret;\) } ... when != res + res = platform_get_resource(pdev, IORESOURCE_MEM, n); e = devm_ioremap_resource(e1, res); // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15ASoC: tegra: support a Mic Jack in the Tegra+RT5640 machine driverStephen Warren1-0/+1
Add a Mic Jack widget to the Tegra+RT5640 machine driver, and document this in the DT binding. This enables the DT to include the Mic Jack in the audio routing table, and hence enables capture of audio, in addition to the previously-working playback. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-15ASoC: tegra: fix Tegra30 I2S capture parameter setupStephen Warren1-1/+1
The Tegra30 I2S driver was writing the AHUB interface parameters to the playback path register rather than the capture path register. This caused the capture parameters not to be configured at all, so if capturing using non-HW-default parameters (e.g. 16-bit stereo rather than 8-bit mono) the audio would be corrupted. With this fixed, audio capture from an analog microphone works correctly on the Cardhu board. Cc: stable@vger.kernel.org Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-14ASoC: mioa701_wm9713: Remove definition of ARRAY_AND_SIZE()Julia Lawall1-2/+0
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-14ASoC: wm8960: Fix ADC volume bitsMa Haijun1-2/+2
Signed-off-by: Ma Haijun <mahaijuns@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-14ASoC: samsung-ac97: simplify use of devm_ioremap_resourceJulia Lawall1-6/+1
Remove unneeded error handling on the result of a call to platform_get_resource when the value is passed to devm_ioremap_resource. Move the call to platform_get_resource adjacent to the call to devm_ioremap_resource to make the connection between them more clear. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression pdev,res,n,e,e1; expression ret != 0; identifier l; @@ - res = platform_get_resource(pdev, IORESOURCE_MEM, n); ... when != res - if (res == NULL) { ... \(goto l;\|return ret;\) } ... when != res + res = platform_get_resource(pdev, IORESOURCE_MEM, n); e = devm_ioremap_resource(e1, res); // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-13ASoC: Samsung: I2S: Modify the I2S driver to support I2S on Exynos5420Padmavathi Venna2-8/+88
Exynos5420 added support for I2S TDM mode. For this, there are some register changes in the I2S controller. This patch adds the relevant register changes to support I2S in normal mode. This patch adds a quirk for TDM mode and if TDM mode is present all the relevent changes will be applied. Signed-off-by: Padmavathi Venna <padma.v@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-13ASoC: Samsung: I2S: Add quirks as driver data in I2SPadmavathi Venna1-26/+36
Samsung has different versions of I2S introduced in different platforms. Each version has some new support added for multichannel, secondary fifo, s/w reset control and internal mux for rclk src clk. Each newly added change has a quirk. So this patch adds all the required quirks as driver data and based on compatible string from dtsi fetches the quirks. Signed-off-by: Padmavathi Venna <padma.v@samsung.com> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-13ASoC: max9877: Add basic DAPM supportMark Brown1-2/+37
This does not fully map the power control available within the device but it provides the hooks for routing signals through the device and allows automatic management of the device low power mode. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-13ASoC: max9877: Convert to standard CODEC driverMark Brown1-225/+31
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-13ASoC: max9877: Convert to use regmap APIMark Brown1-69/+118
Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-13ASoC: ak4554: Add DAPM supportMark Brown1-0/+20
This makes it possible to hook the device into a more complex board and ensures it will continue to work with non-DAPM support removed from the core. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-13ASoC: wm8997: Initial CODEC driverCharles Keepax5-3/+1216
The wm8997 is a compact, high-performance audio hub CODEC with SLIMbus interfacing, for smartphones, tablets and other portable audio devices based on the Arizona platform. This patch adds the wm8997 CODEC driver. [Fixed some interface churn from bitrot due to the patch not going via the MFD tree as expected -- broonie] Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-13ASoC: dapm: Ensure kcontrol list is initialisedMark Brown1-0/+1
Ensure that the recently added path kcontrol list is initialised otherwise we may crash trying to delete routes that don't have kcontrols. Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Lars-Peter Clausen <lars@metafoo.de>
2013-08-13ASoC: dapm: Don't create routes when creating kcontrolsMark Brown1-7/+5
Attempting to create the route as part of adding a mux control causes us to attempt to add the same route twice since we loop over all sources for the mux after creating the control. Instead do the addition in the callers. Signed-off-by: Mark Brown <broonie@linaro.org> Acked-by: Lars-Peter Clausen <lars@metafoo.de>
2013-08-13Merge remote-tracking branch 'asoc/fix/dapm' into asoc-dapmMark Brown1-3/+4
2013-08-13Merge tag 'v3.11-rc5' into asoc-dapmMark Brown10-27/+28
Linux 3.11-rc5
2013-08-12ASoC: arizona: Add widget<->mux route into mux route macroCharles Keepax3-34/+18
The routes linking the widget and the input mux were being added manually, rather than by the ARIZONA_MUX_ROUTES macro. This patchs adds the routes to the macro. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-12ASoC: ak5386: Add DAPM supportMark Brown1-1/+16
This makes it possible to hook the device into a more complex board and ensures it will continue to work with non-DAPM support removed from the core. Signed-off-by: Mark Brown <broonie@linaro.org>
2013-08-12ASoC: ak4104: Manage TXE using DAPMMark Brown1-19/+4
Saves some code. We should also be able to manage the power up and reset registers using DAPM but it's probably more trouble than it's worth in mains powered systems. Signed-off-by: Mark Brown <broonie@linaro.org>