[AV200 - Xonar STX, recording] Microphone is not working on front panel

Bug #1171435 reported by Simplehuman
40
This bug affects 9 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Microphone is not working on frontpanel of my soundcard Asus Xonar Essence STX. In Windows it works normally.

Workaround:

1. Start alsamixer from a terminal.
2. Press F6 to select the Xonar sound card
3. Press F4 to see recording controls.
4. Use arrow keys to find a control named "Mic Source" and change it from "Mic Jack" to "Front Panel".

Still actual for:

Ubuntu 16.04 x64

4.3.0-2-generic

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
Uname: Linux 3.9.0-030900rc8-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: simplehuman 2394 F.... pulseaudio
 /dev/snd/pcmC0D0c: simplehuman 2394 F...m pulseaudio
 /dev/snd/controlC1: simplehuman 2394 F.... pulseaudio
Date: Mon Apr 22 15:06:32 2013
InstallationDate: Installed on 2013-02-14 (67 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaRecordingTest: ALSA recording test through plughw:STX failed
Symptom_Card: GF110 High Definition Audio Controller - HDA NVidia
Symptom_Type: None of the above
Title: [AV200 - Xonar STX, recording] Recording problem
UpgradeStatus: Upgraded to raring on 2013-02-14 (67 days ago)
dmi.bios.date: 08/09/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1402
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: SABERTOOTH X58
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1402:bd08/09/2012:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnSABERTOOTHX58:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Simplehuman (simplehuman) wrote :
Revision history for this message
Raymond (superquad-vortex2) wrote :

Simple mixer control 'Mic Source',0
  Capabilities: cenum
  Items: 'Mic Jack' 'Front Panel'
  Item0: 'Mic Jack'

you have not selected front panel

affects: alsa-driver (Ubuntu) → pulseaudio (Ubuntu)
Revision history for this message
Raymond (superquad-vortex2) wrote :

device.description = "CMI8788 [Oxygen HD Audio] Аналоговое стерео"
  alsa.mixer_name = "AV200"
  alsa.components = "PCM1792A CS5381 AV200"
  module-udev-detect.discovered = "1"
  device.icon_name = "audio-card-pci"
 ports:
  analog-input-microphone: Микрофон (priority 8700, latency offset 0 usec, available: unknown)
   properties:
    device.icon_name = "audio-input-microphone"
  analog-input-linein: Линейный вход (priority 8100, latency offset 0 usec, available: unknown)
   properties:

  analog-input: Аналоговый вход (priority 8000, latency offset 0 usec, available: unknown)
   properties:

 active port: <analog-input-microphone>

Revision history for this message
Simplehuman (simplehuman) wrote :

Raymond, I tried every 4 options in "Sound settings" in input tab

Each option does not work.

It is actual on Ubuntu 13.10 x64, 3.11 kernel

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Revision history for this message
Simplehuman (simplehuman) wrote :

Still actual on Ubuntu 14.10 x64

tags: added: trusty utopic
Revision history for this message
Raymond (superquad-vortex2) wrote :

ports:
  analog-input-microphone: Микрофон (priority 8700, latency offset 0 usec, available: unknown)
   properties:
    device.icon_name = "audio-input-microphone"
  analog-input-linein: Линейный вход (priority 8100, latency offset 0 usec, available: unknown)
   properties:

  analog-input: Аналоговый вход (priority 8000, latency offset 0 usec, available: unknown)
   properties:

 active port: <analog-input-microphone>

Simple mixer control 'Line',0
  Capabilities: cswitch cswitch-joined penum
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Mic',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
  Capture channels: Mono
  Limits: Capture 0 - 31
  Mono: Capture 31 [100%] [12.00dB] [on]
Simple mixer control 'Mic Boost (+20dB)',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Mic Source',0
  Capabilities: cenum
  Items: 'Mic Jack' 'Front Panel'
  Item0: 'Mic Jack'

do mic boost really affected playback only ?

ARECORD

**** List of CAPTURE Hardware Devices ****
card 0: STX [Xonar STX], device 0: Multichannel [Multichannel]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

it is strange to use multichannel as device name , does it replay support multi channel capture ?

you have to ask the author why not implement capture source control to select rear Mic, front mic and line in

Revision history for this message
Raymond (superquad-vortex2) wrote :
Revision history for this message
Simplehuman (simplehuman) wrote :

Raymond, I checked all the outputs with no effect. Or you are asking something else?

Revision history for this message
Raymond (superquad-vortex2) wrote :

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/oxygen?id=e96f38f732d24515792296b3738842934c985539

seem just using AC97 mic1 mic2 but Change the name of the control

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-input-mic.conf

you need to add Mic Source, Mic, Front Panel similar to Mic Select, Mic 1 and Mic 2 in those pulseaudio input confs

Some AC'97s have "Mic Select" and "Mic Boost (+20dB)"

[Element Mic Select]
enumeration = select

[Option Mic Select:Mic1]
name = input-microphone
priority = 20

[Option Mic Select:Mic2]
name = input-microphone
priority = 19

[Element Mic Boost (+20dB)]
switch = select
volume = merge

[Option Mic Boost (+20dB):on]
name = input-boost-on

[Option Mic Boost (+20dB):off]
name = input-boost-off

Revision history for this message
Simplehuman (simplehuman) wrote :

In this conf /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf ?

Like this?

[Element Mic Select]
enumeration = select

[Element Mic Source]
enumeration = select

[Option Mic Select:Mic1]
name = input-microphone
priority = 20

[Option Mic Select:Mic]
name = input-microphone
priority = 20

[Option Mic Select:Mic2]
name = input-microphone
priority = 19

[Option Mic Select:Front Panel]
name = input-microphone
priority = 19

[Element Mic Boost (+20dB)]
switch = select
volume = merge

[Option Mic Boost (+20dB):on]
name = input-boost-on

[Option Mic Boost (+20dB):off]
name = input-boost-off

Revision history for this message
Raymond (superquad-vortex2) wrote :

you have to use Mic Source

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-input.conf.common

however front panel seem not a defined name for input

and you just have three capture switches instead of capture source control for selecting Mic, line and aux

in virtualbox with enumulated AC97 codes, sound preference show micrphone1 ,microphone2 and the other AC97 inputs such as aux, video, CD and line in

Revision history for this message
Simplehuman (simplehuman) wrote :

So I need to change "Mic Select" to "Mic Source" in analog-input-mic.conf ?

Revision history for this message
Raymond (superquad-vortex2) wrote :

how do this driver allow you to select capture source?

do the control allow you to turn ON more than one input capture switch at same time ?

SImple mixer control 'Line',0
  Capabilities: cswitch cswitch-joined penum
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Mic',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined penum
  Capture channels: Mono
  Limits: Capture 0 - 31
  Mono: Capture 31 [100%] [12.00dB] [on]

Simple mixer control 'Aux',0
  Capabilities: cvolume cswitch cswitch-joined penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 0 [0%] [-34.50dB] [off]
  Front Right: Capture 0 [0%] [-34.50dB] [off]

Revision history for this message
Raymond (superquad-vortex2) wrote :

the following are normal AC97 capture controls , the driver can be customised to remove some unused input sources

control.20 {
   iface MIXER
   name 'Capture Source'
   value.0 Mic
   value.1 Mic
   comment {
    access 'read write'
    type ENUMERATED
    count 2
    item.0 Mic
    item.1 CD
    item.2 Video
    item.3 Aux
    item.4 Line
    item.5 Mix
    item.6 'Mix Mono'
    item.7 Phone
   }
  }
  control.21 {
   iface MIXER
   name 'Capture Switch'
   value.0 false
   value.1 false
   comment {
    access 'read write'
    type BOOLEAN
    count 2
   }
  }
  control.22 {
   iface MIXER
   name 'Capture Volume'
   value.0 13
   value.1 13
   comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 15'
    dbmin 0
    dbmax 2250
    dbvalue.0 1950
    dbvalue.1 1950
   }
  }

  control.24 {
   iface MIXER
   name 'Mic Select'
   value Mic1
   comment {
    access 'read write'
    type ENUMERATED
    count 1
    item.0 Mic1
    item.1 Mic2
   }
  }

