Ubuntu 13.10 [Studio Hybrid 140g, Realtek ALC888, Black Digital Out, HDMI] No sound at all

Bug #1247160 reported by Charles Timms
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The problem I reported regarding no audio/sound over HDMI in Ubuntu 11 series as bug #793592, which was fixed in 12.04 and 12.10, has unfortunately reappeared in Ubuntu 13.10 following a fresh installation.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: alsa-base 1.0.25+dfsg-0ubuntu4
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic i686
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: kitchen 1763 F.... pulseaudio
 /dev/snd/controlC0: kitchen 1763 F.... pulseaudio
Date: Fri Nov 1 17:49:50 2013
InstallationDate: Installed on 2013-11-01 (0 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release i386 (20131016.1)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:Intel failed
Symptom_Card: Built-in Audio - HDA Intel
Symptom_DevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: kitchen 1763 F.... pulseaudio
 /dev/snd/controlC0: kitchen 1763 F.... pulseaudio
Symptom_Jack: Black Digital Out, HDMI
Symptom_Type: No sound at all
Title: [Studio Hybrid 140g, Realtek ALC888, Black Digital Out, HDMI] No sound at all
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/09/2009
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.1.0
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: 0P096C
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: '01'
dmi.modalias: dmi:bvnDellInc.:bvr1.1.0:bd11/09/2009:svnDellInc.:pnStudioHybrid140g:pvr00:rvnDellInc.:rn0P096C:rvrA00:cvnDellInc.:ct3:cvr'01':
dmi.product.name: Studio Hybrid 140g
dmi.product.version: 00
dmi.sys.vendor: Dell Inc.

Revision history for this message
Charles Timms (timms-charles) wrote :
Revision history for this message
Raymond (superquad-vortex2) wrote :

Do your dell studio have HDMI and Optical spdif using the digital output of alc888 ?

Node 0x11 [Pin Complex] wcaps 0x400780: Mono Digital
  Control: name="HDMI Phantom Jack", index=0, device=0
  Pincap 0x00000014: OUT Detect
  Pin Default 0x18561130: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Black
    DefAssociation = 0x3, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x10

Node 0x1e [Pin Complex] wcaps 0x400780: Mono Digital
  Control: name="SPDIF Phantom Jack", index=0, device=0
  Pincap 0x00000014: OUT Detect
  Pin Default 0x01451120: [Jack] SPDIF Out at Ext Rear
    Conn = Optical, Color = Black
    DefAssociation = 0x2, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x06

Revision history for this message
Charles Timms (timms-charles) wrote : Re: [Bug 1247160] Re: Ubuntu 13.10 [Studio Hybrid 140g, Realtek ALC888, Black Digital Out, HDMI] No sound at all

The Dell Studio Hybrid provides HDMI, SP/DIF and analogue connectivity
for sound/audio output.
However, I am only using the HDMI connection of this PC for sound/audio
(and video) output.
Sound/audio over HDMI from the Dell Studio Hybrid used to work with
versions 12.04, 12.10 and 13.04 of Ubuntu but does not work in the
latest 13.10 version. There is no problem with the video.

On 01/11/13 18:26, Raymond wrote:
> Do your dell studio have HDMI and Optical spdif using the digital output
> of alc888 ?
>
>
>
>
> Node 0x11 [Pin Complex] wcaps 0x400780: Mono Digital
> Control: name="HDMI Phantom Jack", index=0, device=0
> Pincap 0x00000014: OUT Detect
> Pin Default 0x18561130: [Jack] Digital Out at Int HDMI
> Conn = Digital, Color = Black
> DefAssociation = 0x3, Sequence = 0x0
> Misc = NO_PRESENCE
> Pin-ctls: 0x40: OUT
> Unsolicited: tag=00, enabled=0
> Power states: D0 D1 D2 D3 EPSS
> Power: setting=D0, actual=D0
> Connection: 1
> 0x10
>
> Node 0x1e [Pin Complex] wcaps 0x400780: Mono Digital
> Control: name="SPDIF Phantom Jack", index=0, device=0
> Pincap 0x00000014: OUT Detect
> Pin Default 0x01451120: [Jack] SPDIF Out at Ext Rear
> Conn = Optical, Color = Black
> DefAssociation = 0x2, Sequence = 0x0
> Misc = NO_PRESENCE
> Pin-ctls: 0x40: OUT
> Unsolicited: tag=00, enabled=0
> Power states: D0 D1 D2 D3 EPSS
> Power: setting=D0, actual=D0
> Connection: 1
> 0x06
>

--
email: <email address hidden>
phone: +27 (0)44 382 4992
cell: +27 (0)72 230 8049
skype: "charlestimms"

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

Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

this should be OFF if you are using HDMI device

[ 19.884842] [drm] Initialized drm 1.1.0 20060810
[ 19.945827] [drm] Memory usable by graphics device = 512M
[ 19.945843] i915 0000:00:02.0: setting latency timer to 64
[ 19.946928] i915 0000:00:02.0: irq 46 for MSI/MSI-X
[ 19.946944] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[ 19.946946] [drm] Driver supports precise vblank timestamp query.
[ 19.947029] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 19.947337] [drm] Skipping LVDS initialization for Dell Studio Hybrid

