From patchwork Mon Jul 10 07:47:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Timo Wischer X-Patchwork-Id: 9832475 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 75DA660363 for ; Mon, 10 Jul 2017 07:47:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69BA120410 for ; Mon, 10 Jul 2017 07:47:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E6BF283F9; Mon, 10 Jul 2017 07:47:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0774920410 for ; Mon, 10 Jul 2017 07:47:54 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 21123266D06; Mon, 10 Jul 2017 09:47:52 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 02FA8266D07; Mon, 10 Jul 2017 09:47:51 +0200 (CEST) Received: from smtp1.de.adit-jv.com (smtp1.de.adit-jv.com [62.225.105.245]) by alsa0.perex.cz (Postfix) with ESMTP id 340F626648D for ; Mon, 10 Jul 2017 09:47:46 +0200 (CEST) Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id 0FA343C017F for ; Mon, 10 Jul 2017 09:47:45 +0200 (CEST) Received: from smtp1.de.adit-jv.com ([127.0.0.1]) by localhost (smtp1.de.adit-jv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zwUmFhvK1fWL for ; Mon, 10 Jul 2017 09:47:44 +0200 (CEST) Received: from HI2EXCH01.adit-jv.com (hi2exch01.adit-jv.com [10.72.92.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id 710743C001F for ; Mon, 10 Jul 2017 09:47:44 +0200 (CEST) Received: from HI2EXCH01.adit-jv.com ([fe80::69bf:8148:2f13:f289]) by HI2EXCH01.adit-jv.com ([fe80::69bf:8148:2f13:f289%12]) with mapi id 14.03.0352.000; Mon, 10 Jul 2017 09:47:44 +0200 From: "Wischer, Timo (ADITG/ESB)" To: "alsa-devel@alsa-project.org" Thread-Topic: arecord cannot interrupt streaming via CTRL-C when using voc_pcm_wirte() Thread-Index: AdL5UDHO7MRv2ibPQTCOC19+dkn5XA== Date: Mon, 10 Jul 2017 07:47:43 +0000 Message-ID: Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.72.93.172] MIME-Version: 1.0 Subject: [alsa-devel] arecord cannot interrupt streaming via CTRL-C when using voc_pcm_wirte() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, please merge following patch: From fb58aa47b8715924667a0a4383ce9a3615378413 Mon Sep 17 00:00:00 2001 From: Srikanth Krishnakar Date: Mon, 19 Dec 2016 14:04:39 +0530 Subject: alsa-utils: interrupt streaming via signal in voc_pcm_write arecord (alsa-utils v1.1.2) cannot interrupt streaming via CTRL-C. Fixed the issue by properly handling 'in_aborting' flag in appropriate functions. Signed-off-by: Anant Agrawal Signed-off-by: Mikhail Durnev Signed-off-by: Srikanth Krishnakar Signed-off-by: Timo Wischer --- aplay/aplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 Best regards Timo Wischer Advanced Driver Information Technology GmbH Software Group I (ADITG/ESB) Robert-Bosch-Str. 200 31139 Hildesheim Germany Tel. +49 5121 49 6938 Fax +49 5121 49 6999 twischer@de.adit-jv.com ADIT is a joint venture company of Robert Bosch GmbH/Robert Bosch Car Multimedia GmbH and DENSO Corporation Sitz: Hildesheim, Registergericht: Amtsgericht Hildesheim HRB 3438 Geschäftsführung: Wilhelm Grabow, Ken Yaguchi From fb58aa47b8715924667a0a4383ce9a3615378413 Mon Sep 17 00:00:00 2001 From: Srikanth Krishnakar Date: Mon, 19 Dec 2016 14:04:39 +0530 Subject: alsa-utils: interrupt streaming via signal in voc_pcm_write aplay/arecord (alsa-utils v1.1.2) cannot interrupt streaming via CTRL-C. Fixed the issue by properly handling 'in_aborting' flag in appropriate functions. Signed-off-by: Anant Agrawal Signed-off-by: Mikhail Durnev Signed-off-by: Srikanth Krishnakar Signed-off-by: Timo Wischer --- aplay/aplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aplay/aplay.c b/aplay/aplay.c index 2da7dda..cdaa1a8 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -2161,7 +2161,7 @@ static ssize_t voc_pcm_write(u_char *data, size_t count) ssize_t result = count, r; size_t size; - while (count > 0) { + while (count > 0 && !in_aborting) { size = count; if (size > chunk_bytes - buffer_pos) size = chunk_bytes - buffer_pos; -- 2.7.4