No S/PDIF sound from speakers, headphones OK, Trusty on iMac 14,4

Asked by Ed Hughes

No sound from internal speakers but OK from plugged in headphones. Running Xubuntu 14.04 on partitioned iMac 14,4 which has Intel HD Audio (S/PDIF DigitalAudio output). Headphones appear to be using analogue output. Both loud and clear using OSX 10.9.4.
Have tried all fixes found on many Linux distro websites but no success. Also tried installing Lubuntu (no sound at all) Linux Mint 16 & 17 and Ubuntu 13.04, 13.10 (same problem as Xubuntu).
Have all PulseAudio utils installed, all devices are listed but only analogue volume meter shows outputs when playing but as above nothing from speakers.
AlsaMixer shows S/PDIF (highlighted), SPDIF 1 & S/PDIF 2 not MM, set at 00 but cannot be adjusted.
What is the problem? I sense there is a simple solution here, if only to ger the analogue output via the internal speakers.
This is reminiscent of problemsI I had with Unbuntu 12.04 on an earlier iMac which were solved simply using AlsaMixer.
That I have installed Ubuntu on my new iMac shows how much I prefer Linux to OSX, this small problem is spoiling my enjoyment of your great OS.
Thank you in anticipation.
Ed Hughes

Question information

Language:
English Edit question
Status:
Needs information
For:
Ubuntu alsa-driver Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh && chmod +x ./alsa-info.sh && ./alsa-info.sh --upload

Thanks

Revision history for this message
Ed Hughes (edwardhughes863) said :
#2

Thanks for prompt response, not sure I've done what you requested but I
the output files are attached:
I'm getting a little out of my depth!
Ed
On 03/08/14 10:07, Ed Hughes wrote:
> New question #252554 on alsa-driver in Ubuntu:
> https://answers.launchpad.net/ubuntu/+source/alsa-driver/+question/252554
>
> No sound from internal speakers but OK from plugged in headphones. Running Xubuntu 14.04 on partitioned iMac 14,4 which has Intel HD Audio (S/PDIF DigitalAudio output). Headphones appear to be using analogue output. Both loud and clear using OSX 10.9.4.
> Have tried all fixes found on many Linux distro websites but no success. Also tried installing Lubuntu (no sound at all) Linux Mint 16 & 17 and Ubuntu 13.04, 13.10 (same problem as Xubuntu).
> Have all PulseAudio utils installed, all devices are listed but only analogue volume meter shows outputs when playing but as above nothing from speakers.
> AlsaMixer shows S/PDIF (highlighted), SPDIF 1 & S/PDIF 2 not MM, set at 00 but cannot be adjusted.
> What is the problem? I sense there is a simple solution here, if only to ger the analogue output via the internal speakers.
> This is reminiscent of problemsI I had with Unbuntu 12.04 on an earlier iMac which were solved simply using AlsaMixer.
> That I have installed Ubuntu on my new iMac shows how much I prefer Linux to OSX, this small problem is spoiling my enjoyment of your great OS.
> Thank you in anticipation.
> Ed Hughes
>

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

Replying to the automated email and attaching any file doesn't work. All you have to do is copy and paste the text from this website to a terminal (nothing too hard there) and hit ENTER (I'm quite sure you can do that). A URL will be generated, copy and paste that as an update on
https://answers.launchpad.net/ubuntu/+source/alsa-driver/+question/252554

Is copying and pasting text "out of your depth"?

Revision history for this message
Paul (pauldast-i) said :
#4

I have the same issue on an iMac 14,2. I think the audio hardware in the iMac 14,2 and 14,4 is probably the same. To get the headphones to work I upgraded to the daily ALSA snapshot found here: https://code.launchpad.net/~ubuntu-audio-dev/+archive/ubuntu/alsa-daily/+packages
Neither the headphones or the internal speakers work with the default configuration so I did this: # echo "options snd-hda-intel model=imac27_122" >> /etc/modprobe.d/imac_local.conf followed by a reboot. This fix works on every other Mac I have tested so far, but for this machine it only fixes the headphone audio. The output of alsa-info.sh is here: http://www.alsa-project.org/db/?f=08cf13552b70232c96fea9293fdd54066243d79a I have downloaded the HDA Analyzer tool but I can't seem to get the internal speakers to work correctly in any consistent way, although they do occasionally work correctly for a few seconds. I can consistently make sound come from the speakers if I chose VREF = 50 or 80 in Node[0x0d]pin but it sounds like I am using a much smaller lower quality speaker when I do that. Here is the text dump for that node configuration:

Node 0x0d [Pin Complex] wcaps 0x41048b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals: [0x00 0x00]
  Pincap 0x00001764: IN Detect Balance
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0xf, Sequence = 0x0
  Unsolicited: tag=0x00, enabled=0
  Power: setting=D0, actual=D0
  Delay: 1 samples

The audio related parts of the output of # sudo lspci -vvnn is:

00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)
 Subsystem: Intel Corporation Device [8086:7270]
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0, Cache Line Size: 256 bytes
 Interrupt: pin A routed to IRQ 51
 Region 0: Memory at b1c10000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: [50] Power Management version 2
  Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
  Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
 Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
  Address: 00000000fee003f8 Data: 0000
 Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00
  DevCap: MaxPayload 128 bytes, PhantFunc 0
   ExtTag- RBE-
  DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
   RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
   MaxPayload 128 bytes, MaxReadReq 128 bytes
  DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
 Capabilities: [100 v1] Virtual Channel
  Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
  Arb: Fixed- WRR32- WRR64- WRR128-
  Ctrl: ArbSelect=Fixed
  Status: InProgress-
  VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
   Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
   Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=01
   Status: NegoPending- InProgress-
  VC1: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
   Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
   Ctrl: Enable+ ID=2 ArbSelect=Fixed TC/VC=04
   Status: NegoPending- InProgress-
 Kernel driver in use: snd_hda_intel

01:00.1 Audio device [0403]: NVIDIA Corporation GK104 HDMI Audio Controller [10de:0e0a] (rev a1)
 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0, Cache Line Size: 256 bytes
 Interrupt: pin B routed to IRQ 17
 Region 0: Memory at b1080000 (32-bit, non-prefetchable) [size=16K]
 Capabilities: [60] Power Management version 3
  Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
  Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
 Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
  Address: 0000000000000000 Data: 0000
 Capabilities: [78] Express (v2) Endpoint, MSI 00
  DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s unlimited, L1 <64us
   ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
  DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
   RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
   MaxPayload 256 bytes, MaxReadReq 512 bytes
  DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
  LnkCap: Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <512ns, L1 <4us
   ClockPM+ Surprise- LLActRep- BwNot-
  LnkCtl: ASPM L0s L1 Enabled; RCB 64 bytes Disabled- CommClk+
   ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
  LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
  DevCap2: Completion Timeout: Range AB, TimeoutDis+, LTR-, OBFF Not Supported
  DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
  LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+, EqualizationPhase1+
    EqualizationPhase2+, EqualizationPhase3+, LinkEqualizationRequest+
 Kernel driver in use: snd_hda_intel

Can you help with this problem?

Provide an answer of your own, or ask Ed Hughes for more information if necessary.

To post a message you must log in.