From 79553eb7eb6380c148762fe22a258cdcf5db0d2d Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Fri, 19 Jul 2019 15:51:16 +0800 Subject: [PATCH] MLK-21697-1: video: fb: sii902x: Register audio platform driver Register audio platform driver, that audio can utilize the existing hdmi-codec driver, which can help to add constraint from EDID. Other benifit is to move the i2c operation from audio machine driver to this platform driver, original handling is not formal Signed-off-by: Shengjiu Wang --- drivers/video/fbdev/mxc/Makefile | 2 +- drivers/video/fbdev/mxc/mxsfb_sii902x.c | 19 +- drivers/video/fbdev/mxc/mxsfb_sii902x.h | 26 ++ drivers/video/fbdev/mxc/mxsfb_sii902x_audio.c | 361 ++++++++++++++++++ 4 files changed, 395 insertions(+), 13 deletions(-) create mode 100644 drivers/video/fbdev/mxc/mxsfb_sii902x.h create mode 100644 drivers/video/fbdev/mxc/mxsfb_sii902x_audio.c diff --git a/drivers/video/fbdev/mxc/Makefile b/drivers/video/fbdev/mxc/Makefile index 4c51571900a0..3983a563fbf9 100644 --- a/drivers/video/fbdev/mxc/Makefile +++ b/drivers/video/fbdev/mxc/Makefile @@ -14,6 +14,6 @@ obj-$(CONFIG_FB_MXC_DISP_FRAMEWORK) += mxc_dispdrv.o obj-$(CONFIG_FB_MXC_SYNC_PANEL) += mxc_lcdif.o mxc_ipuv3_fb.o obj-$(CONFIG_FB_MXC_EINK_PANEL) += mxc_epdc_fb.o obj-$(CONFIG_FB_MXC_EINK_V2_PANEL) += mxc_epdc_v2_fb.o -obj-$(CONFIG_FB_MXS_SII902X) += mxsfb_sii902x.o +obj-$(CONFIG_FB_MXS_SII902X) += mxsfb_sii902x.o mxsfb_sii902x_audio.o obj-$(CONFIG_FB_MXC_DCIC) += mxc_dcic.o obj-$(CONFIG_HANNSTAR_CABC) += hannstar_cabc.o diff --git a/drivers/video/fbdev/mxc/mxsfb_sii902x.c b/drivers/video/fbdev/mxc/mxsfb_sii902x.c index 1a6a2ee992be..80f33fef51da 100644 --- a/drivers/video/fbdev/mxc/mxsfb_sii902x.c +++ b/drivers/video/fbdev/mxc/mxsfb_sii902x.c @@ -42,20 +42,11 @@ #include #include