--- Begin Message ---
- To: <quic_wcheng@xxxxxxxxxxx>, <srinivas.kandagatla@xxxxxxxxxx>, <mathias.nyman@xxxxxxxxx>, <perex@xxxxxxxx>, <broonie@xxxxxxxxxx>, <lgirdwood@xxxxxxxxx>, <krzysztof.kozlowski+dt@xxxxxxxxxx>, <agross@xxxxxxxxxx>, <Thinh.Nguyen@xxxxxxxxxxxx>, <bgoswami@xxxxxxxxxxx>, <andersson@xxxxxxxxxx>, <robh+dt@xxxxxxxxxx>, <gregkh@xxxxxxxxxxxxxxxxxxx>, <tiwai@xxxxxxxx>
- Subject: Re: [PATCH v3 08/28] ASoC: qcom: Add USB backend ASoC driver for Q6
- From: <Claudiu.Beznea@xxxxxxxxxxxxx>
- Date: Fri, 10 Mar 2023 12:22:52 +0000
- Cc: linux-kernel@xxxxxxxxxxxxxxx, linux-arm-msm@xxxxxxxxxxxxxxx, alsa-devel@xxxxxxxxxxxxxxxx, devicetree@xxxxxxxxxxxxxxx, linux-usb@xxxxxxxxxxxxxxx, quic_jackp@xxxxxxxxxxx, quic_plai@xxxxxxxxxxx
- In-reply-to: <20230308235751.495-9-quic_wcheng@quicinc.com>
- References: <20230308235751.495-1-quic_wcheng@quicinc.com> <20230308235751.495-9-quic_wcheng@quicinc.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1
On 09.03.2023 01:57, Wesley Cheng wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> 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.
>
> Signed-off-by: Wesley Cheng <quic_wcheng@xxxxxxxxxxx>
> ---
> include/sound/q6usboffload.h | 20 ++++
> sound/soc/qcom/Kconfig | 4 +
> sound/soc/qcom/qdsp6/Makefile | 1 +
> sound/soc/qcom/qdsp6/q6usb.c | 208 ++++++++++++++++++++++++++++++++++
> 4 files changed, 233 insertions(+)
> create mode 100644 include/sound/q6usboffload.h
> create mode 100644 sound/soc/qcom/qdsp6/q6usb.c
>
[ ... ]
> +static int q6usb_audio_ports_of_xlate_dai_name(struct snd_soc_component *component,
> + const struct of_phandle_args *args,
> + const char **dai_name)
> +{
> + int id = args->args[0];
> + int ret = -EINVAL;
> + int i;
> +
> + for (i = 0; i < ARRAY_SIZE(q6usb_be_dais); i++) {
One extra space here ^
[ ... ]
--- End Message ---