Skip to content

Commit

Permalink
ALSA: add Intel HDMI LPE audio driver for BYT/CHT-T
Browse files Browse the repository at this point in the history
On Baytrail and Cherrytrail, HDaudio may be fused out or disabled
by the BIOS. This driver enables an alternate path to the i915
display registers and DMA.

Although there is no hardware path between i915 display and LPE/SST
audio clusters, this HDMI capability is referred to in the documentation
as "HDMI LPE Audio" so we keep the name for consistency. There is no
hardware path or control dependencies with the LPE/SST DSP functionality.

The hdmi-lpe-audio driver will be probed when the i915 driver creates
a child platform device.

Since this driver is neither SoC nor PCI, a new x86 folder is added
Additional indirections in the code will be cleaned up in the next series
to aid smoother DP integration

Signed-off-by: Pierre-Louis Bossart <[email protected]>
Signed-off-by: Jerome Anand <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
jeromean authored and tiwai committed Jan 25, 2017
1 parent 46d196e commit 287599c
Show file tree
Hide file tree
Showing 6 changed files with 1,319 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sound/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ source "sound/parisc/Kconfig"

source "sound/soc/Kconfig"

source "sound/x86/Kconfig"

endif # SND

menuconfig SOUND_PRIME
Expand Down
2 changes: 1 addition & 1 deletion sound/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ obj-$(CONFIG_SOUND) += soundcore.o
obj-$(CONFIG_SOUND_PRIME) += oss/
obj-$(CONFIG_DMASOUND) += oss/
obj-$(CONFIG_SND) += core/ i2c/ drivers/ isa/ pci/ ppc/ arm/ sh/ synth/ usb/ \
firewire/ sparc/ spi/ parisc/ pcmcia/ mips/ soc/ atmel/ hda/
firewire/ sparc/ spi/ parisc/ pcmcia/ mips/ soc/ atmel/ hda/ x86/
obj-$(CONFIG_SND_AOA) += aoa/

# This one must be compilable even if sound is configured out
Expand Down
15 changes: 15 additions & 0 deletions sound/x86/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
menuconfig SND_X86
tristate "X86 sound devices"
depends on X86
---help---
X86 sound devices that don't fall under SoC or PCI categories

if SND_X86

config HDMI_LPE_AUDIO
tristate "HDMI audio without HDaudio on Intel Atom platforms"
depends on DRM_I915
help
Choose this option to support HDMI LPE Audio mode

endif # SND_X86
4 changes: 4 additions & 0 deletions sound/x86/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
snd-hdmi-lpe-audio-objs += \
intel_hdmi_lpe_audio.o

obj-$(CONFIG_HDMI_LPE_AUDIO) += snd-hdmi-lpe-audio.o
Loading

0 comments on commit 287599c

Please sign in to comment.