From: Wesley Cheng <quic_wcheng@quicinc.com>
To: Randy Dunlap <rdunlap@infradead.org>,
<srinivas.kandagatla@linaro.org>, <mathias.nyman@intel.com>,
<perex@perex.cz>, <conor+dt@kernel.org>,
<dmitry.torokhov@gmail.com>, <corbet@lwn.net>,
<broonie@kernel.org>, <lgirdwood@gmail.com>, <tiwai@suse.com>,
<krzk+dt@kernel.org>, <pierre-louis.bossart@linux.dev>,
<Thinh.Nguyen@synopsys.com>, <robh@kernel.org>,
<gregkh@linuxfoundation.org>
Cc: <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-sound@vger.kernel.org>, <linux-input@vger.kernel.org>,
<linux-usb@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>,
<linux-doc@vger.kernel.org>
Subject: Re: [PATCH v33 30/31] ALSA: usb-audio: qcom: Add USB offload route kcontrol
Date: Thu, 16 Jan 2025 18:03:32 -0800 [thread overview]
Message-ID: <85b83e2a-bbb0-4dbb-aa8b-ca6e4e5806c2@quicinc.com> (raw)
In-Reply-To: <8dd379a7-68a7-4305-afe4-4a754224847a@quicinc.com>
Hi Randy,
On 1/16/2025 5:45 PM, Wesley Cheng wrote:
> Hi Randy,
>
> On 1/16/2025 4:08 PM, Randy Dunlap wrote:
>> On 1/16/25 3:28 PM, Wesley Cheng wrote:
>>> In order to allow userspace/applications know about USB offloading status,
>>> expose a sound kcontrol that fetches information about which sound card
>>> and PCM index the USB device is mapped to for supporting offloading. In
>>> the USB audio offloading framework, the ASoC BE DAI link is the entity
>>> responsible for registering to the SOC USB layer.
>>>
>>> It is expected for the USB SND offloading driver to add the kcontrol to the
>>> sound card associated with the USB audio device. An example output would
>>> look like:
>>>
>>> tinymix -D 1 get 'USB Offload Playback Route PCM#0'
>>> -1, -1 (range -1->255)
>>>
>>> This example signifies that there is no mapped ASoC path available for the
>>> USB SND device.
>>>
>>> tinymix -D 1 get 'USB Offload Playback Route PCM#0'
>>> 0, 0 (range -1->255)
>>>
>>> This example signifies that the offload path is available over ASoC sound
>>> card index#0 and PCM device#0.
>>>
>>> The USB offload kcontrol will be added in addition to the existing
>>> kcontrols identified by the USB SND mixer. The kcontrols used to modify
>>> the USB audio device specific parameters are still valid and expected to be
>>> used. These parameters are not mirrored to the ASoC subsystem.
>>>
>>> Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
>>> ---
>>> sound/usb/Kconfig | 10 ++
>>> sound/usb/qcom/Makefile | 4 +
>>> sound/usb/qcom/mixer_usb_offload.c | 158 +++++++++++++++++++++++++++++
>>> sound/usb/qcom/mixer_usb_offload.h | 17 ++++
>>> sound/usb/qcom/qc_audio_offload.c | 2 +
>>> 5 files changed, 191 insertions(+)
>>> create mode 100644 sound/usb/qcom/mixer_usb_offload.c
>>> create mode 100644 sound/usb/qcom/mixer_usb_offload.h
>>>
>>> diff --git a/sound/usb/qcom/mixer_usb_offload.c b/sound/usb/qcom/mixer_usb_offload.c
>>> new file mode 100644
>>> index 000000000000..2696eb145ef5
>>> --- /dev/null
>>> +++ b/sound/usb/qcom/mixer_usb_offload.c
>>> @@ -0,0 +1,158 @@
>>> +// SPDX-License-Identifier: GPL-2.0
>>> +/*
>>> + * Copyright (c) 2022-2025 Qualcomm Innovation Center, Inc. All rights reserved.
>>> + */
>>> +
>>> +#include <linux/usb.h>
>>> +
>> [snip]
>>
>>> +
>>> +/**
>>> + * snd_usb_offload_create_ctl() - Add USB offload bounded mixer
>>> + * @chip - USB SND chip device
>> Use ':' instead of '-'.
>
> So to clarify, the ':' separator should be used for both structs and function descriptions? Just want to clarify, so I can fix them in all the spots.
>
>
Sorry, ignore this, I figured out what needs to be changed. You want the argument definition to use ":"
Thanks
Wesley Cheng
next prev parent reply other threads:[~2025-01-17 2:04 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-16 23:27 [PATCH v33 00/31] Introduce QC USB SND audio offloading support Wesley Cheng
2025-01-16 23:27 ` [PATCH v33 01/31] xhci: sideband: add initial api to register a secondary interrupter entity Wesley Cheng
2025-01-16 23:27 ` [PATCH v33 02/31] usb: host: xhci-mem: Cleanup pending secondary event ring events Wesley Cheng
2025-01-16 23:27 ` [PATCH v33 03/31] usb: host: xhci-mem: Allow for interrupter clients to choose specific index Wesley Cheng
2025-01-16 23:27 ` [PATCH v33 04/31] usb: host: xhci-plat: Set XHCI max interrupters if property is present Wesley Cheng
2025-01-16 23:27 ` [PATCH v33 05/31] usb: host: xhci: Notify xHCI sideband on transfer ring free Wesley Cheng
2025-01-16 23:27 ` [PATCH v33 06/31] usb: dwc3: Specify maximum number of XHCI interrupters Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 07/31] ALSA: Add USB audio device jack type Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 08/31] ALSA: usb-audio: Export USB SND APIs for modules Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 09/31] ALSA: usb-audio: Check for support for requested audio format Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 10/31] ALSA: usb-audio: Save UAC sample size information Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 11/31] ALSA: usb-audio: Prevent starting of audio stream if in use Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 12/31] ALSA: usb-audio: Introduce USB SND platform op callbacks Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 13/31] ALSA: usb-audio: Allow for rediscovery of connected USB SND devices Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 14/31] ASoC: Add SoC USB APIs for adding an USB backend Wesley Cheng
2025-01-16 23:37 ` Randy Dunlap
2025-01-16 23:50 ` Randy Dunlap
2025-01-16 23:28 ` [PATCH v33 15/31] ASoC: usb: Add PCM format check API for " Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 16/31] ASoC: usb: Create SOC USB SND jack kcontrol Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 17/31] ASoC: usb: Fetch ASoC card and pcm device information Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 18/31] ASoC: usb: Rediscover USB SND devices on USB port add Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 19/31] ASoC: doc: Add documentation for SOC USB Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 20/31] ASoC: dt-bindings: qcom,q6dsp-lpass-ports: Add USB_RX port Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 21/31] ASoC: dt-bindings: Update example for enabling USB offload on SM8250 Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 22/31] ASoC: qcom: qdsp6: Introduce USB AFE port to q6dsp Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 23/31] ASoC: qcom: qdsp6: q6afe: Increase APR timeout Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 24/31] ASoC: qcom: qdsp6: Add USB backend ASoC driver for Q6 Wesley Cheng
2025-01-16 23:53 ` Randy Dunlap
2025-01-16 23:28 ` [PATCH v33 25/31] ASoC: qcom: qdsp6: Add headphone jack for offload connection status Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 26/31] ASoC: qcom: qdsp6: Fetch USB offload mapped card and PCM device Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 27/31] ALSA: usb-audio: qcom: Add USB QMI definitions Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 28/31] ALSA: usb-audio: qcom: Introduce QC USB SND offloading support Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 29/31] ALSA: usb-audio: qcom: Don't allow USB offload path if PCM device is in use Wesley Cheng
2025-01-16 23:28 ` [PATCH v33 30/31] ALSA: usb-audio: qcom: Add USB offload route kcontrol Wesley Cheng
2025-01-17 0:08 ` Randy Dunlap
2025-01-17 1:45 ` Wesley Cheng
2025-01-17 2:03 ` Wesley Cheng [this message]
2025-01-16 23:28 ` [PATCH v33 31/31] ALSA: usb-audio: qcom: Notify USB audio devices on USB offload probing Wesley Cheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85b83e2a-bbb0-4dbb-aa8b-ca6e4e5806c2@quicinc.com \
--to=quic_wcheng@quicinc.com \
--cc=Thinh.Nguyen@synopsys.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=perex@perex.cz \
--cc=pierre-louis.bossart@linux.dev \
--cc=rdunlap@infradead.org \
--cc=robh@kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox