summaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2012-06-22ASoC: OMAP: HDMI: Create a structure for private data of the CPU DAIRicardo Neri
Create a struct hdmi_priv to store the relevant data of the CPU DAI driver. As more data is added to the driver, having all the data in the same location eases its handling. At the moment, only the DMA configuration parameters are included in the structure. Also, the required memory is allocated using devm_kzalloc rather than using a static global variable. Signed-off-by: Ricardo Neri <ricardo.neri@ti.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: OMAP: HDMI: Change error values in HDMI CPU DAIRicardo Neri
When getting the needed resources fails, return -ENODEV. This is more in line with other drivers do and it gives a more descriptive error. Signed-off-by: Ricardo Neri <ricardo.neri@ti.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: OMAP: HDMI: Update the platform device namesRicardo Neri
In order to utilize the new OMAP HDMI codec and the updated name of the device of the CPU DAI, update the names at the drivers accordingly. While there, also update the name of the machine driver to be more generic and encompass more OMAP processors featuring HDMI and not only OMAP4. Signed-off-by: Ricardo Neri <ricardo.neri@ti.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: OMAP: HDMI: Introduce codecRicardo Neri
Introduce codec for HDMI. At the moment, this is a dummy codec. In the future it will parse the EDID to modify the supported parameters, such as the number of channels and the sample rates. At the moment, it blindly supports all the sample rates and audio channels described in the HDMI 1.4a specification. Signed-off-by: Ricardo Neri <ricardo.neri@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-06-22ASoC: omap-abe-twl6040: Always update jack detection.Sebastien Guiriec
Headset Jack detect pin need to be added for all the board in order to get audio record working on PandaBoard. Without this patch the BIAS of the microphone or Line IN is not set. Signed-off-by: Sebastien Guirec <s-guiriec@ti.com>
2012-06-22ASoC: OMAP ABE: Restore auto-gating after pm_runtime_get_sync()Gabriel M. Beddingfield
After calling pm_runtime_put_sync(), the ABE can lose its clocks, which clear the registers. When pm_runtime_get_sync() is called, the clocks are restored and the registers are set to their default values. Since auto-gating is off by default, it needs to be reset every time the clocks are restored This patch does this by enforcing the use of the internal abe_dsp_pm_get() and abe_dsp_pm_put() instead of the raw pm_* functions. After calling pm_runtime_get_sync(), the clocks are restored by a new ABE function abe_set_auto_gating(). There are two exceptions to using the abe_dsp_pm_*() functions: 1. In the abe_probe() method, auto-gating is restored when the firmware is loaded. In addition, the registers can not be referenced immediately after calling pm_runtime_get_sync(). Therefore, the calls are handled separately. 2. In abe_irq_handler() pm_runtime_put_sync_suspend() is used instead of pm_runtime_put_sync(). It is left in tact. Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com> Signed-off-by: Sebastien Jan <s-jan@ti.com>
2012-06-22omap: abe: plug-in device scaleSebastien Jan
Enable OPP scaling for audio domain (device_scale callback). However, keep in mind that IVA domain OPP50 is deactivated (so ABE OPP50 currently ties to IVA OPP100). Signed-off-by: Sebastien Jan <s-jan@ti.com>
2012-06-22UBUNTU: SAUCE: snd_soc_abe_twl6040: add a dummy symbol to enforce dependency ↵Paolo Pisati
on snd_soc_omap and snd_soc_mcpdm Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2012-06-22UBUNTU: SAUCE: omap4_abe: reuse #included firmwarePaolo Pisati
While there're comments in the code about dinamically loading the firmware, the blob is always statically #included[1], and we don't have the firmware as an external file: reuse the fw array. [1] = see sound/soc/omap/abe/abe_ini.c::aess_firmware_array Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
2012-06-22ASoC: OMAP ABE: Do not disable IO task before OFF modeSebastien Guiriec
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
2012-06-22ASoC: omap-abe-twl6040: Make sure we dont add DMIC rous for PandaLiam Girdwood
Pandaboard does not have DMICs so don't add any routes. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: omap-dmic: ABE supportPeter Ujfalusi
Implementation of EBE integration with the DMIC driver. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> ASoC: omap-dmic: ABE support Implementation of ABE integration with the DMIC driver. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
2012-06-22ASoC: OMAP ABE: put back Mono mixer functionality.Sebastien Guiriec
Update generic code for ABE port in order to enable/disable mono mixer configuration Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
2012-06-22ASoC: omap-abe-twl6040: Add DMIC DAIs into audio pathLiam Girdwood
Make sure we connect the DMIC DAIs to the ABE Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: omap dmic: Add stream names for each ABE DAILiam Girdwood
Add stream names for ABE DAIs stream DAI matching. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: ABE - Unmute Tones DL2 gain when appropriate.Gabriel M. Beddingfield
When unmuting the "Tones" gains, only the DL1 gain was being un-muted. This was obviously a typo. Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
2012-06-22ASoC: OMAP ABE: Remove build warning for ABE port.Sebastien Guiriec
Remove build warning form ABE port initialization Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
2012-06-22ASoC: OMAP ABE: Update to ABE Firmware 09.56Sebastien Guiriec
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
2012-06-22ASoC: dapm: Make sure all dapm contexts are updatedLiam Girdwood
Make sure we set the bias level for all DAPM contexts when changing level. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22SOC OMAP HACK remove dmic as selection from abeAndy Green
Otherwise dmic.2 moans about invalid dma memory from hwmod Signed-off-by: Andy Green <andy.green@linaro.org>
2012-06-22asoc omap abe twl6040 allow on omap4 panda machineAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-06-22uplevel omap5 asoc correct dependencies for abe twl6040 kconfigAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-06-22uplevel kconfig allow able 6040 on omap5Andy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-06-22uplevel 3.4 rc3 fixesAndy Green
Signed-off-by: Andy Green <andy.green@linaro.org>
2012-06-22ASoC: ABE: Add hw_rule for 250us period constraintMisael Lopez Cruz
Audio Backend requires period time in steps of 250us. Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2012-06-22ALSA: pcm: export 'snd_interval_step' symbolMisael Lopez Cruz
Export 'snd_interval_step' symbol so that ALSA drivers can use it to add hw rules. Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
2012-06-22ASoC: dpcm: check all DAI widgets for BE type when creating new DPCMsLiam Girdwood
Recent DAI widget updates mean we have to make sure that the DAIs returned in the valid audio path are all BE type (and not FE). Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: twl6040: Fix legacy playback, and capturePeter Ujfalusi
In order to get the legacy mode working (to DAPM power on the path) we need to connect the legacy stream name to the DACs of the codec. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
2012-06-22ASoC: twl6040: Remove HS/HF gain ramp featurePeter Ujfalusi
None of the machines uses the gain ramp possibility for HS/HF. This code path is mostly unused, but it can cause race conditions in certain scenarios. Remove the gain ramp, and related features form the driver. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
2012-06-22ASoC: omap-abe-twl6040: Fix Voice PortLiam Girdwood
Modem is handled by the McBSP DAI and not the voice port. To be squshed for upstream. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: abe mixer: Simplify graph for MM_DL.Liam Girdwood
To be squshed for upstreaming. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dapm: Make sure we only create one widget per DAI.Liam Girdwood
Sometimes more than 1 widget per DAI can be created when the DAI is embedded with a codec or platform component. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: abe mixer: Update graph with recent DAI widget changes.Liam Girdwood
To be squashed for upstreaming. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dapm: Only create DAI widgets for valid DAIs streams.Liam Girdwood
Check that the DAI can support the stream direction and make sure we dont try and deref a NULL widget. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dapm: Free dapm mutex on new widget failureLiam Girdwood
Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dpcm: Use locked version for DPCM stream events.Liam Girdwood
Make sure we hold the DAPM mutex for DPCM based stream events. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: pcm: Use locked stream event for PCM ops.Liam Girdwood
Guarantee we hold the DAPM mutex for all PCM DAPM stream ops Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dapm: Dont hold the DAPM mutex for runtime updates.Liam Girdwood
To be squahed into DPCM upstream series. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dapm: Simplify stream event logic.Liam Girdwood
If statement not needed after recent updates. To be squashed. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dapm: Fix and unlock the card mutex on add route errorsLiam Girdwood
Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dapm: make sure we use the correct widget for connected widgets.Liam Girdwood
We should use the capture widget for capture streams. To be squashed. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dpcm core: Make sure we use card mutex for FE open/close.Liam Girdwood
Bring this up a level to additionally protect the paths and status. To be squashed for upstream. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dapm: Fix runtime connected widgets update deadlock.Liam Girdwood
Introduced in the 3.5 mutex updates, to be squashed for upstream. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: dpcm core: Hold card mutex on runtime updates.Liam Girdwood
Somehow this was dropped from recent mutex work and will be squashed into upstream submission. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: omap-abe-twl6040: Move the TPS6130x init out of probe.Liam Girdwood
Deferred probe can cause this to happen more than once. Move to machine init to fix. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: omap-abe-twl6040: Use correct DAPM context.Liam Girdwood
Use the correct DAPM context for pins that ignore suspend. Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: core: Fix build for deferred probe ?Liam Girdwood
Looks like either a merge issue or a missing patch here. TODO: fixup and squash before upstreaming Signed-off-by: Liam Girdwood <lrg@ti.com>
2012-06-22ASoC: omap-mcbsp: Export functions for threshold configurationPeter Ujfalusi
ABE has certain requirements towards the FIFO configuration in McBSP. Make it posssible to configure the McBSP FIFO threshold from outside of the McBSP driver stack. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
2012-06-22ASoC: omap-mcpdm: Fix legacy capturePeter Ujfalusi
We need only one DAI for legacy mode, which provides the playback, and capture capability. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
2012-06-22ASoC: omap-abe-twl6040 - General ABE supportLiam Girdwood
To be squshed prior to release. Signed-off-by: Liam Girdwood <lrg@ti.com>