Switch between microphones in Ubuntu 13.04

Bug #1263915 reported by Ionică Bizău
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I want to record sounds from my piano. For this I have a jack cable that connects the piano with my laptop.

My laptop has an built-in microphone that I don't want to use it when recording from my keyboard.

So, I connected my piano with the laptop by jack cable.

I can hear the piano sounds but Audacity records the internal microphone sounds.

If I connect a microphone instead of piano, I can record the microphone sounds using Audacity.

`pactl list sources` outputs this in the `Ports` section:

### Case 1

Piano is connected:

    analog-input-microphone-internal: Internal Microphone (priority: 8900)
    analog-input-microphone: Microphone (priority: 8700, not available)

### Case 2

An external microphone is connected:

    analog-input-microphone-internal: Internal Microphone (priority: 8900, not available)
    analog-input-microphone: Microphone (priority: 8700, available)

How can I record the piano sounds?

tags: added: piano
tags: added: pian
removed: piano
tags: removed: pian
Revision history for this message
Raymond (superquad-vortex2) wrote :
Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Ionică Bizău (bizauionica) wrote :
Changed in alsa-driver (Ubuntu):
status: Incomplete → New
Revision history for this message
Raymond (superquad-vortex2) wrote :

do your laptop have Headphone out/Mic-in Combo x 1

or

headphone jack and microphone jack ?

do your laptop support headphone (TRS) or headset (TRRS) ?

do your laptop support mic jack ?

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Ionică Bizău (bizauionica) wrote :

The microphone and the hadphone jacks are into one jack with 4 pins. I use a splitter to separate them.

The splitter works fine separathing the single jack into two: headphone and microphone jacks.

I connected the headphones to the splitter (the headphone splitter) and the cable that comes from piano into the microphone jack from splitter. I can hear the piano sounds very clear, but I cannot record them.

If I connect a microphone instead of the piano, the laptop captures the microphone sounds (not the internal microphone but the microphone I plugged into the splitter) and it is able to record them.

> do your laptop support mic jack ?

Yes, using the splitter it should work fine...

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

if the Jack is combo headphone / mic jack, need headset Mic hint when you are not using splitter

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/plain/Documentation/sound/alsa/HD-Audio.txt

- auto_mic (bool): enable/disable the mic auto-switch feature; default
  true

 you need to specify hint to disable auto Mic if your splitter cannot set the Mic Jack detection so that the driver create capture source for you to select internal Mic and external Mic

Node 0x18 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x00003734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x03a11840: [Jack] Mic at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x0c* 0x0d

Revision history for this message
Ionică Bizău (bizauionica) wrote :

Can you please give me the clear steps that I have to do (e.g. 1. ..., 2. ... etc)?
I didn't understand what I have to do...

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

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda?id=73bdd597823e2231dc882577dbbaf8df92fe1775

you may need to ask whether there are any vendor specific coefficient verbs for your realtek codec

seem auto_mic cannot be disabled

using hint jack_detect=0 also disable automute

Revision history for this message
Ionică Bizău (bizauionica) wrote :

Where can I find this information from?

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

[Expired for alsa-driver (Ubuntu) because there has been no activity for 60 days.]

Changed in alsa-driver (Ubuntu):
status: Incomplete → Expired
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.