Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp4057224rwa; Tue, 23 Aug 2022 15:28:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR49GT8jGJsmBS9FPg0n/n391xi5YO0JKnbSYf76x12B4RRglO6a8Gvct1D2qJUxPo6BFM2g X-Received: by 2002:a17:90a:9401:b0:1fa:af9c:20db with SMTP id r1-20020a17090a940100b001faaf9c20dbmr5256440pjo.190.1661293702749; Tue, 23 Aug 2022 15:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661293702; cv=none; d=google.com; s=arc-20160816; b=M/P4X9NxjZ2NxZOGZzzKhM5rPGdVK1lv60GWt9zfteoLAuOMsajI1U9tSn1to5VKQV HJ/djMvEOvq+cOkm8++WQSI2rhNo8wH9z80VvNH90QtuXNfLgv4b5W2bNM0IsnT4O0xX DyYB4VL1QD4HCce4GyHsZQ/HE5hlFyd1cZK+nKGX1xnLsendbPcrFOOLnDsKIHduxH93 Nu2Gj+QFpOtEh5hVtceGT/wFBaBoPeeMmmRoBAk9RcULKm2KnRTtz79YS+uVsCdxQ1fB jD2flwFzmfJQ60M72kuLFsI+9hVloVUrCoqUjPPI+fyn3JsonqsfORqUQzAW49fuf1in Li3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:subject:cc:to:from:date :user-agent:message-id; bh=qhWADZMK3Ft7jjJY4Ugtrjz9yLzMVVcWNrtVqpuY3Ek=; b=G/1ZebHCIbpi7THdN2gFeT+0HNJ29YUJB5CEdcDbv/Xqzg/wAfHJIvPkWemEA3jIPu vJu4LHqlk44ZaqwNa+KMozOM/IWgU+NjkYFyTz5nVB69r58R7BIiFs8kxzKNzkzRgh4a wxOTse55PASWq64NcNNxjFxA45MDP4JvTMOGSoiVmjCkwRQqq4oHm8gxAFieh715YG0r jsktboKXxD9r2l9fOlSu9vRHN+ESVFuZJJravNc+U74JiTy0r+q4waVshYQdi2O+5i8D mQyPWn5fgycY/DNAgIzZxocjMS9d9uSWppAuY2JHuADCPGjbWexqyzxusN04pSkLwnw1 KZ7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n12-20020a62e50c000000b0052f20d6e3dcsi12267544pff.196.2022.08.23.15.28.08; Tue, 23 Aug 2022 15:28:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232991AbiHWWZT (ORCPT + 99 others); Tue, 23 Aug 2022 18:25:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232965AbiHWWZS (ORCPT ); Tue, 23 Aug 2022 18:25:18 -0400 Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC73C6B8E2 for ; Tue, 23 Aug 2022 15:25:17 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id B863820134; Wed, 24 Aug 2022 00:25:15 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5Q1gtM_Rm0JG; Wed, 24 Aug 2022 00:25:15 +0200 (CEST) Received: from begin.home (lfbn-bor-1-376-208.w109-215.abo.wanadoo.fr [109.215.91.208]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id A63912011A; Wed, 24 Aug 2022 00:25:15 +0200 (CEST) Received: from samy by begin.home with local (Exim 4.96) (envelope-from ) id 1oQcKh-00GY2a-17; Wed, 24 Aug 2022 00:25:15 +0200 Message-ID: <20220823222514.929670068@ens-lyon.org> User-Agent: quilt/0.66 Date: Wed, 24 Aug 2022 00:25:02 +0200 From: Samuel Thibault To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, speakup@linux-speakup.org, Samuel Thibault Subject: [patch 1/2] speakup-dummy: Add support for PUNCT variable References: <20220823222501.483597563@ens-lyon.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows to debug the update of the punctuation level. Signed-off-by: Samuel Thibault Index: linux/drivers/accessibility/speakup/speakup_dummy.c =================================================================== --- linux.orig/drivers/accessibility/speakup/speakup_dummy.c +++ linux/drivers/accessibility/speakup/speakup_dummy.c @@ -27,6 +27,7 @@ static struct var_t vars[] = { { INFLECTION, .u.n = {"INFLECTION %d\n", 8, 0, 16, 0, 0, NULL } }, { VOL, .u.n = {"VOL %d\n", 8, 0, 16, 0, 0, NULL } }, { TONE, .u.n = {"TONE %d\n", 8, 0, 16, 0, 0, NULL } }, + { PUNCT, .u.n = {"PUNCT %d\n", 0, 0, 3, 0, 0, NULL } }, { DIRECT, .u.n = {NULL, 0, 0, 1, 0, 0, NULL } }, V_LAST_VAR }; @@ -42,6 +43,8 @@ static struct kobj_attribute pitch_attri __ATTR(pitch, 0644, spk_var_show, spk_var_store); static struct kobj_attribute inflection_attribute = __ATTR(inflection, 0644, spk_var_show, spk_var_store); +static struct kobj_attribute punct_attribute = + __ATTR(punct, 0644, spk_var_show, spk_var_store); static struct kobj_attribute rate_attribute = __ATTR(rate, 0644, spk_var_show, spk_var_store); static struct kobj_attribute tone_attribute = @@ -69,6 +72,7 @@ static struct attribute *synth_attrs[] = &caps_stop_attribute.attr, &pitch_attribute.attr, &inflection_attribute.attr, + &punct_attribute.attr, &rate_attribute.attr, &tone_attribute.attr, &vol_attribute.attr,