[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <072960e7-c8db-b25c-46f8-019534d325d4@quicinc.com>
Date: Thu, 9 May 2024 14:49:20 -0700
From: Wesley Cheng <quic_wcheng@...cinc.com>
To: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>,
<srinivas.kandagatla@...aro.org>, <mathias.nyman@...el.com>,
<perex@...ex.cz>, <conor+dt@...nel.org>, <corbet@....net>,
<lgirdwood@...il.com>, <andersson@...nel.org>, <krzk+dt@...nel.org>,
<gregkh@...uxfoundation.org>, <Thinh.Nguyen@...opsys.com>,
<broonie@...nel.org>, <bgoswami@...cinc.com>, <tiwai@...e.com>,
<bagasdotme@...il.com>, <robh@...nel.org>, <konrad.dybcio@...aro.org>
CC: <linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-sound@...r.kernel.org>, <linux-usb@...r.kernel.org>,
<linux-arm-msm@...r.kernel.org>, <linux-doc@...r.kernel.org>,
<alsa-devel@...a-project.org>
Subject: Re: [PATCH v21 26/39] ASoC: qcom: qdsp6: Add support to track
available USB PCM devices
Hi Pierre,
On 5/9/2024 6:02 AM, Pierre-Louis Bossart wrote:
>
>
> On 5/8/24 18:57, Wesley Cheng wrote:
>> Hi Pierre,
>>
>> On 5/7/2024 2:23 PM, Pierre-Louis Bossart wrote:
>>>
>>>> @@ -113,6 +120,12 @@ static int q6usb_alsa_connection_cb(struct
>>>> snd_soc_usb *usb,
>>>> if (connected) {
>>>> /* We only track the latest USB headset plugged in */
>>>> data->active_usb_chip_idx = sdev->card_idx;
>>>> +
>>>> + set_bit(sdev->card_idx, &data->available_card_slot);
>>>> + data->status[sdev->card_idx].sdev = sdev;
>>>
>>> Not following the 'only track the latest USB headset plugged in', I
>>> don't see anything that discard the previously latest headset...
>>>
>>> If you plug headset1, then headset2, how is headset1 marked as not
>>> available for USB offload?
>>>
>>
>> It won't mark headset1 as not available for offload, because offload
>> could happen on either depending on what is selected (from the kcontrol
>> as well).
>
> Right, so the wording 'only track the latest USB headset plugged in' is
> incorrect or obsolete, isn't it?
Sure, I can reword it. Will specify that it
"selects the latest USB headset plugged in for offloading"
Thanks
Wesley Cheng
Powered by blists - more mailing lists