ASoC: dwc: Add record capability in PIO mode
authorJose Abreu <Jose.Abreu@synopsys.com>
Tue, 27 Dec 2016 14:00:53 +0000 (14:00 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 9 Jan 2017 11:59:05 +0000 (11:59 +0000)
commite2f748e06db389d9fd51413df23ff8d3615a47db
treec98393f5af52c9c060e23452c3ea4fd1b25abdcd
parent6fce983f9b3ef51d47e647b2cff15049ef803781
ASoC: dwc: Add record capability in PIO mode

Up until now PIO mode offered only playback support. With
this patch we add support for record mode. The PCM was
refactored so that we could reuse the existing infrastructure
without many changes.

We have support for 16 and 32 bits of sample size using
only 2 channels.

Tested in a x86_64 platform and in ARC AXS101 SDP platform.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/dwc/designware_i2s.c
sound/soc/dwc/designware_pcm.c
sound/soc/dwc/local.h