[Cirrus7 Nimbus, Realtek ALC892, Pink Line In, Rear] No sound at all

Bug #1216094 reported by andreas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I cannot get a microphone to work (attached to back, pink line-in). I hope all neccessary information is in automated attachment.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.8.0-29.42-generic 3.8.13.5
Uname: Linux 3.8.0-29-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: andreas 2221 F.... pulseaudio
Date: Fri Aug 23 22:06:07 2013
InstallationDate: Installed on 2013-07-08 (46 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaRecordingTest: ALSA recording test through plughw:PCH failed
Symptom_Card: Intern geluid - HDA Intel PCH
Symptom_DevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: andreas 2221 F.... pulseaudio
Symptom_Jack: Pink Line In, Rear
Symptom_Type: No sound at all
Title: [hostname, Realtek ALC892, Pink Line In, Rear] No sound at all
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/29/2013
dmi.bios.vendor: Intel Corp.
dmi.bios.version: KBQ7710H.86A.0051.2013.0329.1350
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: DQ77KB
dmi.board.vendor: Intel Corporation
dmi.board.version: AAG81483-500
dmi.chassis.type: 81
dmi.chassis.vendor: cirrus7 computing
dmi.chassis.version: rev1
dmi.modalias: dmi:bvnIntelCorp.:bvrKBQ7710H.86A.0051.2013.0329.1350:bd03/29/2013:svncirrus7computing:pnnimbus:pvrrev1:rvnIntelCorporation:rnDQ77KB:rvrAAG81483-500:cvncirrus7computing:ct81:cvrrev1:
dmi.product.name: nimbus
dmi.product.version: rev1
dmi.sys.vendor: cirrus7 computing

Revision history for this message
andreas (andreas-demey) wrote :
description: updated
summary: - [hostname, Realtek ALC892, Pink Line In, Rear] No sound at all
+ [Cirrus7 Nimbus, Realtek ALC892, Pink Line In, Rear] No sound at all
Revision history for this message
Raymond (superquad-vortex2) wrote :

do cirrus7 computing specification/user mention that the pink Jack is line in ?

Intel DQ77KB technical specification only has front audio panel connection, green line out and pink Mic jack, speaker connector

MicJack need vref 50 or 80

you can either use hda-analyzer change the pin ctls or hda-jack-retask to retask line in as Mic

it is strange that pin complex 0x12 is internal mic

how many audio jacks in the computer ?

you may need to use hda-jack-sense-test to verify the pin complex

Node 0x18 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Line Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Line Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x02 0x02]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x00003736: IN OUT Detect Trigger
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x01819030: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=03, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26

Node 0x12 [Pin Complex] wcaps 0x400401: Stereo
  Control: name="Mic Phantom Jack", index=0, device=0
  Pincap 0x00000020: IN
  Pin Default 0x90a60140: [Fixed] Mic at Int N/A
    Conn = Digital, Color = Unknown
    DefAssociation = 0x4, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0

Revision history for this message
andreas (andreas-demey) wrote :

@Raymond

Cirrus7 PC manufacturer responded to my question by e-mail (see below).

