summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tas2552.c
Commit message (Collapse)AuthorAgeFilesLines
* ASoC: tas2552: Fix kernel crash caused by wrong kcontrol entryPeter Ujfalusi2015-07-031-1/+0
| | | | | | | | | | | | [ Upstream commit 1cf0f44811b754b64283b11ef0e60cb0de07b29c ] SOC_DAPM_SINGLE("Playback AMP", ..) should not be under kcontrols. It causes kernel crash (NULL pointer) when the mixers are listed. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
* ASoC: tas2552: Fix kernel crash when the codec is loaded but not part of a cardPeter Ujfalusi2015-07-031-0/+3
| | | | | | | | | | | | [ Upstream commit 80ba2669ec8c3e6517aa935001f6cb8809bf3df4 ] If the card is not part of any card the tas_data->codec is NULL since it is set only during snd_soc_codec_driver.probe, which is not yet called. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
* ASoC: tas2552: Fix compilation warning for !PM_RUNTIMEThierry Reding2014-10-021-0/+2
| | | | | | | | The tas2552_sw_shutdown() function is only used by runtime suspend support, so only build it when necessary. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* ASoC: tas2552: Add DAPM calls for amp and PLLDan Murphy2014-08-161-20/+48
| | | | | | | | | Add DAPM calls to enable/disable the Class D amp. Also add a DAPM call to turn off the PLL upon the stream completing. Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
* ASoC: tas2552: Return proper error for probe error pathsAxel Lin2014-07-251-2/+4
| | | | | | | Return error if devm_regulator_bulk_get() or snd_soc_register_codec() fails. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
* ASoC: tas2552: Fix PM sequencingDan Murphy2014-07-211-3/+5
| | | | | | | | | | | | In the pm suspend/resume it is better to disable the GPIO after the regmap_cache setting calls so that if the call is interrupted the new reg values will be cached and set on resume. Also add pm_runtime_put in the remove call. Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
* ASoC: tas2552: Support TI TAS2552 AmplifierDan Murphy2014-07-171-0/+540
Support the TI TAS2552 Class D amplifier. The TAS2552 is a high efficiency Class-D audio power amplifier with advanced battery current management and an integrated Class-G boost The device constantly measures the current and voltage across the load and provides a digital stream of this information. Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>