Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp84273lqd; Tue, 23 Apr 2024 15:49:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyUYbD10ishgrJl2Slg5sIJcn8iXAiVsKqmRjjSj3jFoA6k9BQOCtYuFAQR1ON5NV1DznUFCXdC9smsH7+FbK/j8SeH2ECUosZDe+MXg== X-Google-Smtp-Source: AGHT+IEfuHEMx+S2tM81njDXa/WfIHNGHr4B4Fi1MBv0620I1Zsi+1jO07nFpMLjaQsaHLWnCY9b X-Received: by 2002:a05:6e02:144e:b0:36b:3a3b:b2c7 with SMTP id p14-20020a056e02144e00b0036b3a3bb2c7mr1132342ilo.11.1713912572939; Tue, 23 Apr 2024 15:49:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713912572; cv=pass; d=google.com; s=arc-20160816; b=Ma7iSPzu1ln41kMnm1OvUvmkboETmPwM5TBNiOLGErU9URlG4b8cJmWVEfQvwHwWdL h/mQC3DCsuCm4JJrZswmALdv7n66WWWP3xHcmxbV/4DtbmGC2aPGv2Oj3WAFgX+BH0Ub UdGnb3L+BhVoGcqZy8emnMbGsHmNUEFnQqLPKWgMo+AMOWsm1rbgBOYwuqPGBiiWJvvQ Jz7rGNEw1eABXzRj/VJo9Rlu380cwgaP4BjHmCaNIiZ/ZeHSkGEokMRqBGNYHix4q0gP A2GFbbHnCdXlSJpGnIDLWAqQyCEzYoptbccto7b2Jv8o+NnvpPow+5FUJ+7es3MnxC4V dCHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=DDXZUb9B2qp1xMWb0EroroBnTTf58sdaiaj+26UKu5I=; fh=NrRXN++8kobquhtHbRCrAHRJYqOmtvZ1WO6o8oygckU=; b=cvw3GERgbGicR9cgQAc5sU38301ysqmVw6J6iced5nzl+IxxlSEVdTzrDY/+ae0EMT kz39muHasUoUPvndQscHRrayUvd12jvmUbuITqr7LH5M5eTKD2HUdwJ1++POsQ+C6L82 zaZxngi2eh1VVLsKhdg3hKDb0wcZV9fNleXDCh7SthxGfJNgBaHYodc6RHatiYdkwkZI NjSrVKtf7nUNb8Nd+otl3Gi9iXEnOLXLytK9L/yAQRolZuWMUaEf4uHA4GI3nGI81oaA J0ZNXR0R/Urn7yGWmjgrEofLkSmsJNK51ZwRtWG4qnSoWVRuKnn5ZqfxwvRCI55Rv+Kf 8+zg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cBW+NGtN; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-155978-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l4-20020a635704000000b005e84291790dsi10464779pgb.581.2024.04.23.15.49.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 15:49:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155978-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cBW+NGtN; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-155978-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7CF0F28250F for ; Tue, 23 Apr 2024 22:49:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDA993FB94; Tue, 23 Apr 2024 22:49:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="cBW+NGtN" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AF532C1AE; Tue, 23 Apr 2024 22:49:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713912553; cv=none; b=b7OokKEkPmnaxM8srujaUYlOBPx3lLkmNeHMHTYcAW6Jq+N51PhyMgVXH7MxIOnetMMCpZWkd17Yly0IgpdyWZ/PmzUAvHhYYnL3G7FpDZV+5GFeTXnZ1e/GT0OnSti2NAlVMdMAbNUk3iCRi/0A/VdRpNjLn9NeP+aVJKR3X0Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713912553; c=relaxed/simple; bh=TRuX/tTAJzD7cSBZjxwlCUN8qWsw1eNS9r8xYN+qJVw=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=baLxLM0L8VDXWH/WXp4y2hLtmg7dzh8TkDdro9ynLsYSzNxopFtYDjcs2csxUpEuVZhM1O7LZ7P44FPHKq9eQVIxUGqxqpN2OPnnZOQKQfpVa3VQMuG24SApKxHPnKUrG5Hrpeujc147NUx1CqVTeLx2TTf+Oj/piJDYSFPJCHk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=cBW+NGtN; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43NM5IQN015367; Tue, 23 Apr 2024 22:48:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=DDXZUb9B2qp1xMWb0EroroBnTTf58sdaiaj+26UKu5I=; b=cB W+NGtNYFM1GqoOmyCowtmgRlTJaC2dalqNTOCyIa1B4tBeynyAvca5C5fvTmmvcj jDzKC/l6wzG/EaGZeQsMwjMqjAbaK9a0N4MG4gnHxZDdi2eiebpl/LPBKUtl1PcM 9g5x2oV6G1gZNpF8XFXy6R2n9vLcAClfUSksV36DkTDoWKgb7esBgqdxbKNqLSUP HTuZby/22SS/haVSE4yq6RwshxKOOxWekycPAEqRmAgmFJiSI3Z0EH7cW3RF8OKS vPGA3ZU5xoPc2Zc6ueVlzG8ZQcTFaWMYeNVcu3jR2SXFxsaEn+8AAMJizpXhg1xB 5hmtyvO22MVROv/Cgd9Q== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xpjp8gqp4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Apr 2024 22:48:45 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43NMmit4014980 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Apr 2024 22:48:44 GMT Received: from [10.110.64.215] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 23 Apr 2024 15:48:43 -0700 Message-ID: <32ea2ffa-5ee4-5344-826d-3572085af705@quicinc.com> Date: Tue, 23 Apr 2024 15:48:43 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v19 41/41] ASoC: doc: Add documentation for SOC USB Content-Language: en-US To: Bagas Sanjaya , , , , , , , , , , , , , , , CC: , , , , , , References: <20240422224906.15868-1-quic_wcheng@quicinc.com> <20240422224906.15868-42-quic_wcheng@quicinc.com> From: Wesley Cheng In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: W15zYV3-qeG-OQ9c9nb1NdmLHuOGZuDd X-Proofpoint-ORIG-GUID: W15zYV3-qeG-OQ9c9nb1NdmLHuOGZuDd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-23_18,2024-04-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 mlxlogscore=999 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1011 bulkscore=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404230061 Hi Bagas, On 4/22/2024 6:43 PM, Bagas Sanjaya wrote: > On Mon, Apr 22, 2024 at 03:49:06PM -0700, Wesley Cheng wrote: >> +.. code-block:: rst >> + >> +int snd_soc_usb_setup_offload_jack(struct snd_soc_component *component, >> + struct snd_soc_jack *jack) >> +.. > > You forget to indent snd_soc_usb_setup_offload_jack() prototype: > > ---- >8 ---- > diff --git a/Documentation/sound/soc/usb.rst b/Documentation/sound/soc/usb.rst > index 3f7c3ef6a0c03c..0b6da0be9f317f 100644 > --- a/Documentation/sound/soc/usb.rst > +++ b/Documentation/sound/soc/usb.rst > @@ -218,8 +218,8 @@ state. > > .. code-block:: rst > > -int snd_soc_usb_setup_offload_jack(struct snd_soc_component *component, > - struct snd_soc_jack *jack) > + int snd_soc_usb_setup_offload_jack(struct snd_soc_component *component, > + struct snd_soc_jack *jack) > .. > > - ``component``: ASoC component to add the jack > >> +USB Offload Playback Route Select Kcontrol >> +----------------------------------- > > USB offload playback heading underlines are not long enough to cover heading > titles, so I have to extend them: > > ---- >8 ---- > diff --git a/Documentation/sound/soc/usb.rst b/Documentation/sound/soc/usb.rst > index 0b6da0be9f317f..5e0e9fad131b24 100644 > --- a/Documentation/sound/soc/usb.rst > +++ b/Documentation/sound/soc/usb.rst > @@ -482,7 +482,7 @@ into the physical USB port and enumerated. The kcontrols are defined as: > kcontrol exposed by the platform card. > > USB Offload Playback Route Select Kcontrol > ------------------------------------ > +------------------------------------------ > In order to allow for vendor specific implementations on audio offloading device > selection, the SOC USB layer exposes the following: > > @@ -545,7 +545,7 @@ along to the external DSP. > > > USB Offload Playback Route Status > -------------------- > +--------------------------------- > SOC USB exposes APIs for keeping track of the offloading state, and expects this > to be maintained by the BE DAI link that created/added the SOC USB device. > > @@ -573,7 +573,7 @@ When executing the kcontrol get callback, it will loop across the active_list ar > and report to the application for active USB sound card and USB PCM device indexes. > > USB Offload Playback Capable Card > -------------------------------- > +--------------------------------- > USB sound also creates a kcontrol for applications to help determine which platform > sound card USB offloading is linked to. This will allow applications to further > query the platform sound card for specific information about the current USB offload > > Thanks. > Thanks for the review. Will fix these all in the next revision. Thanks Wesley Cheng