mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 01:24:12 +08:00
bcac590299
Expose MIPI DisCo Slave properties in sysfs. For Slave properties and Data Port 0, the attributes are managed with simple devm_ support. A Slave Device may have more than one Data Port (DPN), and each Data Port can be sink or source. The attributes are created dynamically using pre-canned macros, but still use devm_ with a name attribute group to avoid creating kobjects - as requested by GregKH. In the _show function, we use container_of() to retrieve port number and direction required to extract the information. Audio modes are not supported for now. Depending on the discussions the SoundWire Device Class, we may add it later as is or follow the new specification. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/r/20200518203551.2053-4-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
29 lines
712 B
Makefile
29 lines
712 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Makefile for soundwire core
|
|
#
|
|
|
|
#Bus Objs
|
|
soundwire-bus-objs := bus_type.o bus.o master.o slave.o mipi_disco.o stream.o \
|
|
sysfs_slave.o sysfs_slave_dpn.o
|
|
obj-$(CONFIG_SOUNDWIRE) += soundwire-bus.o
|
|
|
|
ifdef CONFIG_DEBUG_FS
|
|
soundwire-bus-objs += debugfs.o
|
|
endif
|
|
|
|
#Cadence Objs
|
|
soundwire-cadence-objs := cadence_master.o
|
|
obj-$(CONFIG_SOUNDWIRE_CADENCE) += soundwire-cadence.o
|
|
|
|
#Intel driver
|
|
soundwire-intel-objs := intel.o
|
|
obj-$(CONFIG_SOUNDWIRE_INTEL) += soundwire-intel.o
|
|
|
|
soundwire-intel-init-objs := intel_init.o
|
|
obj-$(CONFIG_SOUNDWIRE_INTEL) += soundwire-intel-init.o
|
|
|
|
#Qualcomm driver
|
|
soundwire-qcom-objs := qcom.o
|
|
obj-$(CONFIG_SOUNDWIRE_QCOM) += soundwire-qcom.o
|