[Dell XPS 13 9343] Audio broken with I2S mode in Ubuntu 16.04 kernel 4.4 (but works with kernel 4.3)

Bug #1551880 reported by der_eismann
72
This bug affects 14 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I wanted to try Linux again on this machine and the tons of troubleshooting since release got a bit better, but the sound is still a bit strange.

So after changing distributions I installed Xubuntu 16.04 Beta 1 today with kernel 4.4.0-8 and sound isn't working because the 3,5 mm device is completely missing. PulseAudio is only showing the HDMI output.
I got the sound working by downloading kernel 4.3.6 from the Ubuntu kernel archives, although then it looks like it is running in HDA mode instead of I2S (which I don't like because Dual Boot).

Let me know if there is anything else I can do to track down the problem.

$ dmesg -t | egrep "(audio|snd|INT3438)"
DMAR: ACPI device "INT3438:00" under DMAR at fed91000 as 00:13.0
snd_hda_intel 0000:00:03.0: enabling device (0000 -> 0002)
sst-acpi INT3438:00: DesignWare DMA Controller, 8 channels
haswell-pcm-audio haswell-pcm-audio: Direct firmware load for intel/IntcPP01.bin failed with error -2
haswell-pcm-audio haswell-pcm-audio: fw image intel/IntcPP01.bin not available(-2)
haswell-pcm-audio haswell-pcm-audio: FW loaded, mailbox readback FW info: type 01, - version: 00.00, build 77, source commit id: 876ac6906f31a43b6772b23c7c983ce9dcb18a19
broadwell-audio broadwell-audio: ASoC: CODEC DAI rt286-aif1 not registered
snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
broadwell-audio broadwell-audio: ASoC: CODEC DAI rt286-aif1 not registered
broadwell-audio broadwell-audio: ASoC: CODEC DAI rt286-aif1 not registered
broadwell-audio broadwell-audio: ASoC: CODEC DAI rt286-aif1 not registered
broadwell-audio broadwell-audio: ASoC: CODEC DAI rt286-aif1 not registered
broadwell-audio broadwell-audio: ASoC: CODEC DAI rt286-aif1 not registered
broadwell-audio broadwell-audio: ASoC: CODEC DAI rt286-aif1 not registered

$ cat /proc/asound/cards
 0 [HDMI ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xf7218000 irq 50

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-8-generic 4.4.0-8.23
ProcVersionSignature: Ubuntu 4.4.0-8.23-generic 4.4.2
Uname: Linux 4.4.0-8-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: sysop 1266 F.... pulseaudio
CurrentDesktop: XFCE
Date: Tue Mar 1 18:48:05 2016
HibernationDevice: RESUME=UUID=338a51e1-7748-466e-ba21-4210b34c4189
InstallationDate: Installed on 2016-03-01 (0 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160224)
MachineType: Dell Inc. XPS 13 9343
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-8-generic.efi.signed root=UUID=347e6152-7230-486c-b801-8eb0811c8c8d ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-8-generic N/A
 linux-backports-modules-4.4.0-8-generic N/A
 linux-firmware 1.156
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/11/2015
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A07
dmi.board.name: 0WF2C3
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA07:bd11/11/2015:svnDellInc.:pnXPS139343:pvr:rvnDellInc.:rn0WF2C3:rvrA00:cvnDellInc.:ct9:cvr:
dmi.product.name: XPS 13 9343
dmi.sys.vendor: Dell Inc.

Revision history for this message
der_eismann (der-eismann) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
summary: - [Dell XPS 13 9343] Audio broken with I2S mode in Ubuntu 16.04
+ [Dell XPS 13 9343] Audio broken with I2S mode in Ubuntu 16.04 kernel 4.4
+ (but works with kernel 4.3)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Weird. I have the same laptop and the same A07 BIOS (which is also the latest one). And my audio works perfectly in regular Ubuntu 16.04 (Unity7). Even working with kernel 4.4.

Xubuntu may well have different audio interfaces. But I also find it curious I don't see any haswell/broadwell audio messages like yours in my 'dmesg'.

Revision history for this message
der_eismann (der-eismann) wrote :
Revision history for this message
der_eismann (der-eismann) wrote :
Revision history for this message
der_eismann (der-eismann) wrote :

So, well. The audio device isn't missing anymore and I have no idea why. But it looks like Xubuntu 16.04 Beta 1 is using HDA sound by default. I attached two images. When I cold boot Xubuntu a few times I have two internal audio devices, one for HDMI and one for 3,5 mm/speaker. After dual booting Windows 10 there is a broadwell-rt286 device for the speakers/3,5 mm.

Is this true? Is the Ubuntu kernel using HDA over I2S by default? Is there a way to change this by recompiling?

Revision history for this message
der_eismann (der-eismann) wrote :

Okay okay, after some hours investigating, here are my thoughts:
- Still no idea why the audio device was missing at all at the beginning. Re-appeared, no problems since then.
- I2S sound is working fine in kernel 4.4.
- But the Ubuntu kernel keeps using the CONFIG_ACPI_REV_OVERRIDE_POSSIBLE kernel flag.
-> Audio continues to operate in HDA mode, although not necessary.
- Arch removed this flag for kernel 4.4 (https://bugs.archlinux.org/task/47710)
- Tried to recompile kernel with CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=n, but ran out of space.
- Discovered the acpi_rev_override kernel parameter, going to test a bit now if this helps.

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Francisco Cribari (cribari) wrote :
Revision history for this message
chris lea (chris-lea) wrote :

As far as I can tell I'm seeing the same sort of problem with a clean install of Ubuntu Mate 16.04 on my Dell XPS 13 9343.

From what I can tell, the machine thinks it's playing audio. If you look at the input tab of the sound preferences when a youtube video is playing, it's clearly processing something. But no sound ever comes out of the speakers. Also, if I plug speakers into the headphone jack, it results in a high pitched whine which is constant and persists even if I mute everything.

Happy to provide any additional info if I can.

Attaching the output of alsa-info.sh.

Revision history for this message
chris lea (chris-lea) wrote :

Update with some new info. I booted into Win10 and noticed that it wasn't recognizing an audio device. Googled around a bit and ended up (re)installing the Realtek drivers largely by following what I read here:

http://en.community.dell.com/support-forums/laptop/f/3517/t/19630850

NOTE: I did the diagnostic and the 8 tones played correctly from the speakers.

Rebooted into Win10 again. It was showing an audio device, but I couldn't get it to actually play anything.

Rebooted into Ubuntu again, and it now sees the broadwell-rt286 device! With a little poking in sound preferences, I'm able to get the laptop speakers to work. Not quite out of the woods yet though.

1) If I reboot the computer into Ubuntu, the broadwell device disappears. I have to go into Win10 and then back into Ubuntu to get it to show up again.

2) If I plug speakers into the headphone jack, I can get sound to work, but if the sound card is left alone for any length of time is starts making a loud persistent clicking sound over and over. The speakers will play any audio just fine, but if I'm not doing anything, there's a continuous clicking noise.

I'm attaching the output of a new run of also-info.sh, which definitely has a bunch of new things in it compared to the attachment in my previous comment.

Revision history for this message
Francisco Cribari (cribari) wrote :
Revision history for this message
John Paul Adrian Glaubitz (glaubitz) wrote :

@chris-lea:

> Update with some new info. I booted into Win10 and noticed that it wasn't recognizing an audio
> device. Googled around a bit and ended up (re)installing the Realtek drivers largely by following
> what I read here:

You need to power-cycle your laptop between Windows<->Linux reboots, that is, turn the laptop off. This is necessary to reset the soundcard.

I'm dual-booting Linux and Windows with my kernel still defaulting to HDA mode while Windows defaults to I2S mode. In order to get sound in Linux again after booting into Windows, I need to power off the laptop from Windows. Then power on, boot into Linux and then reboot or even power-cycle again.

The same applies for Windows. If you don't have sound, power-cycle the machine at least once. Reinstalling the drivers does not help as it's not a driver issue, it's the hardware not properly resetting after entering either HDA or I2S mode.

The only proper fix is to use I2S mode on Linux as well which requires at least Linux kernel 4.8, see [1].

Adrian

> [1] https://wiki.archlinux.org/index.php/Dell_XPS_13_(2015)#Audio

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.