Revision history for this message
Raymond (superquad-vortex2) wrote :

pactl list of sound card with AC97 codec

 alsa.components = "AC97a:41445374"
  module-udev-detect.discovered = "1"
  device.icon_name = "audio-card-pci"
 ports:
  analog-input-microphone;input-microphone-1: Microphone / Microphone 1 (priority 8720, available: unknown)
   properties:

  analog-input-microphone;input-microphone-2: Microphone / Microphone 2 (priority 8719, available: unknown)
   properties:

  analog-input-linein: Line In (priority 8100, available: unknown)
   properties:

  analog-input: Analog Input (priority 8000, available: unknown)
   properties:

  analog-input-video: Video (priority 7000, available: unknown)
   properties:

 active port: <analog-input-microphone;input-microphone-1>

Revision history for this message
Raymond (superquad-vortex2) wrote :

[Element Mic Source]
 enumeration = select

[Option Mic Source:Mic]
 name = input-microphone
 priority = 20

[Option Mic Source:Front Panel]
 name = input-microphone
 priority = 19

Revision history for this message
Raymond (superquad-vortex2) wrote :

Simple mixer control 'Mic Boost (+20dB)',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [off]

it is a bug of alsa lib/driver to regard this switch as pswitch since this affect both playback and capture

Revision history for this message
Simplehuman (simplehuman) wrote :