the drm messages in your system log are different from those in

https://bugs.freedesktop.org/show_bug.cgi?id=48157

[drm:drm_detect_monitor_audio], Monitor has basic audio support
[drm:intel_sdvo_debug_write], SDVOB: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
[drm:intel_sdvo_debug_write], SDVOB: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
[drm:intel_sdvo_debug_write], SDVOB: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
[drm:intel_sdvo_connector_matches_edid], connector_is_digital? 1, monitor_is_digital? 1

drm:drm_crtc_helper_set_config], [CONNECTOR:8:HDMI-A-1] to [CRTC:3]
Console: switching to colour frame buffer device 160x45
[drm:drm_crtc_helper_set_config],
[drm:drm_crtc_helper_set_config], [CRTC:3] [FB:16] #connectors=1 (x y) (0 0)
[drm:drm_crtc_helper_set_config], [CONNECTOR:8:HDMI-A-1] to [CRTC:3]

Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Charles Timms (timms-charles) wrote :

Thank you for this - but can you please let me know the location of the
relevant configuration file on my system so that I can amend its settings.

However, please note that in Ubuntu 12.04, 12.10 and 13.04 it WAS
possible to output sound simultaneously from BOTH the HDMI and SP/DIF
connections on the Dell Studio Hybrid - i.e. HDMI to TV for audio +
video and SP/DIF to my A/V amplifier.

On 02/11/13 00:51, Raymond wrote:
> Simple mixer control 'IEC958 Default PCM',0
> Capabilities: pswitch pswitch-joined
> Playback channels: Mono
> Mono: Playback [on]
>
>
> this should be OFF if you are using HDMI device
>
>
>
>
> [ 19.884842] [drm] Initialized drm 1.1.0 20060810
> [ 19.945827] [drm] Memory usable by graphics device = 512M
> [ 19.945843] i915 0000:00:02.0: setting latency timer to 64
> [ 19.946928] i915 0000:00:02.0: irq 46 for MSI/MSI-X
> [ 19.946944] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
> [ 19.946946] [drm] Driver supports precise vblank timestamp query.
> [ 19.947029] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
> [ 19.947337] [drm] Skipping LVDS initialization for Dell Studio Hybrid
>
> the drm messages in your system log are different from those in
>
> https://bugs.freedesktop.org/show_bug.cgi?id=48157
>
> [drm:drm_detect_monitor_audio], Monitor has basic audio support
> [drm:intel_sdvo_debug_write], SDVOB: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
> [drm:intel_sdvo_debug_write], SDVOB: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
> [drm:intel_sdvo_debug_write], SDVOB: W: 7A 02 (SDVO_CMD_SET_CONTROL_BUS_SWITCH)
> [drm:intel_sdvo_connector_matches_edid], connector_is_digital? 1, monitor_is_digital? 1
>
>
>
> drm:drm_crtc_helper_set_config], [CONNECTOR:8:HDMI-A-1] to [CRTC:3]
> Console: switching to colour frame buffer device 160x45
> [drm:drm_crtc_helper_set_config],
> [drm:drm_crtc_helper_set_config], [CRTC:3] [FB:16] #connectors=1 (x y) (0 0)
> [drm:drm_crtc_helper_set_config], [CONNECTOR:8:HDMI-A-1] to [CRTC:3]
>
>
>
> ** Bug watch added: freedesktop.org Bugzilla #48157
> https://bugs.freedesktop.org/show_bug.cgi?id=48157
>

