drm/nouveau/disp/hda/gt215-: pass head to nvkm_ior.hda.eld()
authorBen Skeggs <bskeggs@redhat.com>
Wed, 6 May 2020 04:40:52 +0000 (14:40 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 22 May 2020 01:13:51 +0000 (11:13 +1000)
We're going to use the bound head to select HDA device entry.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/disp/hdagf119.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/hdagt215.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c

index 0fa0ec0a1de001e304eb9d54aff2ca6aae5067cf..1080ba6ecd643fa8fb3b118d9c477fcb8650a36f 100644 (file)
@@ -24,7 +24,7 @@
 #include "ior.h"
 
 void
-gf119_hda_eld(struct nvkm_ior *ior, u8 *data, u8 size)
+gf119_hda_eld(struct nvkm_ior *ior, int head, u8 *data, u8 size)
 {
        struct nvkm_device *device = ior->disp->engine.subdev.device;
        const u32 soff = 0x030 * ior->id;
index 4509d2ba880ea12f965b6c13ddfef80ec323a201..0d1b81fe109304de4bc53c496f3625654b6593e9 100644 (file)
@@ -24,7 +24,7 @@
 #include "ior.h"
 
 void
-gt215_hda_eld(struct nvkm_ior *ior, u8 *data, u8 size)
+gt215_hda_eld(struct nvkm_ior *ior, int head, u8 *data, u8 size)
 {
        struct nvkm_device *device = ior->disp->engine.subdev.device;
        const u32 soff = ior->id * 0x800;
index 009d3a8b7a50a757e317369d5e9b3021d30eed03..c60acf71831e4bd23cc38fca648ccb0f5d2a9e82 100644 (file)
@@ -87,7 +87,7 @@ struct nvkm_ior_func {
 
        struct {
                void (*hpd)(struct nvkm_ior *, int head, bool present);
-               void (*eld)(struct nvkm_ior *, u8 *data, u8 size);
+               void (*eld)(struct nvkm_ior *, int head, u8 *data, u8 size);
        } hda;
 };
 
@@ -158,10 +158,10 @@ void gv100_hdmi_ctrl(struct nvkm_ior *, int, bool, u8, u8, u8 *, u8 , u8 *, u8);
 void gm200_hdmi_scdc(struct nvkm_ior *, int, u8);
 
 void gt215_hda_hpd(struct nvkm_ior *, int, bool);
-void gt215_hda_eld(struct nvkm_ior *, u8 *, u8);
+void gt215_hda_eld(struct nvkm_ior *, int, u8 *, u8);
 
 void gf119_hda_hpd(struct nvkm_ior *, int, bool);
-void gf119_hda_eld(struct nvkm_ior *, u8 *, u8);
+void gf119_hda_eld(struct nvkm_ior *, int, u8 *, u8);
 
 #define IOR_MSG(i,l,f,a...) do {                                               \
        struct nvkm_ior *_ior = (i);                                           \
index 5f758948d6e1e8954ed762b012f25e70dca2b210..a7672ef17d3bc8474c22d2a5fa63e66b3d94b641 100644 (file)
@@ -155,7 +155,7 @@ nv50_disp_root_mthd_(struct nvkm_object *object, u32 mthd, void *data, u32 size)
                        if (outp->info.type == DCB_OUTPUT_DP)
                                ior->func->dp.audio(ior, hidx, true);
                        ior->func->hda.hpd(ior, hidx, true);
-                       ior->func->hda.eld(ior, data, size);
+                       ior->func->hda.eld(ior, hidx, data, size);
                } else {
                        if (outp->info.type == DCB_OUTPUT_DP)
                                ior->func->dp.audio(ior, hidx, false);