Lines Matching +full:soundwire +full:- +full:v1

1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
6 * https://www.mipi.org/mipi-sdca-v1-0-download
15 #include <linux/soundwire/sdw.h>
47 return -EINVAL; in patch_sdca_function_type()
84 struct device *dev = &adev->dev; in find_sdca_function()
92 if (sdca_data->num_functions >= SDCA_MAX_FUNCTION_COUNT) { in find_sdca_function()
94 return -EINVAL; in find_sdca_function()
97 ret = acpi_get_local_u64_address(adev->handle, &addr); in find_sdca_function()
103 return -ENODEV; in find_sdca_function()
111 * but the SDCA/DisCo specs defined the notion of "DC value" - a constant in find_sdca_function()
117 "mipi-sdca-control-0x5-subproperties"); in find_sdca_function()
119 return -ENODEV; in find_sdca_function()
121 ret = fwnode_property_read_u32(control5, "mipi-sdca-control-dc-value", in find_sdca_function()
131 ret = patch_sdca_function_type(sdca_data->interface_revision, &function_type); in find_sdca_function()
134 sdca_data->interface_revision, function_type); in find_sdca_function()
141 return -EINVAL; in find_sdca_function()
148 func_index = sdca_data->num_functions; in find_sdca_function()
149 sdca_data->sdca_func[func_index].adr = addr; in find_sdca_function()
150 sdca_data->sdca_func[func_index].type = function_type; in find_sdca_function()
151 sdca_data->sdca_func[func_index].name = function_name; in find_sdca_function()
152 sdca_data->num_functions++; in find_sdca_function()
159 struct device *dev = &slave->dev; in sdca_lookup_functions()
160 struct acpi_device *adev = to_acpi_device_node(dev->fwnode); in sdca_lookup_functions()
166 acpi_dev_for_each_child(adev, find_sdca_function, &slave->sdca_data); in sdca_lookup_functions()