fengsheng
易百纳技术社区
易百纳技术社区
0 访问量
0 原创专栏
0 资料
0 粉丝
个性签名:此E友还没有留下个性签名哦~
加入易百纳时间:2020-11-14

个人成就

易百纳技术社区 共获得 0 个点赞
易百纳技术社区 共获得 0 个收藏
易百纳技术社区 共获得 14 次评论/回复

个人勋章

分类专栏

Ta擅长的领域

暂无
  • 现在的问题是,下载过程正常,但是重新上电后,还是输出空格! 启动配置引脚,是配置的spi flash启动,然后4Byte模式 下面是hitool的下载日志: [code]串口已经连接,请给单板上电,若已经上电,请断电后重新上电。 ################################################### ---- 10% ################################################### ---- 20% ################################################### ---- 30% ################################################### ---- 40% ################################################### ---- 50% ################################################### ---- 60% ################################################### ---- 71% ################################################### ---- 81% ################################################### ---- 91% ########################################### ---- 100% Boot download completed!       System startup U-Boot 2016.11 (Sep 05 2018 - 14:41:50 +0800)hi3516dv300 Relocation Offset is: 0d6d9000 Relocating to 8fed9000, new gd at 8fe38ef0, sp at 8fe38ed0 SPI Nor:  Check Flash Memory Controller v100 ... Found SPI Nor ID Table Version 1.0 SPI Nor(cs 0) ID: 0xc8 0x40 0x18 Block:64KB Chip:16MB Name:"GD25Q128" SPI Nor total size: 16MB NAND:  0 MiB MMC:    *** Warning - bad CRC, using default environment In:    serial Out:   serial Err:   serial Net:   eth0 Warning: eth0 (eth0) using random MAC address - 42:ed:b3:30:4b:c9 start download process. Boot started successfully! Send command:        getinfo version version: U-Boot 2016.11 [EOT](OK) Send command:        getinfo bootmode spi [EOT](OK) Send command:        sf probe 0 [EOT](OK) Send command:        getinfo spi Block:64KB Chip:16MB*1 ID:0xC8 0x40 0x18 Name:"GD25Q128" [EOT](OK) Send command:        sf probe 0 [EOT](OK) Send command:        sf erase 0x0 0x80000 Erasing at 0x10000 --  12% complete. Erasing at 0x20000 --  25% complete. Erasing at 0x30000 --  37% complete. Erasing at 0x40000 --  50% complete. Erasing at 0x50000 --  62% complete. Erasing at 0x60000 --  75% complete. Erasing at 0x70000 --  87% complete. Erasing at 0x80000 -- 100% complete. SF: 524288 bytes @ 0x0 Erased: OK [EOT](OK) Send command:        sf write 0x81000000 0x0 0x80000 device 0 offset 0x0, size 0x80000 Writing at 0x10000 --  12% complete. Writing at 0x20000 --  25% complete. Writing at 0x30000 --  37% complete. Writing at 0x40000 --  50% complete. Writing at 0x50000 --  62% complete. Writing at 0x60000 --  75% complete. Writing at 0x70000 --  87% complete. Writing at 0x80000 -- 100% complete. SF: 524288 bytes @ 0x0 Written: OK [EOT](OK) Send command:        reset reset success! Boot burned successfully. [/code]
    2020-07-04
    0 0 2174
  • 大家好,最近调试Hi3516d v300的板子,发现访问/dev/ttyAMA1时,内核报错, dts已经配置了Uart1,引脚复用也修改为了uart1的tx和rx 大家帮看看,有没有遇到过这个问题的,谢谢! open tty: /dev/ttyAMA1  bitRate: 115200 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1176 at drivers/tty/serial/serial_core.c:440 uart_get_baud_rate+0xf4/0x158 Modules linked in: hi_mipi_rx(O) hi3516cv500_acodec(PO) hi3516cv500_adec(PO) hi3516cv500_aenc(PO) hi3516cv500_ao(PO) hi3516cv500_ai(PO) hi3516cv500_aio(PO) hi3516cv500_hdmi(PO) hi_sensor_i2c(O) hi_pwm(O) hi3516cv500_nnie(PO) hi3516cv500_ive(PO) hi3516cv500_vdec(PO) hi3516cv500_vfmw(PO) hi3516cv500_jpegd(PO) hi3516cv500_jpege(PO) hi3516cv500_h265e(PO) hi3516cv500_h264e(PO) hi3516cv500_vedu(PO) hi3516cv500_chnl(PO) hi3516cv500_venc(PO) hi3516cv500_rc(PO) hifb(O) hi3516cv500_vo(PO) hi3516cv500_vpss(PO) hi3516cv500_vi(PO) hi3516cv500_isp(PO) hi3516cv500_dis(PO) hi3516cv500_vgs(PO) hi3516cv500_gdc(PO) hi3516cv500_rgn(PO) hi3516cv500_tde(O) hi3516cv500_sys(PO) hi3516cv500_base(PO) hi_tzasc(PO) hi_osal(O) sys_config(O) CPU: 1 PID: 1176 Comm: comtool Tainted: P           O    4.9.37 #6 Hardware name: Generic DT based system Backtrace: [] (dump_backtrace) from [] (show_stack+0x18/0x1c) r7:00000009 r6:600d0013 r5:00000000 r4:c05bc0f4 [] (show_stack) from [] (dump_stack+0x8c/0xa0) [] (dump_stack) from [] (__warn+0xec/0x104) r7:00000009 r6:c0515e88 r5:00000000 r4:00000000 [] (__warn) from [] (warn_slowpath_null+0x28/0x30) r9:00000000 r8:00000000 r7:ffffeff0 r6:00000000 r5:c68beeb8 r4:00000002 [] (warn_slowpath_null) from [] (uart_get_baud_rate+0xf4/0x158) [] (uart_get_baud_rate) from [] (pl011_set_termios+0x50/0x344) r10:c68bee00 r9:0cc00041 r8:c68beeb8 r7:c68bee00 r6:c68bee00 r5:00000000 r4:c6922610 r3:00000000 [] (pl011_set_termios) from [] (uart_change_speed+0x38/0xf0) r9:0cc00041 r8:00000000 r7:c68bee00 r6:c68bee00 r5:c69040fc r4:c6922610 [] (uart_change_speed) from [] (uart_startup.part.3+0xb0/0x148) r7:c68bee00 r6:00000000 r5:c69040fc r4:c6922610 [] (uart_startup.part.3) from [] (uart_port_activate+0x58/0x64) r9:0cc00041 r8:c5fec000 r7:c6904190 r6:c5f9fd80 r5:c68bee00 r4:c69040fc [] (uart_port_activate) from [] (tty_port_open+0x94/0xd8) [] (tty_port_open) from [] (uart_open+0x38/0x40) r9:0cc00041 r8:c5fec000 r7:c05f92a8 r6:c0490c9c r5:c68c2780 r4:c5f9fd80 [] (uart_open) from [] (tty_open+0xdc/0x6ac) [] (tty_open) from [] (chrdev_open+0xcc/0x188) r10:c5fedf5c r9:c691a740 r8:c5f9fd80 r7:c6884650 r6:00000000 r5:c691a740 r4:c0490d14 [] (chrdev_open) from [] (do_dentry_open.constprop.3+0x204/0x30c) r9:00000902 r8:c5fedea8 r7:c00f18cc r6:c5f9fd88 r5:c6884650 r4:c5f9fd80 [] (do_dentry_open.constprop.3) from [] (vfs_open+0x48/0x78) r9:00000902 r8:c5fedea8 r7:00000000 r6:c6410660 r5:c5f9fd80 r4:c5fedea8 [] (vfs_open) from [] (path_openat+0x344/0xf3c) r5:00000000 r4:00000000 [] (path_openat) from [] (do_filp_open+0x6c/0xd0) r10:00000000 r9:c5fec000 r8:c000fa44 r7:00000001 r6:c5fedf5c r5:c5fedea8 r4:00000004 [] (do_filp_open) from [] (do_sys_open+0x11c/0x1cc) r7:fffff000 r6:c5b28000 r5:ffffff9c r4:00000004 [] (do_sys_open) from [] (SyS_open+0x20/0x24) r9:c5fec000 r8:c000fa44 r7:00000005 r6:be804bb8 r5:00047f70 r4:00047f18 [] (SyS_open) from [] (ret_fast_syscall+0x0/0x34) ---[ end trace 1a5befffcb78f888 ]--- open /dev/ttyAMA1 OK! ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1176 at drivers/tty/serial/serial_core.c:440 uart_get_baud_rate+0xf4/0x158 Modules linked in: hi_mipi_rx(O) hi3516cv500_acodec(PO) hi3516cv500_adec(PO) hi3516cv500_aenc(PO) hi3516cv500_ao(PO) hi3516cv500_ai(PO) hi3516cv500_aio(PO) hi3516cv500_hdmi(PO) hi_sensor_i2c(O) hi_pwm(O) hi3516cv500_nnie(PO) hi3516cv500_ive(PO) hi3516cv500_vdec(PO) hi3516cv500_vfmw(PO) hi3516cv500_jpegd(PO) hi3516cv500_jpege(PO) hi3516cv500_h265e(PO) hi3516cv500_h264e(PO) hi3516cv500_vedu(PO) hi3516cv500_chnl(PO) hi3516cv500_venc(PO) hi3516cv500_rc(PO) hifb(O) hi3516cv500_vo(PO) hi3516cv500_vpss(PO) hi3516cv500_vi(PO) hi3516cv500_isp(PO) hi3516cv500_dis(PO) hi3516cv500_vgs(PO) hi3516cv500_gdc(PO) hi3516cv500_rgn(PO) hi3516cv500_tde(O) hi3516cv500_sys(PO) hi3516cv500_base(PO) hi_tzasc(PO) hi_osal(O) sys_config(O) CPU: 1 PID: 1176 Comm: comtool Tainted: P        W  O    4.9.37 #6 Hardware name: Generic DT based system Backtrace: [] (dump_backtrace) from [] (show_stack+0x18/0x1c) r7:00000009 r6:600e0013 r5:00000000 r4:c05bc0f4 [] (show_stack) from [] (dump_stack+0x8c/0xa0) [] (dump_stack) from [] (__warn+0xec/0x104) r7:00000009 r6:c0515e88 r5:00000000 r4:00000000 [] (__warn) from [] (warn_slowpath_null+0x28/0x30) r9:00000000 r8:00000000 r7:ffffeff0 r6:0000000
    2020-06-28
    0 0 3437
  • 使用HiTool刷Hi3516D v300后,只输出空格和换行,好像没有从spi flash启动,请问大家有没有遇到过的? uboot驱动和底层不太熟:'( 。 启动模式这部分的电路如下: HiTool刷的时候好像刷成功了,HiTool的下面的输出日志可以看到下载过程: [code]串口已经连接,请给单板上电,若已经上电,请断电后重新上电。 ########################################################################################################## ---- 10% ######################################################################################################### ---- 20% ######################################################################################################### ---- 30% ######################################################################################################### ---- 40% ######################################################################################################### ---- 50% ######################################################################################################### ---- 60% ######################################################################################################### ---- 70% ######################################################################################################### ---- 80% ######################################################################################################### ---- 90% ####################################################################################################### ---- 100% Boot download completed!       System startup U-Boot 2016.11 (Sep 05 2018 - 14:41:50 +0800)hi3516dv300 Relocation Offset is: 0d6d9000 Relocating to 8fed9000, new gd at 8fe38ef0, sp at 8fe38ed0 SPI Nor:  Check Flash Memory Controller v100 ... Found SPI Nor ID Table Version 1.0 SPI Nor(cs 0) ID: 0xc8 0x40 0x18 Block:64KB Chip:16MB Name:"GD25Q128" SPI Nor total size: 16MB NAND:  0 MiB MMC:    *** Warning - bad CRC, using default environment In:    serial Out:   serial Err:   serial Net:   eth0 Warning: eth0 (eth0) using random MAC address - 42:ed:b3:30:4b:c9 start download process. Boot started successfully! Send command:        getinfo version version: U-Boot 2016.11 [EOT](OK) Send command:        getinfo bootmode spi [EOT](OK) Send command:        sf probe 0 [EOT](OK) Send command:        getinfo spi Block:64KB Chip:16MB*1 ID:0xC8 0x40 0x18 Name:"GD25Q128" [EOT](OK) Send command:        sf probe 0 [EOT](OK) Send command:        sf erase 0x0 0x100000 Erasing at 0x10000 --   6% complete. Erasing at 0x20000 --  12% complete. Erasing at 0x30000 --  18% complete. Erasing at 0x40000 --  25% complete. Erasing at 0x50000 --  31% complete. Erasing at 0x60000 --  37% complete. Erasing at 0x70000 --  43% complete. Erasing at 0x80000 --  50% complete. Erasing at 0x90000 --  56% complete. Erasing at 0xa0000 --  62% complete. Erasing at 0xb0000 --  68% complete. Erasing at 0xc0000 --  75% complete. Erasing at 0xd0000 --  81% complete. Erasing at 0xe0000 --  87% complete. Erasing at 0xf0000 --  93% complete. Erasing at 0x100000 -- 100% complete. SF: 1048576 bytes @ 0x0 Erased: OK [EOT](OK) Send command:        sf write 0x81000000 0x0 0x100000 device 0 offset 0x0, size 0x100000 Writing at 0x10000 --   6% complete. Writing at 0x20000 --  12% complete. Writing at 0x30000 --  18% complete. Writing at 0x40000 --  25% complete. Writing at 0x50000 --  31% complete. Writing at 0x60000 --  37% complete. Writing at 0x70000 --  43% complete. Writing at 0x80000 --  50% complete. Writing at 0x90000 --  56% complete. Writing at 0xa0000 --  62% complete. Writing at 0xb0000 --  68% complete. Writing at 0xc0000 --  75% complete. Writing at 0xd0000 --  81% complete. Writing at 0xe0000 --  87% complete. Writing at 0xf0000 --  93% complete. Writing at 0x100000 -- 100% complete. SF: 1048576 bytes @ 0x0 Written: OK [EOT](OK) Send command:        reset reset success! Boot burned successfully. 串口已经连接,请给单板上电,若已经上电,请断电后重新上电。 # ---- 36% # ---- 100% Boot download completed!                                System startup U-Boot 2016.11 (Sep 05 2018 - 14:41:50 +0800)hi3516dv300 Relocation Offset is: 0d6d9000 Relocating to 8fed9000, new gd at 8fe38ef0, sp at 8fe38ed0 SPI Nor:  Check Flash Memory Controller v100 ... Found SPI Nor ID Table Version 1.0 SPI Nor(cs 0) ID: 0xc8 0x40 0x18 Block:64KB Chip:16MB Name:"GD25Q128" SPI Nor total size: 16MB NAND:  0 MiB MMC:    *** Warning - bad CRC, using default environment In:    serial Out:   serial Err:   serial Net:   eth0 Warning: eth0 (eth0) using random MAC address - 42:ed:b3:30:4b:c9 start download process. Boot started successfully! Send command:        getinfo version version: U-Boot 2016.11 [EOT](OK) Send command:        getinfo bootmode spi [EOT](OK) Send command:        sf probe 0 [EOT](OK) Send command:        getinfo spi Block:64KB Chip:16MB*1 ID:0xC8 0x40 0x18 Name:"GD25Q128" [EOT](OK) Send command:        sf probe 0 [EOT](OK) Send command:        sf erase 0x0 0x100000 Erasing at 0x10000 --   6% complete. Erasing at 0x20000 --  12% complete. Erasing at 0x30000 --  18% complete. Erasing at 0x40000 --  25% complete. Erasing at 0x50000 --  31% complete. Erasing at 0x60000 --  37% complete. Erasing at 0x70000 --  43% complete. Erasing at 0x80000 --  50% complete. Erasing at 0x90000 --  56% complDte. Erasing at 0xa0000 --  62% complete. Erasing at 0xb0000 --  68% complete. Erasing at 0xc0000 --  75% complete. Erasing at 0xd0000 --  81% complete. Erasing at 0xe0000 --  87% complete. Erasing at 0xf0000 --  93% complete. Erasing at 0x100000 -- 100% complete. SF: 1048576 bytes @ 0x0 Erased: OK [EOT](OK) Send command:        sf write 0x81000000 0x0 0x100000 device 0 offset 0x0, size 0x100000 Writing at 0x10000 --   6% complete. Writing at 0x20000 --  12% complete. Writing at 0x30000 --  18% complete. Writing at 0x40000 --  25% complete. Writing at 0x50000 --  31% complete. Writing at 0x60000 --  37% complete. Writing at 0x70000 --  43% complete. Writing at 0x80000 --  50% complete. Writing at 0x90000 --  56% complete. Writing at 0xa0000 --  62% complete. Writing at 0xb0000 --  68% complete. Writing at 0xc0000 --  75% complete. Writing at 0xd0000 --  81% complete. Writing at 0xe0000 --  87% complete. Writing at 0xf0000 --  93% complete. Writing at 0x100000 -- 100% complete. SF: 1048576 bytes @ 0x0 Written: OK [EOT](OK) Send command:        mw.b 0x81000000 0xFF 0x2f0000 [EOT](OK) downloadFileSerial: file=E:\workplace\project\uImage                     address=81000000 Partition 1         length=        3042294 Send command:        loady 0xffffffff81000000 ## Ready for binary (ymodem) download to 0x81000000 at 115200 bps... C#################### 100K #################### 200K #################### 300K #################### 400K #################### 500K #################### 600K #################### 700K #################### 800K #################### 900K #################### 1000K #################### 1100K #################### 1200K #################### 1300K #################### 1400K #################### 1500K #################### 1600K #################### 1700K #################### 1800K #################### 1900K #################### 2000K #################### 2100K #################### 2200K #################### 2300K #################### 2400K #################### 2500K #################### 2600K #################### 2700K #################### 2800K #################### 2900K ############## Transfer is finishing, wait a moment please. CxyzModem - CRC mode, 1(SOH)/2971(STX)/0(CAN) packets, 3 retries ## Total Size      = 0x002e6bf6 = 3042294 Bytes [EOT](OK) Send command:        sf probe 0 [EOT](OK) Send command:        sf erase 0x100000 0x320000 Erasing at 0x110000 --   2% complete. Erasing at 0x120000 --   4% complete. Erasing at 0x130000 --   6% complete. Erasing at 0x140000 --   8% complete. Erasing at 0x150000 --  10% complete. Erasing at 0x160000 --  12% complete. Erasing at 0x170000 --  14% complete. Erasing at 0x180000 --  16% complete. Erasing at 0x190000 --  18% complete. Erasing at 0x1a0000 --  20% complete. Erasing at 0x1b0000 --  22% complete. Erasing at 0x1c0000 --  24% complete. Erasing at 0x1d0000 --  26% complete. Erasing at 0x1e0000 --  28% complete. Erasing at 0x1f0000 --  30% complete. Erasing at 0x200000 --  32% complete. Erasing at 0x210000 --  34% complete. Erasing at 0x220000 --  36% complete. Erasing at 0x230000 --  38% complete. Erasing at 0x240000 --  40% complete. Erasing at 0x250000 --  42% complete. Erasing at 0x260000 --  44% complete. Erasing at 0x270000 --  46% complete. Erasing at 0x280000 --  48% complete. Erasing at 0x290000 --  50% complete. Erasing at 0x2a0000 --  52% complete. Erasing at 0x2b0000 --  54% complete. Erasing at 0x2c0000 --  56% complete. Erasing at 0x2d0000 --  58% complete. Erasing at 0x2e0000 --  60% complete. Erasing at 0x2f0000 --  62% complete. Erasing at 0x300000 --  64% complete. Erasing at 0x310000 --  66% complete. Erasing at 0x320000 --  68% complete. Erasing at 0x330000 --  70% complete. Erasing at 0x340000 --  72% complete. Erasing at 0x350000 --  74% complete. Erasing at 0x360000 --  76% complete. Erasing at 0x370000 --  78% complete. Erasing at 0x380000 --  80% complete. Erasing at 0x390000 --  82% complete. Erasing at 0x3a0000 --  84% complete. Erasing at 0x3b0000 --  86% complete. Erasing at 0x3c0000 --  88% complete. Erasing at 0x3d0000 --  90% complete. Erasing at 0x3e0000 --  92% complete. Erasing at 0x3f0000 --  94% complete. Erasing at 0x400000 --  96% complete. Erasing at 0x410000 --  98% complete. Erasing at 0x420000 -- 100% complete. SF: 3276800 bytes @ 0x100000 Erased: OK [EOT](OK) Send command:        sf write 0x81000000 0x100000 0x2f0000 device 0 offset 0x100000, size 0x2f0000 Writing at 0x110000 --   2% complete. Writing at 0x120000 --   4% complete. Writing at 0x130000 --   6% complete. Writing at 0x140000 --   8% complete. Writing at 0x150000 --  10% complete. Writing at 0x160000 --  12% complete. Writing at 0x170000 --  14% complete. Writing at 0x180000 --  17% complete. Writing at 0x190000 --  19% complete. Writing at 0x1a0000 --  21% complete. Writing at 0x1b0000 --  23% complete. Writing at 0x1c0000 --  25% complete. Writing at 0x1d0000 --  27% complete. Writing at 0x1e0000 --  29% complete. Writing at 0x1f0000 --  31% complete. Writing at 0x200000 --  34% complete. Writing at 0x210000 --  36% complete. Writing at 0x220000 --  38% complete. Writing at 0x230000 --  40% complete. Writing at 0x240000 --  42% complete. Writing at 0x250000 --  44% complete. Writing at 0x260000 --  46% complete. Writing at 0x270000 --  48% complete. Writing at 0x280000 --  51% complete. Writing at 0x290000 --  53% complete. Writing at 0x2a0000 --  55% complete. Writing at 0x2b0000 --  57% complete. Writing at 0x2c0000 --  59% complete. Writing at 0x2d0000 --  61% complete. Writing at 0x2e0000 --  63% complete. Writing at 0x2f0000 --  65% complete. Writing at 0x300000 --  68% complete. Writing at 0x310000 --  70% complete. Writing at 0x320000 --  72% complete. Writing at 0x330000 --  74% complete. Writing at 0x340000 --  76% complete. Writing at 0x350000 --  78% complete. Writing at 0x360000 --  80% complete. Writing at 0x370000 --  82% complete. Writing at 0x380000 --  85% complete. Writing at 0x390000 --  87% complete. Writing at 0x3a0000 --  89% complete. Writing at 0x3b0000 --  91% complete. Writing at 0x3c0000 --  93% complete. Writing at 0x3d0000 --  95% complete. Writing at 0x3e0000 --  97% complete. Writing at 0x3f0000 -- 100% complete. SF: 3080192 bytes @ 0x100000 Written: OK [EOT](OK) Partition kernel burnt successfully! Send command:        mw.b 0x81000000 0xFF 0x9d0000 [EOT](OK) downloadFileSerial: file=E:\workplace\\rootfs.img                     address=81000000 Partition 1         length=        5242880 Send command:        loady 0xffffffff81000000[/code] 大家帮看看是什么问题,谢谢谢谢!
    2020-04-14
    5 0 2394
  • 大家好,调试tw2968的驱动时,视频与音频输入都已调试通过,现在音频输出(playback)一直没有输出,从cpu的输出量取数据线的波形都正常,只是到2968后,2968的AOUT没有输出。 现在可以确定CPU输出的信号是正常的,以下是音频的相关计算器配置,请大家帮看看: static void tw2968_audio_init(unsigned char chip_addr) {     /* Analog Power Down Control */     //tw2968_byte_write(chip_addr, 0xCE, 0x40 );     /* 0xD0, 0xD1, 0x7F - Analog Audio Input Gain */     tw2968_byte_write(chip_addr, 0x7f, 0x88);/* [7:4] AIGAIN5 [3:0] MIXRATIO5 */     tw2968_byte_write(chip_addr, 0xD0, 0x88);/* [7:4] AIGAIN2 [3:0] AIGAIN1 */     tw2968_byte_write(chip_addr, 0xD1, 0x88);/* [7:4] AIGAIN4 [3:0] AIGAIN3 */     /* Number of Audio to be Recorded */     tw2968_byte_write(chip_addr, 0xD2, 0x03);/* recode: I2S format, 16 audios */     /* 0xD3, 0xD4, 0xD5, 0xD6, 0xD7, 0xD8, 0xD9, 0xDA – Sequence of Audio to be Recorded*/     tw2968_byte_write(chip_addr, 0xD3, 0x10);/* default value: 1 0 */     tw2968_byte_write(chip_addr, 0xD7, 0x32);/* default value: 9 8 */     /* playback: I2S, master, 16bit, ACLKR pin is output */     tw2968_byte_write(chip_addr, 0xDB, 0xE1);     /* u-Law/A-Law Output and Mix Mute Control */     tw2968_byte_write(chip_addr, 0xDC, 0x00);/* PCM output */     /* Mix Output Selection */     tw2968_byte_write(chip_addr, 0xE0, 0x10);/* Select playback audio of the first stage chips*/     /* Audio Detection Threshold, 8K typical setting value */     tw2968_byte_write(chip_addr, 0xE1, 0xf0);     tw2968_byte_write(chip_addr, 0xE2, 0x33);     tw2968_byte_write(chip_addr, 0xE3, 0x33);     tw2968_set_audio_samplerate(TW2968_SAMPLE_RATE_16000); #if 1     /* Audio Clock Increment, ACKI[21:0]: 09B583h for fs = 8kHz is default. */     tw2968_byte_write(chip_addr, 0xF0, 0x23);//0x23 0x91);/* ACKI[7:0] */     tw2968_byte_write(chip_addr, 0xF1, 0x48);///* 0x48 0x8B ACKI[15:8] */     tw2968_byte_write(chip_addr, 0xF2, 0x07);//0x07 0x30);/* ACKI[21:16] */ #endif     /* [3] ACKI control is automatically set up by AFMD register values */     /* [2:0] AFAUTO control mode. 0: 8kHz setting(default). */         tw2968_byte_write(chip_addr, 0x70, 0x09);/* [2:0] 0:8k, 1:16k, 2:32k, 3:44.1k 4:48k */         //tw2968_byte_write(chip_addr, 0x71, 0x60);     /* Audio Clock Control */     tw2968_byte_write(chip_addr, 0xF8, 0xc4);/* bit2: Loop open in ACKG block */     /* Enable state register updating and interrupt request of audio AIN5 detection for each input*/         tw2968_byte_write(chip_addr, 0x73, 0x00);     /* ADATM I2S Output Select (default value)*/ /* Mix Digital and Analog out set to  */     tw2968_byte_write(chip_addr, 0x7B, 0x00);/* Select record audio of channel 51(AIN51)*/     tw2968_byte_write(chip_addr, 0x7C, 0x00);/* Select record audio of channel 51(AIN51)*/     /* MIX_MUTE_A5 ?????? */     tw2968_byte_write(chip_addr, 0x7E, 0xa0);     /* Audio Fs Mode Control */     tw2968_byte_write(chip_addr, 0x89, 0x04);/* AIN5MD=1, AFS384=0 */ }
    2016-05-09
    8 0 5127
易百纳技术社区
共4条
易百纳技术社区