> do the control allow you to turn ON more than one input capture switch at same time ?
as I understand it don't allow it

It is really hard to understand everything in your comments for me, because I am not so well versed in this. I am just affected with this bug and want it to be fixed. I can give any information and do any tests that you ask if you give me instructions for it. At the moment I don't understand correctly what are you asking me to do

Changed in pulseaudio (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Raymond (superquad-vortex2) wrote :

Simple mixer control 'Mic Source',0
  Capabilities: cenum
  Items: 'Mic Jack' 'Front Panel'
  Item0: 'Mic Jack'

how about

amixer -c 0 cset name='Mic Source' 'Front Panel'

Revision history for this message
Simplehuman (simplehuman) wrote :

> how about

amixer -c 0 cset name='Mic Source' 'Front Panel'

Well... better late than never... :)

$ amixer -c 0 cset name='Mic Source' 'Front Panel'
amixer: Cannot find the given element from control hw:0

Updated description and tags.

description: updated
tags: added: vivid wily xenial
removed: raring utopic
Revision history for this message
Raymond (superquad-vortex2) wrote :

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/oxygen?id=e96f38f732d24515792296b3738842934c985539

ether change the name of the control of the driver from "Mic Source" to "Mic Select" and "Front Panel" to "Front Mic"

or

add "Mic Source" similar to "Mic Select" in pulseaudio conf files

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths

Revision history for this message
Simplehuman (simplehuman) wrote :

$ amixer -c 0 cset name='Mic Select' 'Front Mic'
amixer: Cannot find the given element from control hw:0

I found Mic Select only in /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf . If this is a correct file, then there are this lines:

;;; Some AC'97s have "Mic Select" and "Mic Boost (+20dB)"

[Element Mic Select]
enumeration = select

[Option Mic Select:Mic1]
name = input-microphone
priority = 20

[Option Mic Select:Mic2]
name = input-microphone
priority = 19

Added:

[Element Mic Source]
enumeration = select

[Option Mic Source:Mic1]
name = input-microphone
priority = 20

[Option Mic Source:Mic2]
name = input-microphone
priority = 19

It didn't change anything after PulseAudio restart. I'm doing it right?

Revision history for this message
Simplehuman (simplehuman) wrote :

Here is mine amixer output:

$ amixer
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 135 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB] [on]
  Front Right: Playback 255 [100%] [0.00dB] [on]
Simple mixer control 'Headphones Impedance',0
  Capabilities: penum
  Items: '< 32 ohms' '32-64 ohms' '64-300 ohms' '300-600 ohms'
  Item0: '< 32 ohms'
Simple mixer control 'Line',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Mic',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 31
  Mono: Capture 31 [100%] [12.00dB] [on]
Simple mixer control 'Mic Boost (+20dB)',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Mic Source',0
  Capabilities: cenum
  Items: 'Mic Jack' 'Front Panel'
  Item0: 'Mic Jack'
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Loopback',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Validity Check',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Aux',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 0 [0%] [-34.50dB] [off]
  Front Right: Capture 0 [0%] [-34.50dB] [off]
Simple mixer control 'Analog Input Monitor',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 1
  Mono: Playback 1 [100%] [0.00dB] [off]