--
email: <email address hidden>
phone: +27 (0)44 382 4992
cell: +27 (0)72 230 8049
skype: "charlestimms"

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

https://bugs.freedesktop.org/show_bug.cgi?id=48157#c9

you should able to find edid of your HDMI monitor

Revision history for this message
Charles Timms (timms-charles) wrote :

Here it is...

kitchen@Eastford-Kitchen:~$ uname -r
3.11.0-12-generic
kitchen@Eastford-Kitchen:~$ sudo get-edid | parse-edid
parse-edid: parse-edid version 2.0.0
[sudo] password for kitchen:
get-edid: get-edid version 2.0.0

     Performing real mode VBE call
     Interrupt 0x10 ax=0x4f00 bx=0x0 cx=0x0
     Function supported
     Call successful

     VBE version 300
     VBE string at 0x11100 "Intel(r)GM965/PM965/GL960 Graphics Chip
Accelerated VGA BIOS"

VBE/DDC service about to be called
     Report DDC capabilities

     Performing real mode VBE call
     Interrupt 0x10 ax=0x4f15 bx=0x0 cx=0x0
     Function supported
     Call successful

     Monitor and video card combination does not support DDC1 transfers
     Monitor and video card combination supports DDC2 transfers
     0 seconds per 128 byte EDID block transfer
     Screen is not blanked during DDC transfer

Reading next EDID block

VBE/DDC service about to be called
     Read EDID

     Performing real mode VBE call
     Interrupt 0x10 ax=0x4f15 bx=0x1 cx=0x0
     Function supported
     Call successful

EDID claims 1 more blocks left

*********** Something special has happened!
Please contact the author, Matthew Kern
E-mail: <email address hidden>
Please include full output from this program (especially that to stderr)

Reading next EDID block

VBE/DDC service about to be called
     Read EDID

     Performing real mode VBE call
     Interrupt 0x10 ax=0x4f15 bx=0x1 cx=0x0
     Function supported
     Call successful

EDID claims 1 more blocks left
EDID blocks left is wrong.
Your EDID is probably invalid.
parse-edid: EDID checksum passed.

     # EDID version 1 revision 3
Section "Monitor"
     # Block type: 2:0 3:fd
     # Block type: 2:0 3:fc
     Identifier "SAMSUNG"
     VendorName "SAM"
     ModelName "SAMSUNG"
     # Block type: 2:0 3:fd
     HorizSync 26-68
     VertRefresh 24-75
     # Max dot clock (video bandwidth) 230 MHz
     # Block type: 2:0 3:fc
     # DPMS capabilities: Active off:no Suspend:no Standby:no

     Mode "1360x768" # vfreq 60.015Hz, hfreq 47.712kHz
         DotClock 85.500000
         HTimings 1360 1424 1536 1792
         VTimings 768 771 777 795
         Flags "+HSync" "+VSync"
     EndMode
     Mode "1280x720" # vfreq 60.000Hz, hfreq 45.000kHz
         DotClock 74.250000
         HTimings 1280 1390 1430 1650
         VTimings 720 725 730 750
         Flags "+HSync" "+VSync"
     EndMode
     # Block type: 2:0 3:fd
     # Block type: 2:0 3:fc
EndSection
kitchen@Eastford-Kitchen:~$

On 04/11/13 18:00, Raymond wrote:
> https://bugs.freedesktop.org/show_bug.cgi?id=48157#c9
>
> you should able to find edid of your HDMI monitor
>

--
email: <email address hidden>
phone: +27 (0)44 382 4992
cell: +27 (0)72 230 8049
skype: "charlestimms"

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

do you mean you cannot find these when "xrandr --verbose"

 audio: auto
  supported: off auto on

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

do you find any similar message from drm which inform you that audio is supported ?

[drm:drm_detect_monitor_audio], Monitor has basic audio support

