LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-20-2020, 09:13 AM   #1
CMOTD
LQ Newbie
 
Registered: Mar 2020
Posts: 11

Rep: Reputation: Disabled
Mic not working with ALSA - in fact, it thinks it's a speaker


I'm trying to get the built-in mic to work on a Dell XPS15 laptop. This has a Realtek AC3266 audio device in it (apparently!). It's running void linux

The audio output has always worked with no issues at all. I've been trying to get the Mic working (primarily for skype).

At first, alsamixer displayed no 'Mic' devices at all. After some research, I added the following modprobe configuration;-

options snd-hda-intel model=laptop-amic

> arecord -l gives me...

**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3266 Analog [ALC3266 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

Before adding the modprobe config, arecord -l would also list some hdmi devices, but I'm gusssing that may have been an artifact of the (wrong) config? Not sure.

Anyway, the mic still doesn't work - trying the usual 'arecord -f S16_LE -d 5 -r 44100 -c 2 --device="hw:0,0" /tmp/tet.wav' (plus lots of variations on this) just hangs and then eventually gives up with an I/O error;-

arecord: pcm_read:2151: read error: Input/output error

If I run up alsamixer, I see something very odd (well, at least I think it's odd). In the 'playback' section, I see the following devices;-

Master, Headphone, various 'Speakers', PCM, Mic, Mic Boost, various S/PDIF, Auto-Mute Mod, Internal Mic, Internal Mic (again! Left/right?), Loopback Mixer.

In the 'capture' section, I see the following devices;-

Mic Boost, Capture, Digital, Internal Mic Boost.

My first question is, why are microphones being listed as 'playback' devices? And what do I do about it?

> amixer gives the following info for 'Mic';-

Simple mixer control 'Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [12.00dB] [on]
Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Mic Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 3 [100%] [30.00dB]
Front Right: 3 [100%] [30.00dB]

As you can see, it seems to think my Mic is a 'playback' device (as well as a 'capture' device). I'm thinking I need to fix this issue before I stand a chance of getting anywhere else with this. Or maybe I'm on the wrong lines altogether?

Any help would be much appreciated.
 
Old 03-21-2020, 02:10 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Welcome to LinuxQuestions.org. I assume that your laptop has a combo jack fitted. These can require the use of hdajackretask (part of alsa-tools). You might want to share your distro/version for more specific advice.
 
Old 03-21-2020, 02:18 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Just in case this thread is useful in some way...
https://bbs.archlinux.org/viewtopic.php?id=235837
 
Old 03-21-2020, 08:29 AM   #4
CMOTD
LQ Newbie
 
Registered: Mar 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. It is the internal mic I am trying to get working; not one that is plugged in. I don't have one that I could plug in anyway, and I use the jack for headphones (which have always worked fine)

And as I said, this is on a pretty up-to-date void linux installation (I can't give you a version because void doesn't work like that)
 
Old 03-21-2020, 03:25 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
At least we know that you're using Void Linux now. Investigate using hdajackrestask with respect to your combojack. Good luck.
 
Old 03-22-2020, 08:06 AM   #6
CMOTD
LQ Newbie
 
Registered: Mar 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
Errr, I DID say I was using void linux in the first paragraph of my original post.

And I can't see how hdajackrestask will help because as I have said several times now, the problem is with the built-in microphone and not with one that is plugged in via the jack socket

Thanks for your time anyway.

Last edited by CMOTD; 03-22-2020 at 08:08 AM.
 
Old 03-22-2020, 01:35 PM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Run the ALSA diagnostic script (alsa-info.sh) and it will upload the output to an online server. Post the URL that it provides here for others to advise further.

https://www.alsa-project.org/wiki/AlsaInfo
 
1 members found this post helpful.
Old 03-22-2020, 07:47 PM   #8
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,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Maybe I overlooked it, and if so I apologize for my poor reading comprehension, but what distro/version does this involve?
 
Old 03-22-2020, 08:38 PM   #9
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by CMOTD View Post
Errr, I DID say I was using void linux in the first paragraph of my original post.

And I can't see how hdajackrestask will help because as I have said several times now, the problem is with the built-in microphone and not with one that is plugged in via the jack socket

Thanks for your time anyway.
I know not of which he speaks, but I’m reading ferrari’s advice as saying that the presence/existence of the jacks may be affecting/impacting how the internal mic is configured/works and the tool he’s proposing may help to identify an/d/or change that.
A brief search about that tool seems to confirm my interpretation...but you should dig into the tool yourself, IMO

Good luck!
 
Old 03-22-2020, 08:53 PM   #10
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
Maybe I overlooked it, and if so I apologize for my poor reading comprehension, but what distro/version does this involve?
@frankbell: The OP is using Void Linux (rolling distro). Kernel and alsa version not yet disclosed.

I didn't immediately pick up on the internal mic as the issue, so I will need to research this some more.
 
Old 03-22-2020, 09:46 PM   #11
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,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Thanks for straightening me out. I probably missed it because I'm not familiar with Void, but I shall be loading it up in a VM sometime this week because inquiring minds want to know.

I visited the Void website and it looks as if Void might be using Pulse Audio; at least, Pulse shows up in the package list at the website. If so, is pavucontrol (the Pulse Audio mixer) installed and what does it report about the mic?

My own experience with distros using Pulse is that pavucontrol is a useful troubleshooting tool, sometimes more useful than the ALSA tools.

Just a thought.
 
Old 03-22-2020, 10:02 PM   #12
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
In order for PulseAudio to work, the underlying ALSA layer (components) must still be functioning properly

Audio hardware---->ALSA---->PulseAudio---->Application

The OP has mentioned that the internal mic not present. The alsa-info.sh output will provide a more comprehensive picture about that.
 
Old 03-23-2020, 01:51 AM   #13
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Returning to the OP's first post I don't think the capture device output is unusual. Therefore, (along the lines that frankbell mentioned), I recommend using pavucontrol to set the desired audio profile and check that the appropriate input device is selected, not muted etc.
 
Old 03-24-2020, 05:46 AM   #14
CMOTD
LQ Newbie
 
Registered: Mar 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
Firstly, thanks for your continuing help.

Ok, I ran alsa-info and uploaded the result...

http://alsa-project.org/db/?f=a7e44d...92265409f0d275

And I shall check-out the hdajackrestask utility

And to address some other points that have been made;-

## Just to clarify, the internal Mic does seem to be present (well, at least I THINK it's the internal Mic) - the problem seems to be that it thinks its a speaker, and not a microphone! It appears in the "playback" section of alsamixer rather than the "capture" section. As such, there is no CAPTURE toggle on it, which (from what little I know) should be present for a Mic

## Linux version
Linux version 5.4.16_1 (void-buildslave@a-hel-fi) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Wed Jan 29 20:40:56 UTC 2020

## alsa version
Driver version: k5.4.16_1
Library version:
Utilities version: 1.2.1

## Pulse Audio
I DID have pulse audio installed but I removed it some time ago. I DO have the "pulse wrapper" installed though (can't remember its name, but it provides a thin pulse API for applications that can't/won't talk directly to alsa)

## And for the curious, one of the main reasons I use void linux is because there's no SystemDregs in it :-) and it is generally put together in a very clean and simple way; a bit like BSD

Last edited by CMOTD; 03-24-2020 at 05:54 AM.
 
Old 03-24-2020, 06:05 PM   #15
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,793

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
The amixer output (part of the alsa-info.sh output) looks normal to me, but I note that the mic is currently off (muted) and the levels are low...
Code:
Simple mixer control 'Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Use alsamixer to make the necessary adjustments.

Last edited by ferrari; 03-24-2020 at 06:06 PM.
 
  


Reply



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
ALSA - routing front Mic input to rear panel speaker output littlebluebird Linux - Software 1 12-01-2012 12:20 PM
[SOLVED] Ekiga mic/speaker not working Nemesissparadise Linux - Software 3 03-26-2012 07:19 PM
How could I make USB speaker as default/master speaker ? czy11421 Linux - Hardware 1 09-02-2007 10:59 AM
Left speaker does not speak - not speaker issue. Hardware or software issue? Svip Linux - Hardware 3 05-03-2006 11:22 AM
sound from line-in or mic does not output to speaker sohmc Linux - Hardware 1 06-16-2005 08:28 AM

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

All times are GMT -5. The time now is 06:11 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