Alsa-Devel Archive mirror
 help / color / mirror / Atom feed
From: Jaime <enopatch@gmail.com>
To: alsa-devel@alsa-project.org
Subject: snd_hda_intel with buffer_size set to 32768 sounds horrible. Kernel driver bug?
Date: Mon, 22 Apr 2024 13:46:16 +0100	[thread overview]
Message-ID: <CAAbCkmLGdbfsN+PXsOr8nV7rY44vvxV8y7jN1cxOr7wfsGeKwA@mail.gmail.com> (raw)

Fresh Debian Bookworm (v12) installation with alsa but no sound
server. aplay with no .asoundrc sounds great (default buffer_size is
16384). If I force the buffer_size to 32768 ([1]), then aplay sounds
horrible ([2]). Is this a kernel driver bug? (If yes, I'll log it at
https://bugzilla.kernel.org) I discovered this bug because pipewire
sets the buffer_size to 32768 hence it triggers this bug - I've logged
a bug against pipewire at [3]. Output from alsa-info at [4]. TIA.

[1] To set aplay's buffer_size to 32768, I use the following ~/.asoundrc:
pcm.!default {
  type plug
  slave {
    pcm {
      type dmix
      ipc_key 1234
      slave {
        period_size 1024
        buffer_size 32768
        pcm "hw:0"
        format S32_LE
      }
    }
  }
}

[2] Upload of horrible sound at
https://audio.com/jt-1796478503182974/audio/alsaonlybuf-32768nopipewire

[3] https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3966

[4] http://alsa-project.org/db/?f=5dbfb02c81bb1523505c725a189b6f0133f2b3d7

                 reply	other threads:[~2024-04-22 12:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAbCkmLGdbfsN+PXsOr8nV7rY44vvxV8y7jN1cxOr7wfsGeKwA@mail.gmail.com \
    --to=enopatch@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).