Revision history for this message
Charles Timms (timms-charles) wrote :

Here is (part of) the output I get from the "xrandr --verbose" command:-

HDMI1 connected primary 1360x768+0+0 (0x46) normal (normal left inverted
right x axis y axis) 160mm x 90mm
     Identifier: 0x43
     Timestamp: 59643
     Subpixel: horizontal rgb
     Gamma: 1.0:1.0:1.0
     Brightness: 1.0
     Clones:
     CRTC: 0
     CRTCs: 0 1
     Transform: 1.000000 0.000000 0.000000
                 0.000000 1.000000 0.000000
                 0.000000 0.000000 1.000000
                filter:
     EDID:
         00ffffffffffff004c2d7a0600000000
         32130103801009780aee91a3544c9926
         0f5054bdee0001010101010101010101
         010101010101662150b051001b304070
         3600a05a0000001e011d007251d01e20
         6e285500a05a0000001e000000fd0018
         4b1a4417000a202020202020000000fc
         0053414d53554e470a20202020200143
         020323f14b841305140312101f202122
         2309070783010000e2000f67030c0010
         00b82d011d00bc52d01e20b8285540a0
         5a0000001e011d8018711c1620582c25
         00a05a0000009e011d80d0721c162010
         2c2580a05a0000009e8c0ad08a20e02d
         10103e9600a05a000000180000000000
         000000000000000000000000000000dc
     Broadcast RGB: Automatic
         supported: AutomaticFullLimited 16:235
     audio: auto
         supported: force-dvioffautoon

On 05/11/13 08:57, Raymond wrote:
> do you mean you cannot find these when "xrandr --verbose"
>
>
> audio: auto
> supported: off auto on
>

--
email: <email address hidden>
phone: +27 (0)44 382 4992
cell: +27 (0)72 230 8049
skype: "charlestimms"

Revision history for this message
Charles Timms (timms-charles) wrote :

Sorry, not sure what you want me to do here...
I don't see any "drm" error messages displayed on my TV/monitor from my pc.
Can't find any "drm" commands to run on my pc to check drm/audio status
- please advise...

Done a fresh install of 13.10 on another of my Dell Studio Hybrids and
can confirm audio/sound only output from the analogue and S/PDIF
connections nothing over HDMI to same make/model TV/monitor.
This configuration used to work in Ubuntu 13.04 and 12.n versions.

On 05/11/13 09:05, Raymond wrote:
> do you find any similar message from drm which inform you that audio is
> supported ?
>
> [drm:drm_detect_monitor_audio], Monitor has basic audio support
>

Revision history for this message
Raymond (superquad-vortex2) wrote :
Download full text (3.4 KiB)

http://cgit.freedesktop.org/xorg/app/edid-decode/plain/edid-decode.cExtracted contents:
header: 00 ff ff ff ff ff ff 00
serial number: 4c 2d 7a 06 00 00 00 00 32 13
version: 01 03
basic params: 80 10 09 78 0a
chroma info: ee 91 a3 54 4c 99 26 0f 50 54
established: bd ee 00
standard: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
descriptor 1: 66 21 50 b0 51 00 1b 30 40 70 36 00 a0 5a 00 00 00 1e
descriptor 2: 01 1d 00 72 51 d0 1e 20 6e 28 55 00 a0 5a 00 00 00 1e
descriptor 3: 00 00 00 fd 00 18 4b 1a 44 17 00 0a 20 20 20 20 20 20
descriptor 4: 00 00 00 fc 00 53 41 4d 53 55 4e 47 0a 20 20 20 20 20
extensions: 01
checksum: 43

Manufacturer: SAM Model 67a Serial Number 0
Made week 50 of 2009
EDID version: 1.3
Digital display
Maximum image size: 16 cm x 9 cm
Gamma: 2.20
Supported color formats: RGB 4:4:4, YCrCb 4:2:2
First detailed timing is preferred timing
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  640x480@67Hz
  640x480@72Hz
  640x480@75Hz
  800x600@60Hz
  800x600@72Hz
  800x600@75Hz
  832x624@75Hz
  1024x768@60Hz
  1024x768@70Hz
  1024x768@75Hz
