LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-05-2019, 05:42 PM   #1
galen
Member
 
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191
Blog Entries: 1

Rep: Reputation: Disabled
how do I stop pulseaudio from switching output to an USB mic?


pulseaudio is switching output to an USB mic.
this is unwanted & useless. Card 3 below.
How can I stop this from happening?

Xubuntu 18.04 (current)

Code:
Audio:     Card-1 NVIDIA GK208 HDMI/DP Audio Controller driver: snd_hda_intel
           Card-2 Advanced Micro Devices [AMD/ATI] SBx00 Azalia (Intel HDA) driver: snd_hda_intel
           Card-3 C-Media driver: USB Audio
           Card-4 Logitech QuickCam Messanger driver: USB Audio
           Card-5 Logitech B525 HD Webcam driver: USB Audio
           Sound: Advanced Linux Sound Architecture v: k4.15.0-50-generic
 
Old 06-05-2019, 08:10 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,986
Blog Entries: 28

Rep: Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371
If you have not done so, install pavucontrol, the Pulse Audio Mixer. It gives you much more granular control that most volume control programs, including the ability to control individual inputs, outputs, and programs. It should be in the repos.

Whether it will stop Pulse from ad libbing, I don't know and have no way of testing, but it should be a good first step.
 
Old 06-05-2019, 09:39 PM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
I've had similar issues. When the screen blanks to save power, or I turn it off the take a nap. When the screen turns back ON, then it defaults to HDMI audio (again). And it doesn't matter how many times I disable HDMI audio in pavucontrol, it will always default to the one that appeared out of nowhere. But that is only a "version" quirk / feature. It didn't "used to" do that in "older" versions. Not sure about the latest bleeding edge ones.
 
Old 06-06-2019, 07:29 AM   #4
galen
Member
 
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I run the stable LTS so I don't run into these issues, but still ...
I have always had pavucontrol installed, it does not detect the onboard sound device

notes: system will not allow output to onboard audio. alsamixer does show the internal sound but there is nothing on output nothing on input. I have switched the ASUS motherboard BiOS from HD audio to AC97 as well to no effect, this is a new motherboard as previous motherboard [GA-78LMT-USB] simply stopped output & input from onboard chip
 
Old 06-06-2019, 09:32 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
$ cat /proc/asound/cards

Shows your "known" cards. Meaning they have drivers, even if input or output (microphones) options don't exist.

$ find /proc/asound/ -iname '*pcm*p*'

The ending "p" is for playback, aka output. One way to more easily identify card # and device #.

$ find /proc/asound/ -iname '*pcm*c*'

The ending "c" is for capture, aka input.

You can also egrep the contents of /proc/asound/ (associated with alsa and it's drivers).

$ egrep -r -i "hdmi" /proc/asound/*

On my system additional details can be seen about my HDMI.

$ less /proc/asound/card0/pcm3p/info
Code:
card: 0
device: 3
subdevice: 0
stream: PLAYBACK
id: HDMI 0
name: HDMI 0
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1
The take away from this information is that hw:0,3,0 is the alsa long name for my HDMI audio.

$ speaker-test -c 2 -l 1 -D hw:0,3,0

Where the numbers are card #, device #, subdevice #. The subdevice number is optional most times, not so much when using snd-aloop, a fake card who's input (capture) is it's output (playback). For devices with a 0 value, even that one is optional. But that's just alsa, not pulse which is a different animal.

For my laptops speaker output:

$ less /proc/asound/card1/pcm0p/info
Code:
card: 1
device: 0
subdevice: 0
stream: PLAYBACK
id: ALC3227 Analog
name: ALC3227 Analog
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1
$ speaker-test -c 2 -l 1 -D hw:1

Since defaults are 0, I can omit the device and subdevice. For pulseaudio it "should" show up as a selection. But that's not always the case. I had to add extra stuff for my Delta 44 about a decade ago. But that's no longer needed for the past five years or so.
 
1 members found this post helpful.
Old 06-06-2019, 12:45 PM   #6
galen
Member
 
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I did some toggling under pulseaudio mixer.
Made sure the configuration for USB mic was set to INPUT only, after selecting other fields.
That corrected the OUTPUT tab to show only HDMI
Note: HDMI was set as the fallback / 1st position already
 
Old 06-06-2019, 02:54 PM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
Not that it's simpler, but a more sure fire way to lock your output option is to have a pulse over jack setup. And set jack to your output of choice. It's quirky in that it doesn't launch jack and you'll need to stop / restart pulse AFTER you manually start jack (jackdbus). Which likely requires additional configuration like "autospawn = no" in /etc/pulse/client.conf. But there's advantages like being able to swap your left and right speakers through sound routing (qjackctl / jack_lsp+jack_connect), instead of having to modify the hardware.
 
  


Reply

Tags
pulseaudio, sound


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Get Sound from Pulseaudio -- PulseAudio Will Not Start JasonC10203 Linux - Software 4 11-28-2016 11:18 PM
Bypass pulseaudio problems and crashes when you don't have pulseaudio. Rinndalir Linux - Software 1 08-31-2016 01:00 PM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
Winecfg crashes on sound tab with Pulseaudio and no 'sounddrivers' without pulseaudio William (Dthdealer) Linux - Software 5 06-13-2010 07:30 AM
USB Sound (Mic) not working in Fedora 9 pulseaudio MikeyCarter Linux - Software 0 07-30-2008 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration