From: "Alexander E. Patrakov" <patrakov@gmail.com>
To: Yomi Ogunwumi <abyomi0@gmail.com>, alsa-devel@alsa-project.org
Subject: Re: Issues and/or possible bugs in alsa
Date: Wed, 25 Feb 2015 13:14:30 +0500 [thread overview]
Message-ID: <54ED8466.7020102@gmail.com> (raw)
In-Reply-To: <CACui-2k8j3ZWtmvwiE3V5apuQ0g-dn=wN-h4miExDYLLR4diWA@mail.gmail.com>
25.02.2015 03:46, Yomi Ogunwumi wrote:
> Third. This is just a question. Is this :
> https://bugs.freedesktop.org/show_bug.cgi?id=86676 actually a pulseaudio
> bug, or is it an issue with alsa?
> I'm only asking since Raymond linked something that seemed to belong to the
> alsa project.
>
This is a bug both in ALSA and in PulseAudio.
The ALSA part (from the user viewpoint) is that the softvol plugin does
not reprocess the already-submitted but buffered samples when the volume
changes. But it can't, because that would require an additional thread
for monitoring the software volume changes, and such thread does not exist.
The PulseAudio part of the bug is that it does not deactivate softvols,
even though it can apply volume in software itself. In October 2014, in
Dusseldorf, a general agreement has been reached on the following arguments:
* ALSA has no API to definitely distinguish softvols from other controls.
* ALSA has the snd_ctl_elem_info_is_user() API function that tells
whether this is a userspace control.
* All softvols are userspace controls.
* There are other kinds of userspace controls, but they are rare.
* If a control is named PCM Playback Volume and is a userspace
control, then it's likely a softvol. Not bulletproof, but a good-enough
heuristic.
* On finding a softvol, PulseAudio should set it to 100% (so that it
doesn't eat CPU) and don't touch from that point on.
But nobody has implemented this so far.
The relevant code can be placed in the src/modules/alsa/alsa-mixer.c
file in PulseAudio source tree. I guess that element_probe() is a good
place. If you know C programming, a contribution would be welcome.||
--
Alexander E. Patrakov
next prev parent reply other threads:[~2015-02-25 8:14 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 22:46 Issues and/or possible bugs in alsa Yomi Ogunwumi
2015-02-25 7:58 ` Takashi Iwai
2015-02-25 18:15 ` Yomi Ogunwumi
2015-02-27 4:16 ` Yomi Ogunwumi
2015-02-25 8:14 ` Alexander E. Patrakov [this message]
2015-02-25 8:30 ` Jaroslav Kysela
2015-02-25 8:36 ` Alexander E. Patrakov
2015-02-25 14:42 ` Yomi Ogunwumi
2015-02-28 10:00 ` Raymond Yau
2015-02-28 13:22 ` Alexander E. Patrakov
2015-02-28 15:13 ` Takashi Iwai
2015-03-11 13:41 ` Yomi Ogunwumi
2015-03-15 15:58 ` Raymond Yau
[not found] ` <CACui-2ngDGDf3R-Jp0mxrYKrJQuWCS6msk-A3LdTk0n2LZCqTQ@mail.gmail.com>
[not found] ` <CACui-2kLt+x6RieNZ05bFbs5veu7zy3m50MfurPCpPtBAwY07Q@mail.gmail.com>
2015-04-03 14:36 ` Yomi Ogunwumi
2015-04-03 15:10 ` Raymond Yau
2015-04-09 15:44 ` Yomi Ogunwumi
2015-04-10 1:20 ` Raymond Yau
2015-04-10 3:26 ` Yomi Ogunwumi
2015-04-10 13:18 ` Raymond Yau
2015-04-10 16:17 ` Yomi Ogunwumi
2015-04-11 1:54 ` Raymond Yau
2015-04-11 2:44 ` Raymond Yau
2015-04-11 7:07 ` Raymond Yau
2015-04-11 15:25 ` Yomi Ogunwumi
2015-04-12 6:30 ` Raymond Yau
[not found] ` <CACui-2=BbE1WPObH_9cqsf5mpJRevyJ+-3hqr-Ae_HXhhM1p_A@mail.gmail.com>
[not found] ` <CAN8ccia5aKRrd82d=n0FDh4D4Us1xFd3s7L=hDPoZo0Jn_fYfQ@mail.gmail.com>
2015-04-12 16:33 ` Yomi Ogunwumi
2015-04-14 1:20 ` Raymond Yau
2015-04-14 1:36 ` Yomi Ogunwumi
2015-05-11 14:22 ` Yomi Ogunwumi
2015-05-20 0:57 ` Yomi Ogunwumi
2015-07-02 23:23 ` Yomi Ogunwumi
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=54ED8466.7020102@gmail.com \
--to=patrakov@gmail.com \
--cc=abyomi0@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.