From mboxrd@z Thu Jan 1 00:00:00 1970 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=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 5C644C433B4 for ; Wed, 5 May 2021 07:02:53 +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 0B33D613C1 for ; Wed, 5 May 2021 07:02:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B33D613C1 Authentication-Results: mail.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alsa-project.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@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 2A7A716AC; Wed, 5 May 2021 09:02:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2A7A716AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1620198170; bh=mBb/tULqERvAAGeER0LDUcq28oXkBeInngs2cPRX2rc=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=uaev9iqcw5Eg7CkQRzPjathdvgrxRbN4qw8edXYTuiPchcUsoysL7r8Z8lki06Ira /0wGxTTs24fSPiLsgIp+9Qi2HGeyZXTinNidrWmhh+ehiEOXEq7eD7SE/qvtukecl2 HFHGNYdvSKmwE/RfuLA/irevDw8z/ECeWLle+RYA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C0F70F8026A; Wed, 5 May 2021 09:01:14 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A5D50F8026D; Wed, 5 May 2021 09:01:13 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id 87BF3F80108 for ; Wed, 5 May 2021 09:01:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 87BF3F80108 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - edited To: alsa-devel@alsa-project.org In-Reply-To: <1620198062166485071-webhooks-bot@alsa-project.org> References: <1620198062166485071-webhooks-bot@alsa-project.org> Subject: [a52] Strange behavior with 5.1 surround on ALC1220 Message-Id: <20210505070113.A5D50F8026D@alsa1.perex.cz> Date: Wed, 5 May 2021 09:01:13 +0200 (CEST) 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" alsa-project/alsa-plugins issue #21 was edited from davidebeatrici: I originally encountered the issue ~1 year ago, when I started using a motherboard with an ALC1220 on it. The out-of-box experience was flawless: I simply connected the optical SPDIF cable to my amplifier/receiver and stereo sound immediately worked. Once I switched to 5.1 surround, audio output became extremely fast; even videos were affected by it, to the point that they were being reproduced in seconds instead of minutes. After a few days of research and experiments I managed to workaround the issue by replacing the content of `60-a52-encoder.conf` with: ``` pcm.a52 { @args [CARD] @args.CARD { type string } type rate slave { pcm { type a52 card $CARD } rate 48000 } } pcm.pulse { type pulse } ctl.pulse { type pulse } pcm.!default { type pulse } ctl.!default { type pulse } ``` Based on https://help.ubuntu.com/community/DigitalAC-3Pulseaudio#Configuring_asound.conf. After that, I wanted to investigate the cause and report my findings to either ALSA or PulseAudio (depending on the results). Unfortunately that never happened and I kinda forgot about it, as [libasound2-plugins](https://packages.debian.org/bullseye/libasound2-plugins) was updated a single time in the past year and thus I only had to replace the file's content once more. Fast-forward to today: I switch from PulseAudio to PipeWire and while troubleshooting https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1143 I decided to try to restore the original file. Interestingly, the behavior is different compared to PulseAudio: audio, instead of being fast, is crackling. It's basically as if a frame every two is being skipped. Unfortunately PipeWire reports no errors whatsoever. Issue URL : https://github.com/alsa-project/alsa-plugins/issues/21 Repository URL: https://github.com/alsa-project/alsa-plugins