Codec + Mixer: SigmaTel STAC9221 A1 - card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog] - Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller 8086:27d8 (rev 02) - Speakers work but when connecting the headphones the sound doesn't work - using early white MacBook1,1 in Ubuntu 12.04.1 LTS

Asked by Krzysztof Wolek

Just installed 12.04 on early white MacBook. Speakers work but when connecting the headphones the sound doesn't work.

--2013-01-23 19:57:36-- http://www.alsa-project.org/alsa-info.sh
Resolving www.alsa-project.org (www.alsa-project.org)... 77.48.224.243
Connecting to www.alsa-project.org (www.alsa-project.org)|77.48.224.243|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;hb=refs/heads/build;f=alsa/utils/alsa-info.sh [following]
--2013-01-23 19:57:36-- http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;hb=refs/heads/build;f=alsa/utils/alsa-info.sh
Resolving git.alsa-project.org (git.alsa-project.org)... 77.48.224.243
Connecting to git.alsa-project.org (git.alsa-project.org)|77.48.224.243|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-sh]
Saving to: `alsa-info.sh'

    [ <=> ] 27,785 151K/s in 0.2s

2013-01-23 19:57:37 (151 KB/s) - `alsa-info.sh' saved [27785]

ALSA Information Script v 0.4.61
--------------------------------

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  lsmod
  aplay
  amixer
  alsactl
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See './alsa-info.sh --help' for command line options.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu alsa-driver Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Rijckenberg
Solved:
Last query:
Last reply:
Revision history for this message
Daniel Letzeisen (dtl131) said :
#1

You forgot to provide the link that has your ALSA information.. https://wiki.ubuntu.com/Audio/AlsaInfo

Revision history for this message
Krzysztof Wolek (krzysztof-wolek) said :
#2

dvanced Linux Sound Architecture Driver Version 1.0.24.
 0 [Intel ]: HDA-Intel - HDA Intel
                      HDA Intel at 0x90440000 irq 43
  1: : sequencer
  2: [ 0- 1]: digital audio playback
  3: [ 0- 1]: digital audio capture
  4: [ 0- 0]: digital audio playback
  5: [ 0- 0]: digital audio capture
  6: [ 0- 0]: hardware dependent
  7: [ 0] : control
 33: : timer
00-00: HDA Codec 0
00-00: STAC92xx Analog : STAC92xx Analog : playback 1 : capture 2
00-01: STAC92xx Digital : STAC92xx Digital : playback 1 : capture 1
Client info
  cur clients : 1
  peak clients : 1
  max clients : 192

Client 0 : "System" [Kernel]
  Port 0 : "Timer" (Rwe-)
  Port 1 : "Announce" (R-e-)
Client 14 : "Midi Through" [Kernel]
  Port 0 : "Midi Through Port-0" (RWe-)

Revision history for this message
Krzysztof Wolek (krzysztof-wolek) said :
#3

Sorry.... I'm kind of new to this... here is what I think you asked me for:

http://www.alsa-project.org/db/?f=a36b80c9fb99340b1369246aa31c1e7d2fd2f91e

K

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

!!################################
!!ALSA Information Script v 0.4.61
!!################################

!!Script ran on: Thu Jan 24 00:57:38 UTC 2013

!!Linux Distribution
!!------------------

Ubuntu 12.04.1 LTS \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu precise (12.04.1 LTS)"

!!DMI Information
!!---------------

Manufacturer: Apple Computer, Inc.
Product Name: MacBook1,1
Product Version: 1.0
Firmware Version: MB11.88Z.0061.B03.0610121324

!!Kernel Information
!!------------------

Kernel release: 3.2.0-36-generic-pae
Operating System: GNU/Linux
Architecture: i686
Processor: i686
SMP Enabled: Yes

!!ALSA Version
!!------------

Driver version: 1.0.24
Library version: 1.0.25
Utilities version: 1.0.25

!!Loaded ALSA modules
!!-------------------

snd_hda_intel

!!Sound Servers on this system
!!----------------------------

Pulseaudio:
      Installed - Yes (/usr/bin/pulseaudio)
      Running - Yes