Simple mixer control 'Analog Output',0
  Capabilities: enum
  Items: 'Speakers' 'Headphones' 'FP Headphones'
  Item0: 'Speakers'
Simple mixer control 'DAC Filter',0
  Capabilities: penum
  Items: 'Sharp Roll-off' 'Slow Roll-off'
  Item0: 'Sharp Roll-off'
Simple mixer control 'Digital Input Monitor',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 1
  Mono: Playback 1 [100%] [0.00dB] [off]

Revision history for this message
Raymond (superquad-vortex2) wrote :
Revision history for this message
Simplehuman (simplehuman) wrote :

Please, be more specific. I have almost no experience in configuring PulseAudio. What exactly you want me to do? It is really hard to understand :)

Revision history for this message
David Henningsson (diwic) wrote :

Start alsamixer from a terminal.
You might need to press F6 to select the Xonar sound card, then F4 to see recording controls.
Use arrow keys to find a control named "Mic Source" and change it from "Mic Jack" to "Front Panel". Does this enable recording for you?

Revision history for this message
Simplehuman (simplehuman) wrote :

David Henningsson (diwic) , yes, thanks. Mic is working now from front panel. Is there a way to fix this bug? For ex. add this option to Ubuntu sound settings?

description: updated
Revision history for this message
David Henningsson (diwic) wrote :

Could you try the following:

Edit this file:
 /usr/share/pulseaudio/alsa-mixer/paths/analog-input-front-mic.conf

And add these lines:

[Element Mic Source]
enumeration = select

[Option Mic Source:Front Mic]
name = analog-input-microphone-front
required-any = any

Then edit this file:
/usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf

And add these lines:

[Element Mic Source]
enumeration = select

[Option Mic Source:Mic Jack]
name = analog-input-microphone
required-any = any

Now reboot your computer (or restart PulseAudio).

You should now have a "Front Microphone" representing the front panel mic and a "Microphone" representing the other mic jack (wherever that is, probably on the rear).

I'm also attaching a patch which can be upstreamed once you confirm that this is actually working. Thanks!

Revision history for this message
David Henningsson (diwic) wrote :

Sorry, there's a mistake in the above instruction.
For the /usr/share/pulseaudio/alsa-mixer/paths/analog-input-front-mic.conf file, instead add these lines:

[Element Mic Source]
enumeration = select

[Option Mic Source:Front Panel]
name = analog-input-microphone-front
required-any = any

(Notice how "Front Mic" should say "Front panel" instead.)

Revision history for this message
Simplehuman (simplehuman) wrote :

After restaring PulseAudio by: pulseaudio -k

A new option "Front Mic" in sound settings appeared. But... it is not working. The old option works for Jack source as usual.

Revision history for this message
David Henningsson (diwic) wrote :

@simplehuman: Don't worry about this patch for now, it's just to help me remember to upstream it later.

Revision history for this message
David Henningsson (diwic) wrote :

> A new option "Front Mic" in sound settings appeared. But... it is not working.

Did you see my update in comment #30? It should be "Front Panel", not "Front Mic". After editing, reboot and restart PulseAudio again. Is it still not working?

Revision history for this message
Simplehuman (simplehuman) wrote :

Sure, I saw it. Edited files considering your #30 comment. Not working

tags: added: patch
Revision history for this message
David Henningsson (diwic) wrote :

(Sorry for late answer)

I find it weird that the suggested change does not work; could you submit a pulseaudio verbose log ( https://wiki.ubuntu.com/PulseAudio/Log ) where you select the front mic and try to record from it?

And also, one alsa-info from where pulseaudio fails to set front mic input, and one alsa-info from where you have successfully set it (with alsamixer) and confirmed that the audio recording is working?

Thanks!

Revision history for this message
Simplehuman (simplehuman) wrote :

(I'm sorry too for late answer)

More fresh system install now. Did the same, very carefully. It doesn't work.

Revision history for this message
Simplehuman (simplehuman) wrote :
Revision history for this message
Simplehuman (simplehuman) wrote :
tags: removed: vivid
tags: removed: wily
tags: added: yakkety
summary: - [AV200 - Xonar STX, recording] Microphone is not working on frontpanel
+ [AV200 - Xonar STX, recording] Microphone is not working on front panel
tags: removed: trusty yakkety
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.