From patchwork Fri Nov 10 16:43:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 742849 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp303415wrw; Fri, 10 Nov 2023 08:43:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEScaMX+K9zX/TNGj6oITxhh/ZLA3rZrqULNje+uVGqzzvpdDZ6j/9YMd2cJCHZLmyJiNaj X-Received: by 2002:a05:622a:13d3:b0:403:f389:5793 with SMTP id p19-20020a05622a13d300b00403f3895793mr4513285qtk.32.1699634624626; Fri, 10 Nov 2023 08:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699634624; cv=none; d=google.com; s=arc-20160816; b=UbOvQjyEVUvBXoyRCrtzRKnslrRgtdbZdJj98YEEpbic/8BZEceyp1NO73qNOJBeje Nj7a3JXbI0+cQ7B1l1kITcOQ4Rxd9ySFOpkibUoOiddDMLCnPvCYkscHu4Rv941aIH4t Zpd6PywPKg8sqlUVO6wWLFhQsE4httwjFSmO1YvKtJUa34pOGWg1n4Dc/aS+2fPdeX+e FJYreA3gE/Rg0QdJc5PVVbpMEKTB6DPuob6BBGzIdW0RZjwykfvSW8PsHFg4ifWT/RkF npAuAqF2tWRmtml7OID0eiZZF+tuWHy96oZRqzpAG9BwYCD7HHPM8A4d5adSPf3wk2JZ tdtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=6Z/d/PlRIYV975I1CTJVwYo3Y8uvT4BaRAHDGx9VFCo=; fh=jVXVV8DlrXCXC8ThG5qoZLaE3TBxEQpbg5eJ3/p/8PE=; b=SSpwgFQgKsE5ayXUViYQHu6D0LY7rXjZGJivu6GXgycvwSuS9+yyRYAtUhsUPUZwS3 /cmUpSRM4PixRnYVOUmVpHA86PrNENVyqQDpLa3XF+qV9Nzekly9aT19jt0d6hrTBwy8 nbAuq/KadGHY6iylHPoEsgbwref2hQEHZSAQCeJpMWAiY5ynjHaZetoYUJsqN2oumz9h dfNW2lCZeix5njEXbcChpKE2vuYqJedZnBd0AnFc6Gfh97WstPCWNVDnY6typ7SHX7Jo ifq3Co/cZz96UpqisnujMnTrqYh490eZnTrU7EzWZHRKL+zGeTXnuzSjv0dYo1aANuUw 8p3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k9umReDI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f17-20020ac85d11000000b0041cb5fb218esi5186087qtx.378.2023.11.10.08.43.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Nov 2023 08:43:44 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k9umReDI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1UbT-00052S-8D; Fri, 10 Nov 2023 11:43:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1UbM-0004yS-6C for qemu-devel@nongnu.org; Fri, 10 Nov 2023 11:43:25 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r1UbK-0001wn-GT for qemu-devel@nongnu.org; Fri, 10 Nov 2023 11:43:23 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4083cd3917eso16999025e9.3 for ; Fri, 10 Nov 2023 08:43:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699634600; x=1700239400; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6Z/d/PlRIYV975I1CTJVwYo3Y8uvT4BaRAHDGx9VFCo=; b=k9umReDId+IMOUq6lNUoaLr143xY29H7d/WYEp8rOh5fjdAyJCliRiZFQJl+cTvvHj Z37yup8kNeW6JYYKVP/bV2wLChJ59mNsfPwq216VRDkC56krSzuWD3Uz5xEZAHhe59sx YGt3r55j2P2sZp//M6PVAH9U0Dnp1WL71ehrRokSkS8sqCqMKWv2MGRbVg2varThsrPk e346Mma6GDGUdDeeuIkLSrvIWTmKGdMWtvIIuqKnVqqBT7ZaFMIu6yJfQSjE5LNo7j5e crmBbsz4/oJ3kVhfKaD/v0UJt3kUHNczmVI1TRPeaGMMuaM44uI6vtHUVwl1pgHdyRcb 1iig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699634600; x=1700239400; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6Z/d/PlRIYV975I1CTJVwYo3Y8uvT4BaRAHDGx9VFCo=; b=LHabMDJVAWbDCNyQuMi00AGeYeGlqahXhn1WcNXDaggsFrFFd678y9rY577hPk5yuG mlUrARqR9x9hk+6lr1nhFYmR3hNT6Iij8u0S2tJqQ4v8v6qiBeZUfg+T1q7UzwTSaALG MmGZM6XuEMin91ndL5vnUMK36B/++wG794t4ogMyXP2M4OQiSBvEfoihr3t8rzPzMvwY fJgYpj3jMhTOcYICSwX0OW/JGfzk+fGOPyOGoJd5XeaxpOsLtASStmAaYhLfCb82+eZb 0WcXktrLKETzTnNFPYGM3X38LWm/FCI+ECUuT99Wngb64gRwCt+0OaZYFk7Hj62xzcdl KbtA== X-Gm-Message-State: AOJu0YxJr/0g+CrgbpS5kRj79k342ryx2LMIinZYknkAn/t4A9QvyMHq aHAj6GmzmQVHu8Lh5TFoe3qnqaH/rxzngAomcDE= X-Received: by 2002:a5d:6c66:0:b0:32d:8819:4620 with SMTP id r6-20020a5d6c66000000b0032d88194620mr6701667wrz.14.1699634599977; Fri, 10 Nov 2023 08:43:19 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id s8-20020adfea88000000b003196b1bb528sm2247958wrm.64.2023.11.10.08.43.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Nov 2023 08:43:19 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Gerd Hoffmann , Thomas Huth , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= Subject: [PATCH] hw/audio/es1370: Clean up comment Date: Fri, 10 Nov 2023 16:43:18 +0000 Message-Id: <20231110164318.2197569-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Replace a sweary comment with one that's a bit more helpful to future readers of the code. Signed-off-by: Peter Maydell Reviewed-by: Volker RĂ¼melin --- hw/audio/es1370.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/audio/es1370.c b/hw/audio/es1370.c index 91c47330ad3..fad55412119 100644 --- a/hw/audio/es1370.c +++ b/hw/audio/es1370.c @@ -670,8 +670,13 @@ static void es1370_transfer_audio (ES1370State *s, struct chan *d, int loop_sel, cnt += (transferred + d->leftover) >> 2; if (s->sctl & loop_sel) { - /* Bah, how stupid is that having a 0 represent true value? - i just spent few hours on this shit */ + /* + * loop_sel tells us which bit in the SCTL register to look at + * (either P1_LOOP_SEL, P2_LOOP_SEL or R1_LOOP_SEL). The sense + * of these bits is 0 for loop mode (set interrupt and keep recording + * when the sample count reaches zero) or 1 for stop mode (set + * interrupt and stop recording). + */ AUD_log ("es1370: warning", "non looping mode\n"); } else { d->frame_cnt = size;