!!Soundcards recognised by ALSA
!!-----------------------------

 0 [Intel ]: HDA-Intel - HDA Intel
                      HDA Intel at 0x90440000 irq 43

!!PCI Soundcards installed in the system
!!--------------------------------------

00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)

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

00:1b.0 0403: 8086:27d8 (rev 02)
 Subsystem: 8384:7680

!!Modprobe options (Sound related)
!!--------------------------------

snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-usb-audio: index=-2
snd-usb-caiaq: index=-2
snd-usb-ua101: index=-2
snd-usb-us122l: index=-2
snd-usb-usx2y: index=-2
snd-cmipci: mpu_port=0x330 fm_port=0x388
snd-pcsp: index=-2
snd-usb-audio: index=-2

!!Loaded sound module options
!!---------------------------

!!Module: snd_hda_intel
 align_buffer_size : Y
 bdl_pos_adj : 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 beep_mode : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
 enable_msi : -1
 id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 patch : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
 position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 power_save : 0
 power_save_controller : Y
 probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
 probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 single_cmd : N
 snoop : Y

!!HDA-Intel Codec information
!!---------------------------
--startcollapse--

Codec: SigmaTel STAC9221 A1
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x83847680
Subsystem Id: 0x106b0a00
Revision Id: 0x103401
No Modem Function Group found
Default PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: ofs=0x00, nsteps=0x0e, stepsize=0x05, mute=1
Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1
GPIO: io=4, o=0, i=0, unsolicited=1, wake=1
  IO[0]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0
  IO[1]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0
  IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
  Control: name="Speaker Playback Volume", index=1, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=63
  Control: name="Speaker Playback Switch", index=1, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: N/A
  Amp-Out vals: [0xf3 0xf3]
  Converter: stream=8, channel=0
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=63
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="STAC92xx Analog", type="Audio", device=0
  Amp-Out caps: N/A
  Amp-Out vals: [0x73 0x73]
  Converter: stream=8, channel=0
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
  Amp-Out caps: N/A
  Amp-Out vals: [0xff 0xff]
  Converter: stream=0, channel=0
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out R/L
  Amp-Out caps: N/A
  Amp-Out vals: [0xff 0xff]
  Converter: stream=0, channel=0
  Power: setting=D0, actual=D0
  Delay: 13 samples
Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo
  Device: name="STAC92xx Analog", type="Audio", device=0
  Converter: stream=4, channel=0
  SDI-Select: 0
  Power: setting=D0, actual=D0
  Delay: 13 samples
  Connection: 1
     0x17
  Processing caps: benign=0, ncoeff=0
Node 0x07 [Audio Input] wcaps 0x1d0541: Stereo
  Converter: stream=0, channel=0
  SDI-Select: 0
  Power: setting=D0, actual=D0
  Delay: 13 samples
  Connection: 1
     0x18
  Processing caps: benign=0, ncoeff=0
Node 0x08 [Audio Output] wcaps 0x40211: Stereo Digital
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Control: name="IEC958 Default PCM Playback Switch", index=0, device=0
  Device: name="STAC92xx Digital", type="SPDIF", device=1
  Converter: stream=8, channel=0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x7e0]: 44100 48000 88200 96000 176400 192000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Delay: 4 samples
Node 0x09 [Audio Input] wcaps 0x140311: Stereo Digital
  Device: name="STAC92xx Digital", type="SPDIF", device=1
  Converter: stream=0, channel=0
  SDI-Select: 0
  Digital:
  Digital category: 0x0
  PCM:
    rates [0x160]: 44100 48000 96000
    bits [0xe]: 16 20 24
    formats [0x5]: PCM AC3
  Delay: 4 samples
  Connection: 1
     0x11
Node 0x0a [Pin Complex] wcaps 0x400181: Stereo
  Control: name="Headphone Jack", index=0, device=0
  Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x0321e21f: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = White
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP VREF_HIZ
  Unsolicited: tag=01, enabled=1
  Connection: 1
     0x02
Node 0x0b [Pin Complex] wcaps 0x400181: Stereo
  Control: name="Mic Jack Mode", index=0, device=0
    ControlAmp: chs=0, dir=In, idx=0, ofs=0
  Control: name="Mic Jack", index=0, device=0
  Pincap 0x00001737: IN OUT Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x03a1e02e: [Jack] Mic at Ext Left
    Conn = 1/8, Color = White
    DefAssociation = 0x2, Sequence = 0xe
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Connection: 1
     0x04
