summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/pcm512x.c
Commit message (Collapse)AuthorAgeFilesLines
* ASoC: pcm512x: Add 'Analogue' prefix to analogue volume controlsHoward Mitchell2015-05-171-2/+2
| | | | | | | | | | | | [ Upstream commit 4d9b13c7cc803fbde59d7e998f7de2b9a2101c7e ] This is to ensure that 'alsactl restore' does not apply default initialisation as the chip reset defaults are preferred. Signed-off-by: Howard Mitchell <hm@hmbedded.co.uk> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
* ASoC: pcm512x: Fix DSP program selectionPeter Rosin2015-02-051-1/+1
| | | | | | | | | | | commit 3a8e5019846736046c0af9dbee3f921c0456141a upstream. The DSP programs are listed out of order. Signed-off-by: Peter Rosin <peda@axentia.se> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* ASoC: pcm512x: Correct Digital Playback control namesMark Brown2014-08-121-2/+2
| | | | | | | The source type should come before the direction specifier according to ControlNames.txt. Signed-off-by: Mark Brown <broonie@linaro.org>
* Merge remote-tracking branch 'asoc/topic/pcm512x' into asoc-nextMark Brown2014-05-221-0/+2
|\
| * ASoC: pcm512x: Use CONFIG_PM_RUNTIME macroSachin Kamat2014-04-141-0/+2
| | | | | | | | | | | | | | | | | | Fixes the following compilation warnings: sound/soc/codecs/pcm512x.c:520:12: warning: ‘pcm512x_suspend’ defined but not used [-Wunused-function] sound/soc/codecs/pcm512x.c:545:12: warning: ‘pcm512x_resume’ defined but not used [-Wunused-function] Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
* | ASoC: pcm512x: Replace usage deprecated SOC_VALUE_ENUM macroLars-Peter Clausen2014-04-141-1/+1
|/ | | | | | | | SOC_VALUE_ENUM is deprecated and merely an alias for SOC_ENUM. Replace the deprecated macro so we can eventually remove their definition. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
* ASoC: pcm512x: Fix duplicate const warningMark Brown2014-03-091-4/+4
| | | | Signed-off-by: Mark Brown <broonie@linaro.org>
* ASoC: pcm512x: Split out bus driversMark Brown2014-03-091-126/+8
| | | | | | | Move to the new style of defining the bus interfaces in separate modules in order to simplify dependencies. Signed-off-by: Mark Brown <broonie@linaro.org>
* ASoC: pcm512x: Implement analogue volume controlMark Brown2014-02-071-0/+6
| | | | | | | There are some analogue volume controls in page 1 of the register map so implement support for them now that we can access the registers. Signed-off-by: Mark Brown <broonie@linaro.org>
* ASoC: pcm512x: Implement paging supportMark Brown2014-02-071-18/+47
| | | | | | | | | | | | | | The PCM512x devices use a paged register map covering the entire register range. Implement support for this, mapping pages in at addresses starting at 0x100 for ease of use (though since the pages are numbered from 0 there is going to be an off by one when looking at the first byte as a page number). Also mark the new registers as accessible with the exception of the coefficient RAM which is a bit fiddly and may benefit from some extra handling to linearise the blocks. Signed-off-by: Mark Brown <broonie@linaro.org>
* ASoC: pcm512x: More constificationMark Brown2014-02-061-6/+6
| | | | | | | | Since the core now takes const strings for enums we should be constifying them (and the regulator supplies while we're at it). Reported-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
* ASoC: pcm512x: Add PCM512x driverMark Brown2014-02-061-0/+672
The PCM512x devices are a family of monolithic CMOS integrated circuits that include a stereo digital-to-analog converter and additional support circuitry. This is an initial driver which supports some core functionality for the device which covers common use cases but does not cover all features. Currently only slave clocking modes with automatic clock configuration are supported and most of the DSP configuration for the device is not enabled. Signed-off-by: Mark Brown <broonie@linaro.org>