Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6625EC4338F for ; Tue, 27 Jul 2021 16:32:01 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 55AB261B24 for ; Tue, 27 Jul 2021 16:31:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 55AB261B24 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 6A0B618DD; Tue, 27 Jul 2021 18:31:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6A0B618DD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1627403518; bh=IPEvoVAkhhtGtU9AEOJqOJpOx4psMbX+4RQyz62b2nI=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=a+9o60piq6pqTYsacvsHt5eCEkLMe8CzKXTmrvFpRmLlbCdAhLUIOaJTOtkHpLbz5 uLNyLR2EmOTjUeuZfX13+vMO02AxGL7pF9THQJdHrkPddzAp300exmFz541cyUMdEC Xyrx98Z4Z7MkXEl3bxZL6w9BetorpbYhP4t46hiU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9DF29F80212; Tue, 27 Jul 2021 18:31:07 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0A5DFF8026C; Tue, 27 Jul 2021 18:31:06 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id DFDDCF80212 for ; Tue, 27 Jul 2021 18:30:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DFDDCF80212 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="Yf8Yqun3"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="WCKjisCd" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id DCCF72218F; Tue, 27 Jul 2021 16:30:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1627403457; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iVlKP7eZdwt8EKv/3WjfVMr8AsXYoRAD+HzItctBmlg=; b=Yf8Yqun3a3FNG+88neNlVFbzwGSuqy0d3niwLOQe/YWkq14/h+aPfn3XSFKdy7HTHY7WYW pgVp6hbmx9K1r0QrtfqBYPXmAwWBj+g2h7mEnU6eQ/mNumzi2C3cFRbsQRLB2EU4jgZJ8J xteciDyh0/e7/sd3iFvm/1lS3HCvzyU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1627403457; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iVlKP7eZdwt8EKv/3WjfVMr8AsXYoRAD+HzItctBmlg=; b=WCKjisCdOnf7SbAG1Q+9D1wO4iL3oltbKCZwpaBTQmFzNmx4Ff2FDYKasj8zVl06OTwq9U iwL6O1BVVqT8M3DA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id D7458A3B85; Tue, 27 Jul 2021 16:30:57 +0000 (UTC) Date: Tue, 27 Jul 2021 18:30:57 +0200 Message-ID: From: Takashi Iwai To: Liam Hupfer Subject: Re: Pulseaudio dropping GPU audio In-Reply-To: <87fsw3l6o5.fsf@hpfr.net> References: <87fsw3l6o5.fsf@hpfr.net> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: alsa-devel@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" On Sat, 24 Jul 2021 23:50:09 +0200, Liam Hupfer wrote: > > Hello, > > I’ve set up a Linux VM where I’m passing through an RX 580. I’m using the GPU > audio and my monitor’s audio jack. For some reason the Linux VM keeps losing > track of the audio output. It always shows up under `lspci' under ID `06:00.0' > using the `snd_hda_intel' driver, but `pulseaudio' (I also tried `pipewire', > same issue) keep losing it. Most times I can restart `pulseaudio' and it will > find the device again; occasionally, it takes multiple restarts. > > I checked the Arch wiki and I found something[¹] on audio over HDMI (I’m using > DisplayPort, if that matters). I checked the device and it did report `Enable+'. > Even so, I added the kernel parameter `snd_hda_intel.enable_msi=1', but nothing > changed. > > Here are some `journalctl --user -u pulseaudio' logs: > ┌──── > │ 20:37:31 host pulseaudio[2373]: ALSA woke us up to write new data to the device, but there was actually nothing to write. > │ 20:37:31 host pulseaudio[2373]: Most likely this is a bug in the ALSA driver 'snd_hda_intel'. Please report this issue to the ALSA developers. > │ 20:37:31 host pulseaudio[2373]: We were woken up with POLLOUT set -- however a subsequent snd_pcm_avail() returned 0 or another value < min_avail. > └──── The message is likely a red herring and irrelevant from your problem. You can try at first the direct playback with aplay (specify the proper option to access without pulse plugin), and confirm that the device is set up. If aplay works (at least detects), then check more verbose log of pulseaudio. Takashi > Anyone have any suggestions for troubleshooting? `pulseaudio'’s logs suggested > it might have to do with ALSA, so I asked for help here. > > Thank you! > > —Liam > > > [¹] >