Node 0x0c [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x00001737: IN OUT Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x9017e110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = White
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x03
Node 0x0d [Pin Complex] wcaps 0x400181: Stereo
  Pincap 0x0000173f: IN OUT HP Detect Trigger ImpSense
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x9017e11f: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = White
    DefAssociation = 0x1, Sequence = 0xf
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x02
Node 0x0e [Pin Complex] wcaps 0x400081: Stereo
  Pincap 0x00000024: IN Detect
  Pin Default 0x400000fe: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0xe
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
Node 0x0f [Pin Complex] wcaps 0x400181: Stereo
  Control: name="Line Jack", index=0, device=0
  Pincap 0x00000037: IN OUT Detect Trigger ImpSense
  Pin Default 0x0381e020: [Jack] Line In at Ext Left
    Conn = 1/8, Color = White
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x20: IN
  Unsolicited: tag=03, enabled=1
  Connection: 1
     0x05
Node 0x10 [Pin Complex] wcaps 0x400301: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x1345e230: [Jack] SPDIF Out at Int Left
    Conn = Optical, Color = White
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x40: OUT
  Connection: 3
     0x08* 0x17 0x19
Node 0x11 [Pin Complex] wcaps 0x430681: Stereo Digital
  Control: name="SPDIF In Jack", index=0, device=0
  Pincap 0x00010024: IN EAPD Detect
  EAPD 0x0:
  Pin Default 0x13c5e240: [Jack] SPDIF In at Int Left
    Conn = Optical, Color = White
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x20: IN
  Unsolicited: tag=04, enabled=1
  Power: setting=D0, actual=D0
  Delay: 3 samples
Node 0x12 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Control: name="Mux Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
  Amp-Out vals: [0x00 0x00]
  Connection: 7
     0x0e 0x15 0x0f 0x0b* 0x0c 0x0d 0x0a
Node 0x13 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out
  Control: name="Mux Capture Volume", index=1, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=0
  Amp-Out vals: [0x00 0x00]
  Connection: 7
     0x0e 0x15 0x0f 0x0b* 0x0c 0x0d 0x0a
Node 0x14 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
  Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0
  Amp-Out vals: [0x00]
Node 0x15 [Pin Complex] wcaps 0x400001: Stereo
  Pincap 0x00000020: IN
  Pin Default 0x400000fc: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0xc
  Pin-ctls: 0x00:
Node 0x16 [Volume Knob Widget] wcaps 0x600000: Mono
  Volume-Knob: delta=1, steps=127, direct=1, val=127
  Connection: 4
     0x02 0x03 0x04 0x05
Node 0x17 [Audio Selector] wcaps 0x300903: Stereo Amp-In R/L
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: N/A
  Amp-In vals: [0x0d 0x0d]
  Connection: 1
     0x12
Node 0x18 [Audio Selector] wcaps 0x300903: Stereo Amp-In R/L
  Control: name="Capture Volume", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=1, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: N/A
  Amp-In vals: [0x80 0x80]
  Connection: 1
     0x13
Node 0x19 [Vendor Defined Widget] wcaps 0xf30201: Stereo Digital
  Delay: 3 samples
Node 0x1a [Audio Output] wcaps 0x30201: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  Delay: 3 samples
Node 0x1b [Pin Complex] wcaps 0x400301: Stereo Digital
  Pincap 0x00000010: OUT
  Pin Default 0x400000fb: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0xb
  Pin-ctls: 0x00:
  Connection: 1
     0x1a
--endcollapse--

!!ALSA Device nodes
!!-----------------

crw-rw---T 1 root audio 116, 7 Jan 23 19:35 /dev/snd/controlC0
crw-rw---T 1 root audio 116, 6 Jan 23 19:35 /dev/snd/hwC0D0
crw-rw---T 1 root audio 116, 5 Jan 23 19:35 /dev/snd/pcmC0D0c
crw-rw---T 1 root audio 116, 4 Jan 23 19:35 /dev/snd/pcmC0D0p
crw-rw---T 1 root audio 116, 3 Jan 23 19:35 /dev/snd/pcmC0D1c
crw-rw---T 1 root audio 116, 2 Jan 23 19:35 /dev/snd/pcmC0D1p
crw-rw---T 1 root audio 116, 1 Jan 23 19:35 /dev/snd/seq
crw-rw---T 1 root audio 116, 33 Jan 23 19:35 /dev/snd/timer

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 60 Jan 23 19:35 .
drwxr-xr-x 3 root root 220 Jan 23 19:35 ..
lrwxrwxrwx 1 root root 12 Jan 23 19:35 pci-0000:00:1b.0 -> ../controlC0

!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC92xx Digital [STAC92xx Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ARECORD

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

!!Amixer output
!!-------------

!!-------Mixer controls for card 0 [Intel]

Card hw:0 'Intel'/'HDA Intel at 0x90440000 irq 43'
  Mixer name : 'SigmaTel STAC9221 A1'
  Components : 'HDA:83847680,106b0a00,00103401'
  Controls : 25
  Simple ctrls : 13
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 52 [81%] [-9.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [on]
  Front Right: Playback 64 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',1
  Capabilities: pvolume pswitch penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 64 [100%] [0.00dB] [off]
  Front Right: Playback 64 [100%] [0.00dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic Jack Mode',0
  Capabilities: enum
  Items: 'Mic In' 'Line In'
  Item0: 'Mic In'
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined penum
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 14
  Front Left: Capture 13 [93%] [19.50dB] [on]
  Front Right: Capture 13 [93%] [19.50dB] [on]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 14
  Front Left: Capture 0 [0%] [0.00dB] [off]
  Front Right: Capture 0 [0%] [0.00dB] [off]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Mic' 'Line'
  Item0: 'Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Mic' 'Line'
  Item0: 'Mic'
Simple mixer control 'Mux',0
  Capabilities: cvolume penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 2
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]
Simple mixer control 'Mux',1
  Capabilities: cvolume penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 4
  Front Left: Capture 0 [0%] [0.00dB]
  Front Right: Capture 0 [0%] [0.00dB]

!!Alsactl output
!!--------------

--startcollapse--
state.Intel {
 control.1 {
  iface MIXER
  name 'Speaker Playback Volume'
  value.0 64
  value.1 64
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 64'
   dbmin -4800
   dbmax 0
   dbvalue.0 0
   dbvalue.1 0
  }
 }
 control.2 {
  iface MIXER
  name 'Speaker Playback Switch'
  value.0 true
  value.1 true
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.3 {
  iface MIXER
  name 'Speaker Playback Volume'
  index 1
  value.0 64
  value.1 64
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 64'
   dbmin -4800
   dbmax 0
   dbvalue.0 0
   dbvalue.1 0
  }
 }
 control.4 {
  iface MIXER
  name 'Speaker Playback Switch'
  index 1
  value.0 false
  value.1 false
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.5 {
  iface MIXER
  name 'Mic Jack Mode'
  value 'Mic In'
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 'Mic In'
   item.1 'Line In'
  }
 }
 control.6 {
  iface MIXER
  name 'Capture Volume'
  value.0 13
  value.1 13
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 14'
   dbmin 0
   dbmax 2100
   dbvalue.0 1950
   dbvalue.1 1950
  }
 }
 control.7 {
  iface MIXER
  name 'Capture Switch'
  value.0 true
  value.1 true
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.8 {
  iface MIXER
  name 'Capture Volume'
  index 1
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 14'
   dbmin 0
   dbmax 2100
   dbvalue.0 0
   dbvalue.1 0
  }
 }
 control.9 {
  iface MIXER
  name 'Capture Switch'
  index 1
  value.0 false
  value.1 false
  comment {
   access 'read write'
   type BOOLEAN
   count 2
  }
 }
 control.10 {
  iface MIXER
  name 'Mux Capture Volume'
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 2'
   dbmin 0
   dbmax 2000
   dbvalue.0 0
   dbvalue.1 0
  }
 }
 control.11 {
  iface MIXER
  name 'Mux Capture Volume'
  index 1
  value.0 0
  value.1 0
  comment {
   access 'read write'
   type INTEGER
   count 2
   range '0 - 4'
   dbmin 0
   dbmax 4000
   dbvalue.0 0
   dbvalue.1 0
  }
 }
 control.12 {
  iface MIXER
  name 'Input Source'
  value Mic
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 Mic
   item.1 Line
  }
 }
 control.13 {
  iface MIXER
  name 'Input Source'
  index 1
  value Mic
  comment {
   access 'read write'
   type ENUMERATED
   count 1
   item.0 Mic
   item.1 Line
  }
 }
 control.14 {
  iface MIXER
  name 'IEC958 Playback Con Mask'
  value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access read
   type IEC958
   count 1
  }
 }
 control.15 {
  iface MIXER
  name 'IEC958 Playback Pro Mask'
  value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access read
   type IEC958
   count 1
  }
 }
 control.16 {
  iface MIXER
  name 'IEC958 Playback Default'
  value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
  comment {
   access 'read write'
   type IEC958
   count 1
  }
 }
 control.17 {
  iface MIXER
  name 'IEC958 Playback Switch'
  value false
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.18 {
  iface MIXER
  name 'IEC958 Default PCM Playback Switch'
  value true
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.19 {
  iface MIXER
  name 'Master Playback Volume'
  value 52
  comment {
   access 'read write'
   type INTEGER
   count 1
   range '0 - 64'
   dbmin -9999999
   dbmax 0
   dbvalue.0 -900
  }
 }
 control.20 {
  iface MIXER
  name 'Master Playback Switch'
  value true
  comment {
   access 'read write'
   type BOOLEAN
   count 1
  }
 }
 control.21 {
  iface CARD
  name 'Headphone Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.22 {
  iface CARD
  name 'Mic Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.23 {
  iface CARD
  name 'Line Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.24 {
  iface CARD
  name 'SPDIF In Jack'
  value false
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }
 control.25 {
  iface MIXER
  name 'PCM Playback Volume'
  value.0 255
  value.1 255
  comment {
   access 'read write user'
   type INTEGER
   count 2
   range '0 - 255'
   tlv '0000000100000008ffffec1400000014'
   dbmin -5100
   dbmax 0
   dbvalue.0 0
   dbvalue.1 0
  }
 }
}
--endcollapse--

!!All Loaded Modules
!!------------------

Module
snd_hda_codec_idt
btusb
joydev
snd_hda_intel
hid_apple
snd_hda_codec
snd_hwdep
snd_pcm
snd_seq_midi
snd_rawmidi
arc4
applesmc
isight_firmware
snd_seq_midi_event
input_polldev
snd_seq
usbhid
appletouch
ath5k
snd_timer
ath
snd_seq_device
hid
tpm_infineon
mac80211
i915
cfg80211
apple_bl
snd
mac_hid
drm_kms_helper
drm
soundcore
snd_page_alloc
i2c_algo_bit
video
rfcomm
bnep
parport_pc
bluetooth
ppdev
lp
parport
firewire_ohci
firewire_core
crc_itu_t
sky2

!!Sysfs Files
!!-----------

/sys/class/sound/hwC0D0/init_pin_configs:
0x0a 0x0101e022
0x0b 0x90afe112
0x0c 0x9017e121
0x0d 0x4180e100
0x0e 0x41f0e032
0x0f 0x0181e031
0x10 0x1145f023
0x11 0x11c5c032
0x15 0x4180e100
0x1b 0x4180e100

/sys/class/sound/hwC0D0/driver_pin_configs:
0x0a 0x0321e21f
0x0b 0x03a1e02e
0x0c 0x9017e110
0x0d 0x9017e11f
0x0e 0x400000fe
0x0f 0x0381e020
0x10 0x1345e230
0x11 0x13c5e240
0x15 0x400000fc
0x1b 0x400000fb

/sys/class/sound/hwC0D0/user_pin_configs:

/sys/class/sound/hwC0D0/init_verbs:

!!ALSA/HDA dmesg
!!--------------

[ 19.702778] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[ 19.702877] snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[ 19.702974] snd_hda_intel 0000:00:1b.0: irq 43 for MSI/MSI-X
[ 19.703027] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
[ 19.735456] init: plymouth-splash main process (1082) terminated with status 1
[ 19.770265] hda_codec: STAC922x, Apple subsys_id=106b0a00
[ 19.779422] init: gdm main process (1087) killed by TERM signal
[ 19.781234] input: HDA Intel SPDIF In as /devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 19.781561] input: HDA Intel Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input13
[ 19.781741] input: HDA Intel Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input14
[ 19.781921] input: HDA Intel Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input15
[ 21.365521] cfg80211: Found new beacon on frequency: 5745 MHz (Ch 149) on phy0

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Run:

