Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexander E. Patrakov" <patrakov@gmail.com>
To: Jaroslav Kysela <perex@perex.cz>,
	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:36:18 +0500	[thread overview]
Message-ID: <54ED8982.3050802@gmail.com> (raw)
In-Reply-To: <54ED881F.7070102@perex.cz>

25.02.2015 13:30, Jaroslav Kysela wrote:
> Dne 25.2.2015 v 09:14 Alexander E. Patrakov napsal(a):
>> 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.
> PulseAudio should open PCM with the SND_PCM_NO_SOFTVOL mode. In this
> case, the PCM device does not add the softvol plugin to the internal
> plugin chain. These mode flags was introduced a long time ago (discussed
> with Lennart) and I thought that PA uses it.
>
> 					Jaroslav
>

Well, that can be done, but the "don't attempt to control the softvol" 
part of the bug needs to be solved first. SND_PCM_NO_SOFTVOL by itself 
is not sufficient.

-- 
Alexander E. Patrakov

  reply	other threads:[~2015-02-25  8:36 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
2015-02-25  8:30   ` Jaroslav Kysela
2015-02-25  8:36     ` Alexander E. Patrakov [this message]
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=54ED8982.3050802@gmail.com \
    --to=patrakov@gmail.com \
    --cc=abyomi0@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=perex@perex.cz \
    /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