linux/include/sound/q6usboffload.h
Wesley Cheng 72b0b8b299 ASoC: qcom: qdsp6: Add USB backend ASoC driver for Q6
Create a USB BE component that will register a new USB port to the ASoC USB
framework.  This will handle determination on if the requested audio
profile is supported by the USB device currently selected.

Check for if the PCM format is supported during the hw_params callback.  If
the profile is not supported then the userspace ALSA entity will receive an
error, and can take further action.

Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250409194804.3773260-25-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-11 13:02:32 +02:00

20 lines
479 B
C

/* SPDX-License-Identifier: GPL-2.0
*
* sound/q6usboffload.h -- QDSP6 USB offload
*
* Copyright (c) 2022-2025 Qualcomm Innovation Center, Inc. All rights reserved.
*/
/**
* struct q6usb_offload - USB backend DAI link offload parameters
* @dev: dev handle to usb be
* @domain: allocated iommu domain
* @intr_num: usb interrupter number
* @sid: streamID for iommu
**/
struct q6usb_offload {
struct device *dev;
struct iommu_domain *domain;
u16 intr_num;
u8 sid;
};