From owner-svn-ports-all@freebsd.org Mon Feb 11 06:37:56 2019 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 39BB714EABDC; Mon, 11 Feb 2019 06:37:56 +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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CA0A786415; Mon, 11 Feb 2019 06:37:55 +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 B04F924061; Mon, 11 Feb 2019 06:37:55 +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 x1B6btmW048626; Mon, 11 Feb 2019 06:37:55 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1B6bthJ048625; Mon, 11 Feb 2019 06:37:55 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201902110637.x1B6bthJ048625@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Mon, 11 Feb 2019 06:37:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492669 - head/audio/libmatemixer/files X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: head/audio/libmatemixer/files X-SVN-Commit-Revision: 492669 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: CA0A786415 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.977,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 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, 11 Feb 2019 06:37:56 -0000 Author: pi Date: Mon Feb 11 06:37:55 2019 New Revision: 492669 URL: https://svnweb.freebsd.org/changeset/ports/492669 Log: audio/libmatemixer: help mate_mixer_applet to save the "track to control" - Using mate 1.8.1 installed from packages. Unable to set the volume straight from the slider of the Mixer Applet, until I right click the icon, go to preferences, and select PCM as the track to control. If I restart the mate_mixer_applet (either via kill or regular shutdown) the setting goes back to Volume. - After the port patch the instelled libmatemixer backend works fine. - see also: https://forums.freebsd.org/threads/fixing-default-audio-device-in-mate.58957/ PR: 202578 Submitted by: Attila Reported by: Abilio Marques Reviewed by: Walter Schwarzenfeld Added: head/audio/libmatemixer/files/ head/audio/libmatemixer/files/patch-backends_oss_oss-backend.c (contents, props changed) Added: head/audio/libmatemixer/files/patch-backends_oss_oss-backend.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/libmatemixer/files/patch-backends_oss_oss-backend.c Mon Feb 11 06:37:55 2019 (r492669) @@ -0,0 +1,30 @@ +--- backends/oss/oss-backend.c.orig 2017-03-12 15:28:02 UTC ++++ backends/oss/oss-backend.c +@@ -40,6 +40,8 @@ + * from the sndstat file, but avoid even trying that on systems where this + * is not needed and the file is not present */ + #define OSS_PATH_SNDSTAT "/dev/sndstat" ++ /* remove SOUND_MIXER_INFO on FreeBSD, use OSS_PATH_SNDSTAT */ ++#undef SOUND_MIXER_INFO + #endif + + #define OSS_MAX_DEVICES 32 +@@ -377,6 +379,10 @@ read_device_label (OssBackend *oss, cons + { + guint index; + ++ /* default_device setting only in read_device_label_sndstat() ++ * on FreeBSD use OSS_PATH_SNDSTAT ++ */ ++ + #ifdef SOUND_MIXER_INFO + do { + struct mixer_info info; +@@ -430,6 +436,7 @@ read_device_label_sndstat (OssBackend * + + while (fgets (line, sizeof (line), fp) != NULL) { + gchar *p; ++ g_strchomp(line); // required for g_str_has_suffix() + + if (g_str_has_prefix (line, prefix) == FALSE) + continue;