summaryrefslogtreecommitdiffstats
path: root/sound/soc/uniphier/aio-core.c
Commit message (Collapse)AuthorAgeFilesLines
* ASoC: uniphier: aio-core: Make some read-only arrays static constColin Ian King2022-12-051-5/+6
| | | | | | | | | | Don't populate the read-only arrays slotsel_2ch, slotsel_multi, v_pll and v_div on the stack but instead make them static const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20221202164156.1812971-1-colin.i.king@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
* ASoC: uniphier: aio-core: fix kernel-docPierre-Louis Bossart2020-07-091-4/+3
| | | | | | | | | Fix W=1 warning - wrong parameter description and bad format Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com> Link: https://lore.kernel.org/r/20200707190612.97799-6-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
* ASoC: uniphier: change functions to staticKatsuhiro Suzuki2018-07-301-3/+3
| | | | | | | | This patch changes some functions that are not used by other objects to static. Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* ASoC: uniphier: add support for multichannel outputKatsuhiro Suzuki2018-07-301-5/+73
| | | | | | | | This patch adds multichannel PCM output support for LD11/LD20. Currently driver tested and supported only 2ch, 6ch, and 8ch. Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* ASoC: uniphier: add digital output volume for UniPhier sound systemKatsuhiro Suzuki2018-05-091-0/+58
| | | | | | | | | | | | This patch adds controllers for digital volume of PCM output. Volume effects simply linear, not dB scale as follows: Gained PCM = Original * 0x4000 / Volume The value range of volume is from 0x0001 to 0xffff. 0x0000 works as mute. Initial value is 0x4000 (+0dB). Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* ASoC: uniphier: remove boilerplate from lisence commentKatsuhiro Suzuki2018-04-271-13/+0
| | | | | | | | This patch removes boilerplate of GPLv2, use only SPDX identifier as same as other recently ASoC DAI drivers. Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* ASoC: uniphier: add syscon property for UniPhier sound systemKatsuhiro Suzuki2018-03-181-0/+21
| | | | | | | | | | | | This patch adds syscon property for specifying soc-glue core. Currently, soc-glue core is used for changing the state of S/PDIF signal output pin to signal output state or Hi-Z state. After resetting of SoC Hi-Z state is selected. This driver set to signal output state when syscon property is available. Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* ASoC: uniphier: fix broken sound if use SRC in replayKatsuhiro Suzuki2018-02-261-2/+15
| | | | | | | | | This patch fixes settings for ports with SRC. These ports need to set the fixed audio rate and clock. If not, the SRC outputs broken sound. Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* ASoC: uniphier: aiodma_rb_get_rp() can be staticWu Fengguang2018-02-131-1/+1
| | | | | | Fixes: f37fe2f9987b ("ASoC: uniphier: add support for UniPhier AIO common driver") Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* ASoC: uniphier: add support for UniPhier AIO common driverKatsuhiro Suzuki2018-02-121-0/+1104
This patch adds common functions for UniPhier AIO audio sound system. This provides commonly used APIs for input/output control registers for UniPhier AIO. This module provides all sound devices for I2S, S/PDIF and so on. Since the AIO has mixed register map for those I/Os, it is hard to split register areas for each sound devices. Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Signed-off-by: Mark Brown <broonie@kernel.org>