###start e-mail
thank you for reporting! Can confirm problem with Pink Jack.
Changing VREF from HIZ to 50 with hda-analyze (http://www.alsa-project.org/main/index.php/HDA_Analyzer)
works for me.
Close hda-analyze and choose "no" on last screen
After That I can record with microphone with line-in on pink jack (my headphone has a pink stereo jack)
I'm still having trouble making settings permanent. (After reboot everything is reverted back)
I have a USB Headset, so I never connected a Mic on the pink Jack
It is a multi purpose jack. One can also use it for output ...
###end e-mail

"do cirrus7 computing specification/user mention that the pink Jack is line in ?"
--> so it is a multi purpose jack

"how many audio jacks in the computer ?"
--> The case only has a green line out jack and a pink "multi-purpose" jack. They are both at the back side.

"MicJack need vref 50 or 80"
--> Setting VREF to 50, as suggested in the e-mail helped. However, quality was sub-ideal and changes were not permanent.

"you can either use hda-analyzer change the pin ctls or hda-jack-retask to retask line in as Mic"
--> see solution with hda-analyzer above. I cannot find hda-jack-retask nor hda-jack-sense-test. Some instructions might be helpful.

Any further suggestions?

Revision history for this message
andreas (andreas-demey) wrote :

Perhaps also noteworthy: the issue persists after upgrade to 13.10.

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

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

you can try add hint using early patching to add Line In Jack Mode to allow you to switch between Mic and Line In

or

send email to author to add quirk to adding Line In jack mode only for your cirrus 7 since it also add Headphone jack mode which allow you to switch between Headphone and Line Out

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

- add_jack_modes (bool): add "xxx Jack Mode" enum controls to each
  I/O jack for allowing to change the headphone amp and mic bias VREF
  capabilities

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

you still need to find out how to select switch between ext mic, line in and int mic

 ports:
  analog-input-microphone: Microfoon (priority 8700, latency offset 0 usec, available: unknown)
   properties:
    device.icon_name = "audio-input-microphone"
  analog-input-linein: Lijn-in (priority 8100, latency offset 0 usec, available: yes)
   properties:

 active port: <analog-input-linein>

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

you also need to decide the name of the boost volume if this pin can be switch Line in and Mic

Node 0x18 [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Control: name="Line Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Line Jack", index=0, device=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x02 0x02]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals: [0x80 0x80]
  Pincap 0x00003736: IN OUT Detect Trigger
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x01819030: [Jack] Line In at Ext Rear
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=03, enabled=1
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 5
     0x0c* 0x0d 0x0e 0x0f 0x26

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

normally Line In does not require boost since they usually record at 0dB

so you need to change the name to Mic Boost and keep it at 0 dB when you switch to Line in

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

http://www.cirrus7.com/produkte/cirrus7-nimbus/anschluesse

do it really have internal mic node 0x12 or internal speaker node 0x1a ?

Autoconfig: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
   speaker_outs=1 (0x1a/0x0/0x0/0x0/0x0)
   hp_outs=0 (0x0/0x0/0x0/0x0/0x0)
   mono: mono_out=0x0
   inputs:
     Mic=0x12
     Line=0x18

https://launchpad.net/~diwic/+archive/hda

use hda-jack-retask to remove the internal mic

add hint to the firmware file generated by hda-jack-retask to get the line in jack mode and Line out jack mode switches

[hint]
add_jack_modes = true

Revision history for this message
andreas (andreas-demey) wrote :

Hi Raymond,

A lot of information you provide here. Using hda-jack-retask, I was able to switch from line in to microphone for the pink connector. I don't think there is an internal mic, but removing it with hda-jack-retask trashes the whole audio setup, so I leave it there. It's not an issue anyway.

Your suggestion to hint patching jack modes to be able to switch between line in and mic seems the way to go. However, I haven't got the technical background to do so, I'm affraid.

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

just edit the firmware file generated by hda-jack-retask and add the hint

add_jack_modes to add Mic Jack Mode (Mic and Line in Switching) and Line Out Jack Mode for (Line Out and HP switching)

Early Patching
~~~~~~~~~~~~~~
When CONFIG_SND_HDA_PATCH_LOADER=y is set, you can pass a "patch" as a
firmware file for modifying the HD-audio setup before initializing the
codec. This can work basically like the reconfiguration via sysfs in
the above, but it does it before the first codec configuration.

A patch file is a plain text file which looks like below:

------------------------------------------------------------------------
  [codec]
  0x10ec0892 0x80862036

  [pincfg]
  0x18 0x01a19020

  [hint]
add_jack_modes = true
------------------------------------------------------------------------

The file needs to have a line `[codec]`. The next line should contain
three numbers indicating the codec vendor-id (0x12345678 in the
example), the codec subsystem-id (0xabcd1234) and the address (2) of
the codec. The rest patch entries are applied to this specified codec
until another codec entry is given. Passing 0 or a negative number to
the first or the second value will make the check of the corresponding
field be skipped. It'll be useful for really broken devices that don't
initialize SSID properly.

The `[model]` line allows to change the model name of the each codec.
In the example above, it will be changed to model=auto.
Note that this overrides the module option.

After the `[pincfg]` line, the contents are parsed as the initial
default pin-configurations just like `user_pin_configs` sysfs above.
The values can be shown in user_pin_configs sysfs file, too.

Similarly, the lines after `[verb]` are parsed as `init_verbs`
sysfs entries, and the lines after `[hint]` are parsed as `hints`
sysfs entries, respectively.

The hd-audio driver reads the file via request_firmware(). Thus,
a patch file has to be located on the appropriate firmware path,
typically, /lib/firmware. For example, when you pass the option
`patch=hda-init.fw`, the file /lib/firmware/hda-init.fw must be
present.

The patch module option is specific to each card instance, and you
need to give one file name for each instance, separated by commas.
For example, if you have two cards, one for an on-board analog and one
for an HDMI video board, you may pass patch option like below:
------------------------------------------------------------------------
    options snd-hda-intel patch=on-board-patch,hdmi-patch

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

do nimbus has optical spdif?

http://www.cirrus7.com/produkte/cirrus7-nimbus/leistungsmerkmale

Audio 2x Stereo 3.5mm Klinke, 1x digital optical S/PDIF

http://www.intel.com/content/www/us/en/motherboards/desktop-motherboards/desktop-board-dq77kb.html

in theory , Michael Jack can also be retasked as output to support 4 channels

Intel® High Definition Audio (Intel® HD Audio) subsystem in the following configuration:

> Four-channel (2+2)

Revision history for this message
andreas (andreas-demey) wrote : nimbus: audio connector issues

Dear Felix,

I was able to get the microphone to work as described here:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1216094

Raymond has many comments/suggestions about how to make the pink jack
switchable between mic and line in (and the green between line out and
speakers or headphones).

May I presume this affects many of your customers? So perhaps you could
have a look at this?

Best wishes,
Andreas Demey

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

!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!--------------------------------------------------------

00:1b.0 0403: 8086:1e20 (rev 04)
 Subsystem: 8086:2036

if the PCI SSID cannot idenify it is a product of Cirrus 7

the driver only regard this is a computer using Intel DQ77KB motherboard

http://ark.intel.com/products/59046/Intel-Desktop-Board-DQ77KB

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

Refer to the technical specification of DQ77KB

there is internal speaker header , DMIC header and front audio panel header

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

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