Files
linux/sound/soc/sdca/sdca_function_device.h
T
Pierre-Louis Bossart 4496d1c65b ASoC: SDCA: add function devices
Use the auxiliary bus to register/unregister subdevices for each
function. Each function will be handled with a separate driver,
matched using a name.

If a vendor wants to override a specific function driver, they could
use a custom name to match with a custom function driver.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
Tested-by: Bard Liao <[email protected]>
Reviewed-by: Maciej Strozek <[email protected]>
Reviewed-by: Peter Ujfalusi <[email protected]>
Tested-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
Link: https://patch.msgid.link/[email protected]
Reviewed-by: Vinod Koul <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
2025-11-20 17:22:59 +00:00

16 lines
374 B
C

/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/* Copyright(c) 2024 Intel Corporation. */
#ifndef __SDCA_FUNCTION_DEVICE_H
#define __SDCA_FUNCTION_DEVICE_H
struct sdca_dev {
struct auxiliary_device auxdev;
struct sdca_function_data function;
};
#define auxiliary_dev_to_sdca_dev(auxiliary_dev) \
container_of(auxiliary_dev, struct sdca_dev, auxdev)
#endif