Standard timings supported:
Detailed mode: Clock 85.500 MHz, 160 mm x 90 mm
               1360 1424 1536 1792 hborder 0
                768 771 777 795 vborder 0
               +hsync +vsync
Detailed mode: Clock 74.250 MHz, 160 mm x 90 mm
               1280 1390 1430 1650 hborder 0
                720 725 730 750 vborder 0
               +hsync +vsync
Monitor ranges (GTF): 24-75Hz V, 26-68kHz H, max dotclock 230MHz
Monitor name: SAMSUNG
Has 1 extension blocks
Checksum: 0x43 (valid)

CEA extension block
Extension version: 3
31 bytes of CEA data
  Video data block
    VIC 04 1280x720@60Hz (native)
    VIC 19 1280x720@50Hz
    VIC 05 1920x1080i@60Hz
    VIC 20 1920x1080i@50Hz
    VIC 03 720x480@60Hz
    VIC 18 720x576@50Hz
    VIC 16 1920x1080@60Hz
    VIC 31 1920x1080@50Hz
    VIC 32 1920x1080@24Hz
    VIC 33 1920x1080@25Hz
    VIC 34 1920x1080@30Hz
  Audio data block
    Linear PCM, max channels 1
    Supported sample rates (kHz): 48 44.1 32
    Supported sample sizes (bits): 24 20 16
  Speaker allocation data block
  Extended tag: video capability data block
    YCbCr quantization: No Data (0)
    RGB quantization: No Data (0)
    PT scan behaviour: No Data (0)
    IT scan behaviour: Support both over- and underscan (3)
    CE scan behaviour: Support both over- and underscan (3)
  Vendor-specific data block, OUI 000c03 (HDMI)
    Source physical address 1.0.0.0
    Supports_AI
    DC_36bit
    DC_30bit
    DC_Y444
    Maximum TMDS clock: 225MHz
Underscans PC formats by default
Basic audio support
Supports YCbCr 4:4:4
Supports YCbCr 4:2:2
1 native detailed modes
Detailed mode: Clock 74.250 MHz, 160 mm x 90 mm
               1280 1720 1760 1980 hborder 0
                720 725 730 750 vborder 0
               +hsync +vsync
Detailed mode: Clock 74.250 MHz, 160 mm x 90 mm
               1920 2008 2052 2200 hborder 0
                540 542 547 562 vborder 0
               +hsync +vsync interlaced
Detailed mode: Clock 74.250 MHz, 160 mm x 90 mm
               1920 2448 2492 2640 hborder 0
          ...

Read more...

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

pulseaudio expect [Jack HDMI/DP,pcm=3]

but your pin default of hdmi has Misc = NO_PRESENCE

try

hda-jack-sense-test -a

Node 0x11 [Pin Complex] wcaps 0x400780: Mono Digital
  Control: name="HDMI Phantom Jack", index=0, device=0
  Pincap 0x00000014: OUT Detect
  Pin Default 0x18561130: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Black
    DefAssociation = 0x3, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states: D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x10

 control.21 {
  iface CARD
  name 'HDMI Phantom Jack'
  value true
  comment {
   access read
   type BOOLEAN
   count 1
  }
 }

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/hdmi-output-0.conf

  alsa.resolution_bits = "16"
  device.api = "alsa"
  device.class = "sound"
  alsa.class = "generic"
  alsa.subclass = "generic-mix"
  alsa.name = "ALC888 Digital"
  alsa.id = "ALC888 Digital"
  alsa.subdevice = "0"
  alsa.subdevice_name = "subdevice #0"
  alsa.device = "3"
  alsa.card = "0"
  alsa.card_name = "HDA Intel"
  alsa.long_card_name = "HDA Intel at 0xfe9f8000 irq 47"
  alsa.driver_name = "snd_hda_intel"
  device.bus_path = "pci-0000:00:1b.0"
  sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
  device.bus = "pci"
  device.vendor.id = "8086"
  device.vendor.name = "Intel Corporation"
  device.product.id = "284b"
  device.product.name = "82801H (ICH8 Family) HD Audio Controller"
  device.form_factor = "internal"
  device.string = "hdmi:0"
  device.buffering.buffer_size = "65536"
  device.buffering.fragment_size = "32768"
  device.access_mode = "mmap+timer"
  device.profile.name = "hdmi-stereo"
  device.profile.description = "Digital Stereo (HDMI)"
  device.description = "Built-in Audio Digital Stereo (HDMI)"
  alsa.mixer_name = "Realtek ALC888"
  alsa.components = "HDA:10ec0888,10280279,00100202"
  module-udev-detect.discovered = "1"
  device.icon_name = "audio-card-pci"
 ports:
  hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: unknown)
   properties:
    device.icon_name = "video-display"
 active port: <hdmi-output-0>

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

