OSDN Git Service

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)
commitf139546fb7d436145cbbffa346de7d5353c84fdf
tree0c6e5576110caa82502fdc5a6c3215ea656488d3
parente8e7ef43c73328276e1d446b02ae16006742ebb1
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]