]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: intel: enable test modes
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Sun, 20 Sep 2020 19:32:06 +0000 (03:32 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 23 Sep 2020 09:59:30 +0000 (15:29 +0530)
commit2896e6424140931a4427d4b26c5d6a0bf9c7e0f7
treea9fc89363753fd0ad3a31ad8525164d2749a3599
parent30ada4507a768f39e1c2fef80b954ed63a5ae54b
soundwire: intel: enable test modes

This patch adds debugfs support to override the Master and Slave data
modes. The settings only take effect prior to a new stream being
prepared/enabled, or on resume.

The test mode can be set to verify data integrity and detect bus
clashes, but can only be used to test capture paths. In this case the
input generated by a Slave source port is replaced by a fixed or
cyclical patterns.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20200920193207.31241-3-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c