This control should be OFF since it is used for sharing of the default PCM stream with analog and SPDIF outputs.

but you are using Built-in Audio Digital Stereo (HDMI) of alc888

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/?id=9a08160bdbe3148a405f72798f76e2a5d30bd243

Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

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

http://www.mythtv.org/wiki/User_Manual:HDAudioPassthrough

The file is located in /proc/asound/cardX/eld#Y.0 (where X is the card number, and Y is the device number starting from 0. So if aplay -l shows Card 0, device 3 as being the first device listed you need to check /proc/asound/card0/eld#0.0).

you will able to find the name of hdmi monitor if the graphic driver pass ELD to the audio driver

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

APLAY

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

do you mean no sound ?

speaker-test -c2 -t wav -Dhw:0,3

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

http://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/pci/hda/hda_eld.c

monitor_present 1
eld_valid 1

the difference is how to provide presence detect and eld

does node 0x11 return yes when HDMI monitor is plugged ?

Node 0x11 [Pin Complex] wcaps 0x400780: Mono Digital
   Control: name="HDMI Phantom Jack", index=0, device=0
   Pincap 0x00000014: OUT Detect
   Pin Default 0x18561130: [Jack] Digital Out at Int HDMI
     Conn = Digital, Color = Black
     DefAssociation = 0x3, Sequence = 0x0

if not support Jack detect, how to parse edid to get valid eid

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

if the graphic driver knew monitor is connnected, just need to notify audio driver whether eld is valid and pass it to audio drivet

HDMI1 connected

audio: auto
          supported: force-dvioffautoon

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

http://www.dell.com/us/dfh/p/studio-hybrid/pd

the icon of the rear blue jack in the photo is line in

you need line in Jack mode to switch between line in and Mic by hint add_in_jack_mode

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 0x0000373e: IN OUT HP Detect Trigger
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x01a13c40: [Jack] Mic at Ext Rear
    Conn = 1/8, Color = Blue
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x21: IN VREF_50
  Unsolicited: tag=02, 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
Charles Timms (timms-charles) wrote :

Many Apologies - The information I supplied when I reported this bug in
November 2013 was incorrect.
The facts are:-
NO AUDIO is output via the analogue output sockets (front/rear). I
originally stated that this was working
NO AUDIO is output over HDMI (however, the video is fine)
AUDIO is _/ONLY/_ output digitally via S/PDIF

Earlier 12.04, 12.10 and 13.04 versions of Ubuntu were able to output
sound/audio over analogue, HDMI and S/PDIF

On 10/11/13 03:20, Raymond wrote:
> http://www.dell.com/us/dfh/p/studio-hybrid/pd
>
> the icon of the rear blue jack in the photo is line in
>
> you need line in Jack mode to switch between line in and Mic by hint
> add_in_jack_mode
>
>
> 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 0x0000373e: IN OUT HP Detect Trigger
> Vref caps: HIZ 50 GRD 80 100
> Pin Default 0x01a13c40: [Jack] Mic at Ext Rear
> Conn = 1/8, Color = Blue
> DefAssociation = 0x4, Sequence = 0x0
> Pin-ctls: 0x21: IN VREF_50
> Unsolicited: tag=02, enabled=1
> Power states: D0 D1 D2 D3 EPSS
> Power: setting=D0, actual=D0
> Connection: 5
> 0x0c* 0x0d 0x0e 0x0f 0x26
>

--
email: <email address hidden>
phone: +27 (0) 21 813 6427
cell: +27 (0) 72 230 8049
skype: "charlestimms"

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