gksudo gedit /etc/modprobe.d/alsa-base.conf

add these 2 lines:

install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS && /lib/alsa/modprobe-post-install snd-hda-intel

Save the new file, close gedit and reboot

Source:
https://help.ubuntu.com/community/MacBook1-1/Hardy

Revision history for this message
Daniel Letzeisen (dtl131) said :
#7

@actionparsnip: you should read the page again. The fix you're proposing solves a different issue.

The issue may be that you have the wrong output selected in the sound settings. This bug sounds similar: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1030466

Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#8

Please first use the Terminal app called alsamixer to UNMUTE and INCREASE
volume to 100% on the following channels:

Simple mixer control 'Speaker',1
Simple mixer control 'IEC958',0
Simple mixer control 'Mux',0
Simple mixer control 'Mux',1

Use the M key to switch between mute/unmute states and use the arrow keys to increase volume.

MM = muted
00 = unmuted

Then retest all audio jacks at the back of your motherboard using headphones.

Please try this procedure if the sound issue presists:

Step 1: Open Terminal

Step 2: Run the following command (copy/paste command into the Terminal
and then hit <enter>)

gksudo gedit /etc/modprobe.d/alsa-base.conf

In the gedit editor, scroll down to the last lines of the alsa-base.conf
file and add these 2 lines to the end of the alsa-base.conf file (with
the file open inside the gedit editor!):

