From patchwork Tue Nov 5 14:32:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabbasov, Andrew" X-Patchwork-Id: 11227975 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1C4721747 for ; Tue, 5 Nov 2019 14:35:55 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 97A7921928 for ; Tue, 5 Nov 2019 14:35:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="Ks1wxmn9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 97A7921928 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=mentor.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 294D816E6; Tue, 5 Nov 2019 15:35:02 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 294D816E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1572964552; bh=kFFn8ISQ0kW31uPYPk751hKhq7lg8Upm/GPI9ZRh71o=; h=From:To:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Ks1wxmn9fL76c7bljZwfbtRKl9xw6KzikzdBn9A0ZB1CQsQkaZbmpNfm3MZQpQyWQ ApTIzL+UL2c9eWEHu3acBD1sftVUPXf5mEpu35fQBRJkuy4+XmDsPMs4tccNsF9Ilm STf9XxukqhMYRxiYTmw0SeP5U8Nav2maPQ4z5/Ks= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BFC87F8053B; Tue, 5 Nov 2019 15:34:07 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id A7DA2F805AE; Tue, 5 Nov 2019 15:34:06 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_HELO_NONE,SPF_PASS, SURBL_BLOCKED,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EF765F8015B for ; Tue, 5 Nov 2019 15:34:02 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EF765F8015B IronPort-SDR: S4Hn+J5hRlF3r5Zh7D5HQ7wFEifFQZGlGN5gQOqIi6uENL1kvuieFH/6Hf65rHey+tbgkROr0h FqBgjJZezYeQaWimN1nAgXQHsmahKNwjOSz18vufJaYKbDW7W8QFIQzx09ap8om1Q3Mwz2iT3o zq20yES3QEctWAb69Qs7dAMRnuym8965TLc9mzBW+EJelbSz0KOQOqugx0ce8UTwUZKxnyj92v N/X5tRP8V1KXDzWcvxU3wL+0XVqg5Tmw2L23RTqSyT4FD/+sbmxACnNKZlXUDiaKbXOX5zDsbl bz4= X-IronPort-AV: E=Sophos;i="5.68,271,1569312000"; d="scan'208";a="44730617" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 05 Nov 2019 06:33:58 -0800 IronPort-SDR: qjebKaLnrsPkMpPO+bqlb4ZUFikKKsuV6qLx0X33fJ9CyK6rnqiKzlpyIn4NfiQsDDJ1ZRjJU1 yoTEvNcyJq7KB2W16812TynYTQ5p4KVtd2zTeJqDtnET7JITaLxqqRMf6hlCYRJXAplcE+X1nx 1A2F6vGsvo566KlHPTXupHTditAVIXn/uXbl4J4F0hlHrQTm26gR+NKMYZbseSXKrPeqoPxZdP 6TV5zSKr1mjCxXEYZtmPKjbgdrly7aJLtW+r+zIB5pHtY/ZZp5jb7NymgvBbxvolbjsCIAZUW1 PQc= From: Andrew Gabbasov To: , , Jaroslav Kysela , Takashi Iwai , Timo Wischer , Andrew Gabbasov Date: Tue, 5 Nov 2019 08:32:11 -0600 Message-ID: <20191105143218.5948-2-andrew_gabbasov@mentor.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191105143218.5948-1-andrew_gabbasov@mentor.com> References: <20191105143218.5948-1-andrew_gabbasov@mentor.com> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-06.mgc.mentorg.com (139.181.222.6) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) Subject: [alsa-devel] [PATCH v2 1/8] ALSA: aloop: Describe units of variables X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From: Timo Wischer Describe the unit of the variables used to calculate the hw pointer depending on jiffies ticks. Signed-off-by: Timo Wischer Signed-off-by: Andrew Gabbasov --- sound/drivers/aloop.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 9ccdad89c288..1f5982e09025 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c @@ -102,8 +102,10 @@ struct loopback_pcm { /* flags */ unsigned int period_update_pending :1; /* timer stuff */ - unsigned int irq_pos; /* fractional IRQ position */ - unsigned int period_size_frac; + unsigned int irq_pos; /* fractional IRQ position in jiffies + * ticks + */ + unsigned int period_size_frac; /* period size in jiffies ticks */ unsigned int last_drift; unsigned long last_jiffies; struct timer_list timer;