]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: boards: sof-wm8804: support for Hifiberry Digiplus boards
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 1 May 2020 15:16:25 +0000 (10:16 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 1 May 2020 16:45:22 +0000 (17:45 +0100)
commit2a3766125cdf3133e910ffe8107bd981d4423385
tree0c6e5576110caa82502fdc5a6c3215ea656488d3
parent5b8d2ebd2809ed0e2d1c28b6b85d8615432c242b
ASoC: Intel: boards: sof-wm8804: support for Hifiberry Digiplus boards

Add a new machine driver to interface with WM8804. The code is based
on settings found in sound/soc/bcm/hifiberry-digi.c in the Raspberry
PI tree.

Tested on Up2 with Digi+ IO (capture+playback) and Digi+ PRO (playback
with two local oscillators supported). The codec is clock master in
both cases.

Capture support has known clocking restrictions: the transmitter needs
to be active for the clock recovery, the "Tx Source" mixer set to
"S/PDIF RX". Playback will only work while capture is active.

When Capture is not desired, or when there is no RX connector, the "Tx
Source" mixer should be set to "AIF"

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200501151625.17820-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/Kconfig
sound/soc/intel/boards/Makefile
sound/soc/intel/boards/sof_wm8804.c [new file with mode: 0644]