alias snd-card-0 snd-hda-intel
options snd-hda-intel model=macbook-pro-v1

Step 3: Reboot pc and retest sound using both headphones and speakers.

Step 4: If sound is still not working after a reboot, replace the
macbook-pro-v1 model option with one of the options below and then REBOOT
and retest sound output again on each audio jack at the back of your motherboard.

STAC9220/9221
=============
  ref Reference board
  3stack D945 3stack
  5stack D945 5stack + SPDIF
  intel-mac-v1 Intel Mac Type 1
  intel-mac-v2 Intel Mac Type 2
  intel-mac-v3 Intel Mac Type 3
  intel-mac-v4 Intel Mac Type 4
  intel-mac-v5 Intel Mac Type 5
  intel-mac-auto Intel Mac (detect type according to subsystem id)
  macmini Intel Mac Mini (equivalent with type 3)
  macbook Intel Mac Book (eq. type 5)
  macbook-pro-v1 Intel Mac Book Pro 1st generation (eq. type 3)
  macbook-pro Intel Mac Book Pro 2nd generation (eq. type 3)
  imac-intel Intel iMac (eq. type 2)
  imac-intel-20 Intel iMac (newer version) (eq. type 3)
  ecs202 ECS/PC chips
  dell-d81 Dell (unknown)
  dell-d82 Dell (unknown)
  dell-m81 Dell (unknown)
  dell-m82 Dell XPS M1210
  auto BIOS setup (default)

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#9

Also check the "sound settings" and at section "Output" see if the "Connector" is set to "Headphones".

Check the "Hardware" section too , and see if is set to "Analog Stereo Duplex".

Thanks

Revision history for this message
Krzysztof Wolek (krzysztof-wolek) said :
#10

Thanks Mark Rijckenberg, that solved my question.

Revision history for this message
Krzysztof Wolek (krzysztof-wolek) said :
#11

Just a quick follow up.... Mark Rijckenberg's solution with setting alsamixer value on headophones to unmute helped. However... it seems to me that the there is something wrong with the switch settings... when I unplug the headphones the headphones line is still active (I can't hear it because nothing is really pluged in but I can see it on alsamixer... It doesn't really bother me, but I wonder if the headphones like shoud be set to muted when speakers are on....
Once again... help from all was greatly appreciated