Skip to content

Commit

Permalink
feat(codec): [cr_id_skip] Support 4mic on sdb 4.0
Browse files Browse the repository at this point in the history
Summary: SDB4.0板子支持新做的音频转接板

Test Plan: none

Reviewers: yaqiang.li

Reviewed By: yaqiang.li

Differential Revision: https://cr.hobot.cc/D224601
  • Loading branch information
joeiilua authored and yaqiang.li committed Dec 8, 2022
1 parent 1c40152 commit 8b80245
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 8 deletions.
56 changes: 56 additions & 0 deletions arch/arm64/boot/dts/hobot/hobot-x3-sdb_v4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,21 @@
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

es7210_0:es7210_0@0x40 {
compatible = "MicArray_0";
reg = <0x40>;
#sound-dai-cells = <1>;
};
es7210_1@0x42{
compatible = "MicArray_1";
reg = <0x42>;
};
es8156:es8156_0@0x08{
compatible="everest,es8156";
reg = <0x08>;
#sound-dai-cells = <0>;
};
};

&i2c2 {
Expand Down Expand Up @@ -541,6 +556,10 @@
status = "okay";
};

&snd5 {
status = "okay";
};

&jpu {
status = "okay";
};
Expand Down Expand Up @@ -630,4 +649,41 @@
sound-dai = <&i2sidma1>;
};
};
};

&snd5 {
model = "hobotsnd5";
work_mode = <0>; /*0:simple mode; 1:duplex mode*/
dai-link@0 {
dai-format = "dsp_a";
bitclock-master;
frame-master;
frame-inversion;
link-name = "hobotdailink0";
cpu {
sound-dai = <&i2s0>;
};
codec {
sound-dai = <&es7210_0 0>;
};
platform {
sound-dai = <&i2sidma0>;
};
};
dai-link@1 {
dai-format = "i2s";
bitclock-master;
frame-master;
//frame-inversion;
link-name = "hobotdailink1";
cpu {
sound-dai = <&i2s1>;
};
codec {
sound-dai = <&es8156>;
};
platform {
sound-dai = <&i2sidma1>;
};
};
};
5 changes: 0 additions & 5 deletions drivers/soc/hobot/iar/hobot_iar.c
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4861,13 +4861,8 @@ static int hobot_iar_probe(struct platform_device *pdev)
iar_display_cam_no = PIPELINE0;
iar_display_addr_type = GDC0;
if (need_startup_img) {
#ifdef CONFIG_HOBOT_X3_UBUNTU
stride_copy_bmp(0, 0, embedded_image_0_data, 0, 0, 0, 0,
g_iar_dev->frambuf[IAR_CHANNEL_3].vaddr, 24, 24, 720, 3);
#else
stride_copy_bmp(0, 0, embedded_image_0_data, 0, 0, 0, 0,
g_iar_dev->frambuf[IAR_CHANNEL_3].vaddr, 24, 24, 720, 4);
#endif
} else {
display_color_bar(720, 1280, g_iar_dev->frambuf[IAR_CHANNEL_3].vaddr);
}
Expand Down
8 changes: 5 additions & 3 deletions drivers/video/fbdev/hobot_fb.c
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -1266,9 +1266,11 @@ static int hbfb_set_par(struct fb_info *info)
value = 17;
}
hdmi_set_resolution(value);

if (fbi->fb.var.bits_per_pixel == 32) {
fbi->fb.var.bits_per_pixel = 24;
if (display_type == HDMI_TYPE)//lcd is ARGB format,so bits per pixel is 32,HDMI is RGB format.
{
if (fbi->fb.var.bits_per_pixel == 32) {
fbi->fb.var.bits_per_pixel = 24;
}
}
#endif
return regval;
Expand Down

0 comments on commit 8b80245

Please sign in to comment.