[Intel-gfx] Intel Atom SoC Bay/Cherry Trail - HDMI Audio

poma pomidorabelisima at gmail.com
Fri Mar 18 19:32:15 UTC 2016


Hi Fi

$ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.6.tar.xz
$ tar xf linux-4.4.6.tar.xz 
$ cd linux-4.4.6/

$ curl -s https://patchwork.freedesktop.org/api/1.0/series/4142/revisions/1/mbox/ | patch -p1
...
patching file drivers/gpu/drm/i915/i915_reg.h
Hunk #1 succeeded at 1993 with fuzz 2 (offset -69 lines).
Hunk #2 FAILED at 3369.
Hunk #3 FAILED at 3378.
2 out of 3 hunks FAILED -- saving rejects to file drivers/gpu/drm/i915/i915_reg.h.rej
...

$ cat drivers/gpu/drm/i915/i915_reg.h.rej
--- drivers/gpu/drm/i915/i915_reg.h
+++ drivers/gpu/drm/i915/i915_reg.h
@@ -3369,6 +3374,7 @@ enum skl_disp_power_wells {
 #define _GEN3_SDVOC	0x61160
 #define GEN3_SDVOB	_MMIO(_GEN3_SDVOB)
 #define GEN3_SDVOC	_MMIO(_GEN3_SDVOC)
+#define HDMIB	(dev_priv->info.display_mmio_offset + 0x61140)
 #define GEN4_HDMIB	GEN3_SDVOB
 #define GEN4_HDMIC	GEN3_SDVOC
 #define VLV_HDMIB	_MMIO(VLV_DISPLAY_BASE + 0x61140)
@@ -3378,6 +3384,7 @@ enum skl_disp_power_wells {
 #define PCH_HDMIB	PCH_SDVOB
 #define PCH_HDMIC	_MMIO(0xe1150)
 #define PCH_HDMID	_MMIO(0xe1160)
+#define PORT_ENABLE	(1 << 31)
 
 #define PORT_DFT_I9XX				_MMIO(0x61150)
 #define   DC_BALANCE_RESET			(1 << 25)


"_MMIO"s came with
drm/i915: Type safe register read/write
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/gpu/drm/i915/i915_reg.h?h=linux-4.5.y&id=f0f59a0
so I guess this hdmi_audio code goes on top of >= 4.5 kernel series (current mainline),
not as the https://github.com/plbossart/sound/commits/baytrail-stick-rebase-4.4

Beside https://lists.freedesktop.org/archives/intel-gfx/
and https://patchwork.freedesktop.org/project/intel-gfx/
is there a branch at https://cgit.freedesktop.org/drm-intel/
or a repo at https://git.kernel.org/cgit/ in which this hdmi_audio code exists?



More information about the Intel-gfx mailing list