https://bugzilla.kernel.org/show_bug.cgi?id=68611

seem same problem when coded has two digital pins (spdif and HDMI)

get you obtain output of alsa-info.sh from a live cd when sound is working ?

Revision history for this message
Charles Timms (timms-charles) wrote :
Download full text (30.9 KiB)

_*Sound produced by Ubuntu 13.04:-*_

HDMI - OK (simultaneously with S/PDIF)
S/PDIF - OK (simultaneously with HDMI)
Analogue (headphones - front jack) - OK
Analogue (rear jack - green) - NO AUDIO

Output tab of Sound Settings lists HDMI/DisplayPort (Built-In Audio) ONLY
Connecting headphones adds Headphones (Built-in Audio) to this list

_*Sound produced by Ubuntu 13.10*__*:-*_

HDMI - NO SOUND
S/PDIF - OK
Analogue (Headphones - front jack) - OK
Analogue (rear jack - green) - OK

Output tab of Sound Settings lists HDMI/DisplayPort (Built-in Audio) AND
Analogue (Built-In Audio)
Connecting headphones adds Headphones (Built-in Audio) to this list

_*Ubuntu 13.04 - Output from alsa-info.sh *_

Alsa-info.sh output with HDMI and S/PDIF sound working. Front headphones
NOT connected.

upload=true&script=true&cardinfo=

!!################################

!!ALSA Information Script v 0.4.62

!!################################

!!Script ran on: Mon Jan 20 11:41:17 UTC 2014

!!Linux Distribution

!!------------------

Ubuntu 13.04 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 13.04"
NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 13.04"
HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

!!DMI Information

!!---------------

Manufacturer: Dell Inc.

Product Name: Studio Hybrid 140g

Product Version: 00

Firmware Version: 1.1.0

!!Kernel Information

!!------------------

Kernel release: 3.8.0-19-generic

Operating System: GNU/Linux

Architecture: i686

Processor: i686

SMP Enabled: Yes

!!ALSA Version

!!------------

Driver version: k3.8.0-19-generic

Library version: 1.0.25

Utilities version: 1.0.25

!!Loaded ALSA modules

!!-------------------

snd_hda_intel

snd_usb_audio

!!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 0xfe9f8000 irq 47

1 [U0x46d0x825 ]: USB-Audio - USB Device 0x46d:0x825

USB Device 0x46d:0x825 at usb-0000:00:1d.7-2, high speed

!!PCI Soundcards installed in the system

!!--------------------------------------

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio
Controller (rev 03)

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

!!-------------------------------------------------------

00:1b.0 0403: 8086:284b (rev 03)

Subsystem: 1028:0279

!!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 : -1

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 : N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N...

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=6a05ac4afa90ac9c38fedd3f6940fe8da5d1fcf6

your alc888 have two digital outs

the previous implementation

The multiple outputs are handled as slave streams, so only one PCM stream (and the corresponding IEC958*
elements) is provided to control both digital outputs.

HDMI - OK (simultaneously with S/PDIF)
 S/PDIF - OK (simultaneously with HDMI)

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

e.g. you can use hint

indep_hp=1

by early patching to crdate the alt analog device 2 for the headphone

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

When "IEC958 Default PCM" switch is on, the PCM stream is routed both to analog and SPDIF outputs.

sound is routed to analog, spdif and hdmi in your case

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

those HDMI 1.3 support Jack detection

graphic driver get HDMI TV 's EDID and pass ELD to audio driver

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

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

you have to ask tiwai how to solve your case by providing the working and non working alsa-info

it is possible to split into two digital devices 1 and 3 so that you can play different audio to HDMI and S/PDIF if the hda controller support four SDO playback streams but will lost the capabitiy of playing audio to HDMI and spdif

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

the alternative may be create two subdevices for the two digital outputs

Revision history for this message
Charles Timms (timms-charles) wrote :

Following a fresh installation of Ubuntu 14.04 LTS (3.13.0.24) I can report that audio via HDMI is now working. Bug Fixed.

Revision history for this message
Paul White (paulw2u) wrote :

Further to comment #25, issue resolved by installing latest Ubuntu release.

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