Bug 93108 - Starting pavucontrol creates sound drop-out [related to C270/C910 Logitech webcam]
Summary: Starting pavucontrol creates sound drop-out [related to C270/C910 Logitech we...
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: pavucontrol (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL: https://bugs.launchpad.net/ubuntu/+so...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-25 18:43 UTC by flocculant
Modified: 2018-07-30 09:27 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
pulse verbose log (470.92 KB, text/plain)
2015-11-27 18:41 UTC, flocculant
Details
machine specs (1.93 KB, text/plain)
2015-11-29 16:45 UTC, flocculant
Details

Description flocculant 2015-11-25 18:43:22 UTC
Using Xubuntu 16.04.

pavucontrol              - 3.0-3build1
pulseaudio               - 1:7.1-1ubuntu1
pulseaudio-module-x11    - 1:7.1-1ubuntu1
pulseaudio-utils         - 1:7.1-1ubuntu1 

Start up pavucontrol and the sound mutes momentarily - perhaps 1s or so

reported it externally - affects me with C-Media CMI8788 [Oxygen HD Audio] driver: snd_virtuoso

seen by someone else with Intel 5 Series/3400 Series High Definition Audio driver: snd_hda_intel

https://bugs.launchpad.net/ubuntu/+source/pavucontrol/+bug/1504175
Comment 1 Alexander E. Patrakov 2015-11-25 19:04:09 UTC
Reproducible here on a jack sink
Comment 2 Raymond 2015-11-26 07:13:29 UTC
(In reply to flocculant from comment #0)
> Using Xubuntu 16.04.
> 
> pavucontrol              - 3.0-3build1
> pulseaudio               - 1:7.1-1ubuntu1
> pulseaudio-module-x11    - 1:7.1-1ubuntu1
> pulseaudio-utils         - 1:7.1-1ubuntu1 
> 
> Start up pavucontrol and the sound mutes momentarily - perhaps 1s or so
> 
> reported it externally - affects me with C-Media CMI8788 [Oxygen HD Audio]
> driver: snd_virtuoso
> 
> seen by someone else with Intel 5 Series/3400 Series High Definition Audio
> driver: snd_hda_intel
> 
> https://bugs.launchpad.net/ubuntu/+source/pavucontrol/+bug/1504175


Oct 08 15:30:39 hostname pulseaudio[1719]: [pulseaudio] alsa-mixer.c: Volume element Master has 8 channels. That's too much! I can't handle that!

Do you mean this patch does not work? 

http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa?id=fcbbe34e001b9bee3e73a663e9bf9ddc11c0a1d5
Comment 3 flocculant 2015-11-26 18:38:13 UTC
I wouldn't know if the patch has been applied. Nor would I know how to apply it locally.
Comment 4 David Henningsson 2015-11-27 08:26:41 UTC
Couldn't reproduce with a quick test here - can we get a PulseAudio verbose log here please? ( https://wiki.ubuntu.com/PulseAudio/Log )

I e, one with --log-time=1, and please note at what time values the audio turns off and turns back on again?

Thanks!
Comment 5 flocculant 2015-11-27 18:41:04 UTC
Created attachment 120182 [details]
pulse verbose log

Hard to know exactly when it was. But I tried to stop the logging almost immediately after I had started pavucontrol and got the mute going on. Hope that helps.
Comment 6 flocculant 2015-11-29 16:45:43 UTC
Created attachment 120195 [details]
machine specs

mmm 

so - just putting down here what I'm seeing with sound, perhaps the wrong place but might be useful

I've seen this bug during the last 'ubuntu dev cycle even if I do so with Xubuntu' 

following recent updates I have got, I'm now seeing a momentary mute of sound when vbox starts, vbox does more than just sit there waiting for my input

not seeing any particular spikes in cpu activity

memory was recently checked out

attached machine specs
Comment 7 David Henningsson 2015-11-30 11:45:49 UTC
(In reply to flocculant from comment #5)
> Created attachment 120182 [details]
> pulse verbose log
> 
> Hard to know exactly when it was. But I tried to stop the logging almost
> immediately after I had started pavucontrol and got the mute going on. Hope
> that helps.

Thanks. It seems the big hickup (about 2 seconds) is below. Because pavucontrol starts recording from all sources, that includes the usb webcam mic. Just to check if this is the actual cause, could you try disconnecting the webcam and see if the problem goes away?

(  22.253|   0.000) I: [pulseaudio] source-output.c: Trying to change sample rate
(  22.253|   0.000) D: [pulseaudio] module-suspend-on-idle.c: Source alsa_input.usb-046d_0825_121F40B0-02.analog-mono becomes busy, resuming.
(  22.253|   0.000) D: [pulseaudio] source.c: Suspend cause of source alsa_input.usb-046d_0825_121F40B0-02.analog-mono is 0x0000, resuming
(  22.254|   0.000) D: [pulseaudio] reserve-wrap.c: Successfully acquired reservation lock on device 'Audio2'
(  22.254|   0.000) I: [alsa-source-USB Audio] alsa-source.c: Trying resume...
(  22.345|   0.091) D: [alsa-sink-Multichannel] protocol-native.c: Implicit underrun of ''Es Vedra' by 'The Orb Featuring David Gilmour''
(  22.815|   0.470) I: [alsa-source-USB Audio] alsa-util.c: Disabling tsched mode since BATCH flag is set
(  22.816|   0.000) D: [alsa-source-USB Audio] alsa-util.c: Maximum hw buffer size is 10922 ms
(  24.127|   1.311) D: [alsa-source-USB Audio] alsa-util.c: Set buffer size first (to 4797 samples), period size second (to 1199 samples).
(  24.131|   0.003) D: [alsa-source-USB Audio] alsa-source.c: hwbuf_unused=0
(  24.131|   0.000) D: [alsa-source-USB Audio] alsa-source.c: setting avail_min=1
(  24.131|   0.000) I: [alsa-source-USB Audio] alsa-source.c: Resumed successfully...
(  24.131|   0.000) I: [alsa-source-USB Audio] alsa-source.c: Starting capture.
Comment 8 Alexander E. Patrakov 2015-11-30 12:35:20 UTC
For me, disconnecting the webcam helps
Comment 9 flocculant 2015-11-30 13:35:23 UTC
Confirm that unplugging webcam stops the mute issue.
Comment 10 flocculant 2015-12-01 07:48:31 UTC
Comment - fyi the person seeing the bug in the LP bug didn't have a webcam when bug was seen

<jjfrv8> [00:56:56] flocculant, I no longer have the machine that exhibited the problem for me. However, it showed the problem even without a webcam.
Comment 11 Alexander E. Patrakov 2015-12-01 08:42:59 UTC
Maybe he has some other USB audio device?
Comment 12 flocculant 2015-12-02 07:40:05 UTC
seems they are no longer affected
Comment 13 David Henningsson 2015-12-02 23:02:35 UTC
The easy way out is just to blame the hardware. The harder way is to make sure we don't block other things while waiting for the hardware. Which should be possible - the tricky thing is to avoid creating races at the same time...
Comment 14 flocculant 2015-12-03 07:21:26 UTC
For sure. I'm just trying to bring as much info to the bug as I can. Because that's all I *can* do for those who can do things like fix it :)
Comment 15 GitLab Migration User 2018-07-30 09:27:50 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pavucontrol/issues/7.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.