From nobody Mon Feb 9 10:57:17 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1562698560; cv=none; d=zoho.com; s=zohoarc; b=ZhyrjCKiwQOhpFd7yBo0XEeGpxCSEqV3S8g8iT1S3mObU4FhJe+AJIe2nhekpo6OAtAZ8GuH1+A1VWkpCjmWs4iDHK8WPEnc+QefZg9G5q8MXkooYmEIybMI1FDd6ziDnLI6abknNuWV08aLaVfNR1nte3ZpiY+B9W0eG7A22hA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562698560; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Ltlh1yijhRgVWTsTNrdWk8L+LDcH/2Yp9VpblYh/XoU=; b=U2iKzg60n+rXspDQzr0XnpuzZ9CviKR/nfitB9MLK7uyRdO/Prq/IRrs5c6XSGXlKNuj7xlC7xs/obn1wFghxV4xEPA5DxQLT/biZXJvTbaH71YAxlphKfo04vx4V8ldxfLXtNaZdBpdXPByN8VlGQDaxrymn9NkI/FH7Ck4LWk= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1562698560848945.7635573250002; Tue, 9 Jul 2019 11:56:00 -0700 (PDT) Received: from localhost ([::1]:52854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkvHG-0007d7-PZ for importer@patchew.org; Tue, 09 Jul 2019 14:55:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36807) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkuyL-0004Cd-Up for qemu-devel@nongnu.org; Tue, 09 Jul 2019 14:36:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkuyK-0003en-As for qemu-devel@nongnu.org; Tue, 09 Jul 2019 14:36:13 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:38636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkuyJ-0003VS-R9 for qemu-devel@nongnu.org; Tue, 09 Jul 2019 14:36:12 -0400 Received: by mail-wr1-x441.google.com with SMTP id g17so11962029wrr.5 for ; Tue, 09 Jul 2019 11:35:57 -0700 (PDT) Received: from nullptr.home.dirty-ice.org (2a01-036c-0113-6e3f-0000-0000-0000-0005.pool6.digikabel.hu. [2a01:36c:113:6e3f::5]) by smtp.gmail.com with ESMTPSA id c12sm20565042wrd.21.2019.07.09.11.35.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jul 2019 11:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ltlh1yijhRgVWTsTNrdWk8L+LDcH/2Yp9VpblYh/XoU=; b=CnLwaeVFF5UyXn115HNj5W23YmZD7Vhm/X8QZc+ptR7zQlwFbzzGZWFvrNFqa4RpGv FLIZAr/Rh10QKeH+x5oS4AuEFJxspx3F7BETy5XH6vHCL7jktyn7ro18Kym4iM5Cvy+d H/+9bUJcLjHbmqYjRCJ/MLuLRFzAT0k5ytOCzzQVLuI5JDxuZmYoS8Kq9KbO0vIKgGft 8W3QnogLpHbaKPx/MhDycrbVXIRp4tEU550m/BA1O7ITS8NikvVumgNRqzspuWUDjn2I nvP1AoX6SZI4yi/5f+HqHOQ1X3OWwt1DAbuE9z39DGCCSejL8hmxFVYQuAHKv7tb232r f+kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ltlh1yijhRgVWTsTNrdWk8L+LDcH/2Yp9VpblYh/XoU=; b=VgVEE93rrnEFg/d+cOE/BmnRqAv492n641oQF2Hy3WoTR5EZHZnUiJAhg+3RoY+SU0 o6pcQ4s+Mm0gsDagKu81STfGcYukN+WkgNbK9zTGa5oA2T4DkhGIrFHEpiRU8fpabKLK qvdhK1qYZwbAGAoE2aAphxqC31XR174/27cbdtUPTlGqZJnrFVAZt26mGR6z1WJMf0vB BL/MQCvLUm6vvOcZPeQ75gMETZQ8xdEZCwwLvpzX8/Wb4nuecMk9/ijJtc00eUGOZu+X 9LYf52bUcHBxtrYpzx1a0wn26fBYcW4jFeRMqrm7irYHKPBLzyo7cR7kEHLQpQERPir+ KDcg== X-Gm-Message-State: APjAAAU4Eol7P/gRXTbFNQTAinGE1ucwfyD4Aan0Nh2Ejv6ceXinFPQT QHSy6A38yaUdFlzdztu+6VEzN6rK X-Google-Smtp-Source: APXvYqwfFCzZlVB3B0gWr40oqfsmrkVOpIN6fAZhmegloXWavqHgutLtGhCuqmiHtwpJdv96Xili7g== X-Received: by 2002:a5d:4602:: with SMTP id t2mr26228409wrq.38.1562697356854; Tue, 09 Jul 2019 11:35:56 -0700 (PDT) From: "=?UTF-8?q?K=C5=91v=C3=A1g=C3=B3=2C=20Zolt=C3=A1n?=" X-Google-Original-From: =?UTF-8?q?K=C5=91v=C3=A1g=C3=B3=2C=20Zolt=C3=A1n?= To: qemu-devel@nongnu.org Date: Tue, 9 Jul 2019 20:35:45 +0200 Message-Id: X-Mailer: git-send-email 2.22.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 Subject: [Qemu-devel] [PATCH 05/11] paaudio: do not move stream when sink/source name is specified X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Unless we disable stream moving, pulseaudio can easily move the stream on connect, effectively ignoring the source/sink specified by the user. Signed-off-by: K=C5=91v=C3=A1g=C3=B3, Zolt=C3=A1n Reviewed-by: Marc-Andr=C3=A9 Lureau --- audio/paaudio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/audio/paaudio.c b/audio/paaudio.c index cc3a34c2ea..24d98b344a 100644 --- a/audio/paaudio.c +++ b/audio/paaudio.c @@ -517,6 +517,11 @@ static pa_stream *qpa_simple_new ( #endif | PA_STREAM_AUTO_TIMING_UPDATE; =20 + if (dev) { + /* don't move the stream if the user specified a sink/source */ + flags |=3D PA_STREAM_DONT_MOVE; + } + if (dir =3D=3D PA_STREAM_PLAYBACK) { r =3D pa_stream_connect_playback(stream, dev, attr, flags, NULL, N= ULL); } else { --=20 2.22.0