From owner-svn-ports-all@freebsd.org Mon Sep 3 18:21:28 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F5A2FF0F59; Mon, 3 Sep 2018 18:21:28 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D40EC8F4AF; Mon, 3 Sep 2018 18:21:27 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CEAA03CB8; Mon, 3 Sep 2018 18:21:27 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w83ILRGT001676; Mon, 3 Sep 2018 18:21:27 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w83ILRUo001675; Mon, 3 Sep 2018 18:21:27 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201809031821.w83ILRUo001675@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Mon, 3 Sep 2018 18:21:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478888 - head/audio/xanalyser/files X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: head/audio/xanalyser/files X-SVN-Commit-Revision: 478888 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2018 18:21:28 -0000 Author: pi Date: Mon Sep 3 18:21:27 2018 New Revision: 478888 URL: https://svnweb.freebsd.org/changeset/ports/478888 Log: audio/xanalyser: fix a ioctl call (now for real) - SNDCTL_DSP_GETBLKSIZE() is in FreeBSD a read only ioctl() Need to use SNDCTL_DSP_SETBLKSIZE() to really set the blocksize. PR: 193373 Submitted by: hselasky Reviewed by: Walter Schwarzenfeld Approved by: db (maintainer) Added: head/audio/xanalyser/files/patch-src_pcm-oss.cc (contents, props changed) Added: head/audio/xanalyser/files/patch-src_pcm-oss.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/xanalyser/files/patch-src_pcm-oss.cc Mon Sep 3 18:21:27 2018 (r478888) @@ -0,0 +1,12 @@ +--- src/pcm-oss.cc 2014-09-06 09:44:07.000000000 +0200 ++++ src/pcm-oss.cc 2014-09-06 09:45:02.000000000 +0200 +@@ -100,7 +100,8 @@ + } + + int tmp_buffer_size = want_buffer_size; +- if (ioctl (fd, SNDCTL_DSP_GETBLKSIZE, &tmp_buffer_size) == -1) { ++ if (ioctl (fd, SNDCTL_DSP_SETBLKSIZE, &tmp_buffer_size) == -1 || ++ ioctl (fd, SNDCTL_DSP_GETBLKSIZE, &tmp_buffer_size) == -1) { + cerr << "error " << strerror (errno) << '\n'; + return; + }