ASoC: sam9g20ek: Disable capture unless building with microphone input
authorMark Brown <broonie@kernel.org>
Sat, 25 Feb 2023 21:48:13 +0000 (21:48 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 28 Feb 2023 13:59:55 +0000 (13:59 +0000)
commitc769fb6bcc485d752d492064a9005525a8d5fa24
tree4c5d9e14b39aa14464897c8a80680690d2a479a5
parentfb1847cc460c127b12720119eae5f438ffc62e85
ASoC: sam9g20ek: Disable capture unless building with microphone input

Without modification the AT91SAM9G20-EK has no capture support, none of the
inputs of the CODEC are wired to anything to useful and there are no paths
supporting loopback. Since the audio is clocked from the CODEC and the DAPM
inputs are marked as unusable this means that capture will fail to transfer
any data as the ADC path can't be powered up.

Flag this in the device description so apps don't see unusable capture
support, guarded with the existing optional define for mic input.

Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230225-asoc-sam9g20ek-v1-1-9baeb4893142@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/sam9g20_wm8731.c