实时录播延迟长达100ms
请问rk3308如何降低延迟,我现在测试得出的延迟达到了100ms,项目要求在10ms以内。arecord -D hw:0,0 --period-size=192 --buffer-size=384 -r 48000 -c 2 -f S16_LE -t raw | aplay -D hw:7,0 -t raw --period-size=192 --buffer-size=384 -r 48000 -c 2 -f S16_LE,示波器抓到的波形显示延迟达到了100ms。附件是开机信息。 开机信息在这贴一下,没想到附件下载会丢经验。。。U-Boot TPL 2017.09-g88aebe4 V1.24
REGFB: 0x00000030, 0x00000030
In
589MHz
DDR3
Col=10 Bank=8 Row=14 Size=256MB
msch:1
Returning to boot ROM...
Boot1 Release Time: Oct8 2018 09:28:24, version: 1.08
chip_id:000000,0
ChipType = 0x13, 35791043
DPLL = 1300 MHz
sfc nor id: ff ff ff
sfc_nand_init
DPLL = 1300 MHz
sfc_nand id: ff ff ff
DPLL = 1300 MHz
No.1 FLASH ID:ec da 10 95 46 c6
SFTL version: 5.0.48 20180930
SdmmcInit=0 NOT PRESENT
StorageInit ok = 35669186
SecureMode = 0
Secure read PBA: 0x4
Secure read PBA: 0x104
Secure read PBA: 0x204
Secure read PBA: 0x304
Secure read PBA: 0x404
SecureInit ret = 0, SecureMode = 0
GPT part:0, name: uboot, start:0x2000, size:0x1000
GPT part:1, name: trust, start:0x3000, size:0x1000
GPT part:2, name: misc, start:0x4000, size:0x800
GPT part:3, name: recovery, start:0x4800, size:0x6000
GPT part:4, name: boot, start:0xa800, size:0x4800
GPT part:5, name: rootfs, start:0xf000, size:0x14000
GPT part:6, name: oem, start:0x23000, size:0xd000
GPT part:7, name: userdata, start:0x30000, size:0x437df
find partition:uboot OK. first_lba:0x2000.
find partition:trust OK. first_lba:0x3000.
LoadTrust Addr:0x3000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x600000, size=0x92c04
RunBL31 0x10000
NOTICE:BL31: v1.3(release):005c64b
NOTICE:BL31: Built : 09:44:10, Aug 24 2018
INFO: Lastlog: last=0x100000, realtime=0x102000, size=0x2000
NOTICE:BL31:Rockchip release version: v1.0
INFO: ARM GICv2 driver initialized
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 1
INFO: plat_rockchip_pmu_init: pd status 0xe
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x600000
INFO: SPSR = 0x3c9
U-Boot 2017.09 (Mar 11 2019 - 15:38:51 +0800)
Model: Rockchip RK3308 EVB
DRAM:254 MiB
Relocation Offset is: 0f925000
pwm-regulator(vdd-core): init 1044000 uV
regulator(vdd-core) init 1044000 uV
MMC: dwmmc@ff490000: 0
Using default environment
In: serial@ff0c0000
Out: serial@ff0c0000
Err: serial@ff0c0000
Model: Rockchip RK3308 EVB
MMC Device 1 not found
no mmc device at slot 1
Card did not respond to voltage select!
mmc_init: -95, time 9
Device 0: No.1 FLASH ID:ec da 10 95 46 c6
SFTL version: 5.0.48 20180930
...FtlVpcCheckAndModify enter...
FtlGcRefreshBlock0x103
FtlGcRefreshBlock0xfc
Vendor: 0x0308 Rev: V1.00 Prod: rkflash-NandFlash
Type: Hard Disk
Capacity: 231.0 MB = 0.2 GB (473088 x 512)
... is now current device
boot mode: None
CLK:
apll 816000 KHz
dpll 1300000 KHz
vpll0 1179647 KHz
vpll1 903167 KHz
aclk_bus 185714 KHz
hclk_bus 100000 KHz
pclk_bus 100000 KHz
aclk_peri 185714 KHz
hclk_peri 100000 KHz
pclk_peri 100000 KHz
hclk_audio 98303 KHz
pclk_audio 98303 KHz
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot:0
ANDROID: reboot reason: "(none)"
FDT load addr 0x10f00000 size 252 KiB
Booting kernel at 0x4080000 with fdt at 4476000...
## Booting Android Image at 0x04080000 ...
Kernel load addr 0x02080000 size 4051 KiB
## Flattened Device Tree blob at 04476000
Booting using the fdt blob at 0x4476000
Uncompressing Kernel Image ... OK
Loading Device Tree to 000000000f501000, end 000000000f513ec1 ... OK
Adding bank: start=0x00200000, size=0x0fe00000
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.143 (vhd5floor@ubuntu) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #2 SMP PREEMPT Mon Feb 18 14:50:01 CST 2019
[ 0.000000] Boot CPU: AArch64 Processor
[ 0.000000] earlycon: Early serial console at MMIO32 0xff0c0000 (options '')
[ 0.000000] bootconsole enabled
[ 0.000000] Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] PERCPU: Embedded 18 pages/cpu @ffffffc00ff59000 s35992 r8192 d29544 u73728
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.Total pages: 64008
[ 0.000000] Kernel command line: storagemedia=nand androidboot.slot_suffix= androidboot.serialno=c3d9b8674f4b94f6rootwait earlycon=uart8250,mmio32,0xff0c0000 swiotlb=1 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=squashfs snd_aloop.index=7
[ 0.000000] PID hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.000000] software IO TLB (0MB) mapped at
[ 0.000000] Memory: 246468K/260096K available (5118K kernel code, 372K rwdata, 1756K rodata, 320K init, 493K bss, 13628K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000 ( 246 GB)
[ 0.000000] .init : 0xffffff8008740000 - 0xffffff8008790000 ( 320 KB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008580000 (5120 KB)
[ 0.000000] .rodata : 0xffffff8008580000 - 0xffffff8008740000 (1792 KB)
[ 0.000000] .data : 0xffffff8008790000 - 0xffffff80087ed008 ( 373 KB)
[ 0.000000] fixed : 0xffffffbffe7fd000 - 0xffffffbffec00000 (4108 KB)
[ 0.000000] PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000 ( 16 MB)
[ 0.000000] memory: 0xffffffc000200000 - 0xffffffc010000000 ( 254 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000]Build-time adjustment of leaf fanout to 64.
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.001727] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000)
[ 0.002677] pid_max: default: 32768 minimum: 301
[ 0.003222] Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.003824] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.005243] sched-energy: CPU device node has no sched-energy-costs
[ 0.005858] Invalid sched_group_energy for CPU0
[ 0.006276] CPU0: update cpu_capacity 1024
[ 0.006697] ASID allocator initialised with 65536 entries
[ 0.016429] Detected VIPT I-cache on CPU1
[ 0.016484] Invalid sched_group_energy for CPU1
[ 0.016489] CPU1: update cpu_capacity 1024
[ 0.016493] CPU1: Booted secondary processor
[ 0.019445] Detected VIPT I-cache on CPU2
[ 0.019481] Invalid sched_group_energy for CPU2
[ 0.019486] CPU2: update cpu_capacity 1024
[ 0.019490] CPU2: Booted secondary processor
[ 0.022486] Detected VIPT I-cache on CPU3
[ 0.022521] Invalid sched_group_energy for CPU3
[ 0.022525] CPU3: update cpu_capacity 1024
[ 0.022529] CPU3: Booted secondary processor
[ 0.022598] Brought up 4 CPUs
[ 0.027806] SMP: Total of 4 processors activated.
[ 0.028247] CPU: All CPU(s) started at EL2
[ 0.028752] Invalid sched_group_energy for CPU3
[ 0.029174] Invalid sched_group_energy for Cluster3
[ 0.029621] Invalid sched_group_energy for CPU2
[ 0.030051] Invalid sched_group_energy for Cluster2
[ 0.030500] Invalid sched_group_energy for CPU1
[ 0.030916] Invalid sched_group_energy for Cluster1
[ 0.031375] Invalid sched_group_energy for CPU0
[ 0.031792] Invalid sched_group_energy for Cluster0
[ 0.032783] devtmpfs: initialized
[ 0.050879] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.051816] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.052758] pinctrl core: initialized pinctrl subsystem
[ 0.054287] NET: Registered protocol family 16
[ 0.059511] cpuidle: using governor menu
[ 0.059914] Registered FIQ tty driver
[ 0.060487] vdso: 2 pages (1 code @ ffffff8008586000, 1 data @ ffffff8008794000)
[ 0.061214] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.062033] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.065490] console enabled
[ 0.065858] pstore: Registered ramoops as persistent store backend
[ 0.066430] ramoops: attached 0xf0000@0x110000, ecc: 0/0
[ 0.084109] fiq debugger fiq mode enabled
[[ 0.084870] console enabled
0.084870] console enabled
[ 0.085563] bootconsole disabled
[ 0.085563] bootconsole disabled
[ 0.086178] Registered fiq debugger ttyFIQ0
WARNING: suspend_mode_handler: Not support call: 0x4
[ 0.098998] vcc_1v8: regulator get failed, ret=-517
[ 0.099899] vcc_1v8_codec: regulator get failed, ret=-517
[ 0.100731] vcc_1v8: supplied by vcc_io
[ 0.100875] vcc_1v8_codec: supplied by vcc_io
[ 0.104165] Advanced Linux Sound Architecture Driver Initialized.
[ 0.104843] Bluetooth: Core ver 2.21
[ 0.104931] NET: Registered protocol family 31
[ 0.104950] Bluetooth: HCI device and connection manager initialized
[ 0.104971] Bluetooth: HCI socket layer initialized
[ 0.104989] Bluetooth: L2CAP socket layer initialized
[ 0.105029] Bluetooth: SCO socket layer initialized
[ 0.106131] rockchip-cpuinfo cpuinfo: Serial : 0000000000000000
[ 0.106689] clocksource: Switched to clocksource arch_sys_counter
[ 0.109130] thermal thermal_zone1: power_allocator: sustainable_power will be estimated
[ 0.109468] NET: Registered protocol family 2
[ 0.110156] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.110211] TCP bind hash table entries: 2048 (order: 3, 32768 bytes)
[ 0.110273] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.110358] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.110389] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.110594] NET: Registered protocol family 1
[ 0.111439] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[ 0.122730] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.125864] io scheduler noop registered (default)
[ 0.127005] phy phy-ff008000.syscon:usb2-phy@100.0: Failed to get VBUS supply regulator
[ 0.131077] dma-pl330 ff2c0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.131126] dma-pl330 ff2c0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
[ 0.133552] dma-pl330 ff2d0000.dma-controller: Loaded driver for PL330 DMAC-241330
[ 0.133594] dma-pl330 ff2d0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[ 0.133951] rockchip-pvtm ff000000.grf:pmu-pvtm: failed to get rst 0 pmu
[ 0.134109] rockchip-pvtm ff00c000.syscon:pvtm: failed to get rst 0 core
[ 0.135572] Serial: 8250/16550 driver, 5 ports, IRQ sharing disabled
[ 0.137923] ff0e0000.serial: ttyS4 at MMIO 0xff0e0000 (irq = 12, base_baud = 6770833) is a 16550A
[ 0.139801] Initialized drm 1.1.0 20060810
[ 0.139950] random: nonblocking pool is initialized
[ 0.142341] Unable to detect cache hierarchy for CPU 0
[ 0.142892] Rockchip WiFi SYS interface (V1.00) ...
[ 0.143287] ff400000.usb supply vusb_d not found, using dummy regulator
[ 0.143377] ff400000.usb supply vusb_a not found, using dummy regulator
[ 0.145606] dwc2 ff400000.usb: Configuration mismatch. dr_mode forced to device
[ 0.145647] dwc2 ff400000.usb: 128 invalid for host_nperio_tx_fifo_size. Check HW configuration.
[ 0.145668] dwc2 ff400000.usb: 256 invalid for host_perio_tx_fifo_size. Check HW configuration.
[ 0.145735] dwc2 ff400000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[ 0.146966] i2c /dev entries driver
[ 0.148090] rk3x-i2c ff050000.i2c: Initialized RK3xxx I2C bus at ffffff80088a6000
[ 0.150784] rk_tsadcv2_temp_to_code: Invalid conversion table: code=4095, temperature=2147483647
[ 0.151010] rockchip-thermal ff1f0000.tsadc: tsadc is probed successfully!
[ 0.151533] Bluetooth: HCI UART driver ver 2.3
[ 0.151556] Bluetooth: HCI UART protocol H4 registered
[ 0.151568] Bluetooth: HCI UART protocol LL registered
[ 0.151844] cpu cpu0: leakage=0
[ 0.152074] cpu cpu0: Failed to get pvtm
[ 0.154645] Synopsys Designware Multimedia Card Interface Driver
[ 0.155675] dwmmc_rockchip ff4a0000.dwmmc: num-slots property not found, assuming 1 slot is available
[ 0.155856] dwmmc_rockchip ff4a0000.dwmmc: IDMAC supports 32-bit address mode.
[ 0.155903] dwmmc_rockchip ff4a0000.dwmmc: Using internal DMA controller.
[ 0.155926] dwmmc_rockchip ff4a0000.dwmmc: Version ID is 270a
[ 0.155994] dwmmc_rockchip ff4a0000.dwmmc: DW MMC controller at irq 25,32 bit host data width,256 deep fifo
[ 0.156073] dwmmc_rockchip ff4a0000.dwmmc: No vmmc regulator found
[ 0.156095] dwmmc_rockchip ff4a0000.dwmmc: No vqmmc regulator found
[ 0.156456] dwmmc_rockchip ff4a0000.dwmmc: allocated mmc-pwrseq
[ 0.167792] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[ 0.178805] dwmmc_rockchip ff4a0000.dwmmc: 1 slots initialized
[ 0.179540] is31fl32xx 1-003f: register write to 0x00 failed (error -6),val=0
[ 0.223768] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 0.225378] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 0.226990] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 0.229862] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 0.230834] mmc0: queuing unknown CIS tuple 0x81 (1 bytes)
[ 0.279773] is31fl32xx 1-003f: register write to 0x00 failed (error -6),val=0
[ 0.286190] mmc_host mmc0: Bus speed (slot 0) = 147456000Hz (slot req 150000000Hz, actual 147456000HZ div = 0)
[ 0.380875] is31fl32xx 1-003f: register write to 0x00 failed (error -6),val=0
[ 0.481960] is31fl32xx_init_regs, write to shutdown register failed
[ 0.482137] is31fl32xx 1-003f: register write to 0x26 failed (error -6),val=1
[ 0.529428] dwmmc_rockchip ff4a0000.dwmmc: Successfully tuned phase to 216
[ 0.532432] mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
[ 0.532517] mmc0: new ultra high speed SDR104 SDIO card at address 0001
[ 0.582965] is31fl32xx 1-003f: register write to 0x26 failed (error -6),val=1
[ 0.683942] is31fl32xx 1-003f: register write to 0x26 failed (error -6),val=1
[ 0.785445] rockchip-dmc dmc: failed to get the count of devfreq-event in /dmc node
[ 0.785915] rockchip-dmc dmc: Failed to get leakage
[ 0.786104] rockchip-dmc dmc: Failed to get pvtm
[ 0.786657] rockchip-dmc dmc: failed to get vop bandwidth to dmc rate
[ 0.786746] rockchip-dmc dmc: don't add devfreq feature
[ 0.790198] rknandc_base v1.1 2017-01-11
[ 0.790835] rknandc ff4b0000.nandc: rknandc_probe clk rate = 147456000
[ 0.790953] rkflash_dev_init
[ 0.790985] init rkflash
[ 0.791048] SFTL version: 5.0.48 20180930
[ 0.849545] ...FtlVpcCheckAndModify enter...
[ 0.874088] FtlCheckVpc e5 = 800
[ 0.874108] FtlCheckVpc fb = 800
[ 0.875459] rkflash init success
[ 0.875866] rkflashd vendor storage init ok !
[ 1.049008]rkflash0: p1 p2 p3 p4 p5 p6 p7 p8
[ 1.050532] rksfc_base v1.1 2016-01-08
[ 1.054161] rk3308-acodec ff560000.acodec: Don't need pa-drv gpio
[ 1.054193] rk3308-acodec ff560000.acodec: De-pop as much as possible
[ 1.054764] 1-001a supply AVDD not found, using dummy regulator
[ 1.054865] 1-001a supply DVDD not found, using dummy regulator
[ 1.054900] 1-001a supply PVDD_A not found, using dummy regulator
[ 1.054933] 1-001a supply PVDD_B not found, using dummy regulator
[ 1.054967] 1-001a supply PVDD_C not found, using dummy regulator
[ 1.055008] 1-001a supply PVDD_D not found, using dummy regulator
[ 1.055168] tas571x 1-001a: error requesting pdn_gpio: -16
[ 1.055372] tas571x: probe of 1-001a failed with error -16
[ 1.058041] rk-multicodecs bluetooth-sound: card: 0 has not been locked, re-probe again
[ 1.058078] rk-multicodecs bluetooth-sound: check_lock_card failed: -517
[ 1.129226] rk-multicodecs vad-acodec-sound: multicodec <-> ff320000.i2s mapping ok
[ 1.130287] input: rockchip,rk3308-vad Headphones as /devices/platform/vad-acodec-sound/sound/card0/input0
[ 1.131479] NET: Registered protocol family 10
[ 1.132511] NET: Registered protocol family 17
[ 1.132575] NET: Registered protocol family 15
[ 1.132730] Bluetooth: RFCOMM TTY layer initialized
[ 1.132750] Bluetooth: RFCOMM socket layer initialized
[ 1.132779] Bluetooth: RFCOMM ver 1.11
[ 1.132798] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.132812] Bluetooth: HIDP socket layer initialized
[ 1.132826] : Enter rfkill_wlan_init
[ 1.133286] : Enter rfkill_wlan_probe
[ 1.133316] : wlan_platdata_parse_dt: wifi_chip_type = ap6255
[ 1.133324] : wlan_platdata_parse_dt: enable wifi power control.
[ 1.133332] : wlan_platdata_parse_dt: wifi power controled by gpio.
[ 1.133397] : wlan_platdata_parse_dt: get property: WIFI,host_wake_irq = 0, flags = 1.
[ 1.133411] : wlan_platdata_parse_dt: The ref_wifi_clk not found !
[ 1.133418] : rfkill_wlan_probe: init gpio
[ 1.133430] : Exit rfkill_wlan_probe
[ 1.133494] : Enter rfkill_rk_init
[ 1.133878] : bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 135.
[ 1.133912] : bluetooth_platdata_parse_dt: get property: BT,power_gpio = 139.
[ 1.133952] : bluetooth_platdata_parse_dt: get property: BT,wake_host_irq = 140.
[ 1.133964] : bluetooth_platdata_parse_dt: clk_get failed!!!.
[ 1.134023] : Request irq for bt wakeup host
[ 1.134081] : ** disable irq
[ 1.134234] : bt_default device registered.
[ 1.134524] flash vendor_init_thread!
[ 1.134541] flash vendor storage:20170308 ret = -1
[ 1.136134] input: adc-keys as /devices/platform/adc-keys/input/input1
[ 1.137881] rk-multicodecs bluetooth-sound: dummy_codec <-> ff350000.i2s mapping ok
[ 1.138836] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.2 (r)
[ 1.138864] ======== dhd_wlan_init_plat_data ========
[ 1.138872] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[ 1.138880] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[ 1.138888] : rockchip_wifi_get_oob_irq: Enter
[ 1.138898] dhd_wlan_init_gpio: host_oob_irq: 34
[ 1.138906] dhd_wlan_init_gpio: host_oob_irq_flags=0x418
[ 1.138913] dhd_wifi_platform_load: Enter
[ 1.138970] Power-up adapter 'DHD generic adapter'
[ 1.139219] wifi_platform_set_power = 1
[ 1.139238] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 1.139246] : rockchip_wifi_power: 1
[ 1.139255] : wifi turn on power. -1
[ 1.139573] input: gpio-keys as /devices/platform/gpio-keys/input/input2
[ 1.140022] hctosys: unable to open rtc device (rtc0)
[ 1.149767] vcc_sd: disabling
[ 1.149806] vbus_host: disabling
[ 1.149819] vccio_sd: disabling
[ 1.150122] ALSA device list:
[ 1.150136] #0: rockchip,rk3308-vad
[ 1.150143] #1: rockchip,rk3308-pcm
[ 1.150150] #7: Loopback 1
[ 1.166718] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[ 1.177528] devtmpfs: mounted
[ 1.177793] Freeing unused kernel memory: 320K
mount: mounting /dev/block/by-name/misc on /misc failed: No such file or directory
mount: mounting /dev/block/by-name/oem on /oem failed: No such file or directory
mount: mounting /dev/block/by-name/userdata on /userdata failed: No such file or directory
Starting logging: OK
Populating /dev using udev: [ 1.439764] wifi_platform_bus_enumerate device present 1
[ 1.439802] ======== Card detection to detect SDIO card! ========
[ 1.439814] mmc0:mmc host rescan start!
[ 1.455986] bcmsdh_register: register client driver
[ 1.456144] bcmsdh_sdmmc_probe: Enter num=1
[ 1.456222] bcmsdh_sdmmc_probe: Enter num=2
[ 1.456233] bus num (host idx)=0, slot num (rca)=1
[ 1.456243] found adapter info 'DHD generic adapter'
[ 1.456287] sdioh_attach: set sd_f2_blocksize 256
[ 1.456322] sdioh_attach: sd clock rate = 0
[ 1.456518] F1 signature read @0x18000000=0x15264345
[ 1.458851] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x6 pkg:0x2
[ 1.459255] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[ 1.459356] dhd_conf_set_chiprev: chip=0x4345, chiprev=6
[ 1.459875] CFG80211-ERROR) wl_setup_wiphy : Registering Vendor80211
[ 1.461038] CFG80211-ERROR) wl_init_prof : wl_init_prof: No profile
[ 1.461284] wl_escan_attach: Enter
[ 1.461345] wl_escan_init: Enter
[ 1.461434] wl_create_event_handler(): thread:wl_escan_handler:86 started
[ 1.461438] tsk Enter, tsk = 0xffffffc00e190180
[ 1.461651] dhd_attach(): thread:dhd_watchdog_thread:87 started
[ 1.461956] dhd_attach(): thread:dhd_dpc:88 started
[ 1.462042] dhd_attach(): thread:dhd_rxf:89 started
[ 1.462063] dhd_deferred_work_init: work queue initialized
[ 1.462117] dhd_bus_set_default_min_res_mask: Unhandled chip id
[ 1.462329] sdioh_cis_read: func_cis_ptr=0x10ac
[ 1.470205] Dongle Host Driver, version 1.579.77.41.2 (r)
[ 1.471101] Register interface MAC: 80:c5:f2:2e:e8:33
[ 1.471101]
[ 1.471229] dhd_wl_ioctl: returning as busstate=0
[ 1.471247] dhd_dbg_detach_pkt_monitor, 2204
[ 1.471257] dhd_bus_devreset: == Power OFF ==
[ 1.471456] bcmsdh_oob_intr_unregister: Enter
[ 1.471473] bcmsdh_oob_intr_unregister: irq is not registered
[ 1.471489] dhd_txglom_enable: enable 0
[ 1.471501] dhd_conf_set_txglom_params: txglomsize=0, deferred_tx_len=0, bus_txglom=-1
[ 1.471511] dhd_conf_set_txglom_params: tx_in_rx=1, txinrx_thres=-1, dhd_txminmax=1
[ 1.471521] dhd_conf_set_txglom_params: tx_max_offset=0, txctl_tmo_fix=5
[ 1.471531] sdioh_set_mode: set txglom_mode to copy
[ 1.471539] dhd_bus_devreset:WLAN OFF DONE
[ 1.471573] wifi_platform_set_power = 0
[ 1.471584] ======== PULL WL_REG_ON(-1) LOW! ========
[ 1.471594] : rockchip_wifi_power: 0
[ 1.471614] : wifi shut off power.
[ 1.471808] dhd_module_init: Exit err=0
[ 1.473619] udevd: starting version 3.2.5
[ 1.510668] udevd: starting eudev-3.2.5
done
read-only file system detected...done
Will now resize all file systems of types ext2,ext3,ext4,vfat,ntfs
Log saved to /tmp/resizefs.log
Will now check all file systems of types ext2,ext3,ext4,vfat,ntfs
fsck 1.43.9 (8-Feb-2018)
e2fsck 1.43.9 (8-Feb-2018)
/dev/block/by-name/oem was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/block/by-name/oem: 23/880 files (4.3% non-contiguous), 18405/26624 blocks
e2fsck 1.43.9 (8-Feb-2018)
/dev/block/by-name/userdata was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/block/by-name/userdata: 31/34680 files (0.0% non-contiguous), 6001/138220 blocks
Log saved to /tmp/checkfs.log
Will now mount all file systems of types ext2,ext3,ext4,vfat,ntfs,proc,devpts,tmpfs,sysfs
Log saved to /tmp/mountfs.log
Starting system message bus: done
Starting network: ip: RTNETLINK answers: File exists
FAIL
Starting dhcpcd...
dev: loaded udev
[ 2.526764] dhd_ioctl_entry: Interface is down
[ 2.526816] Error getting the SSID
no interfaces have a carrier
forked to background, child pid 246
[ 2.571319] dhd_open: Enter ffffffc00eca5800
[ 2.571378]
[ 2.571378] Dongle Host Driver, version 1.579.77.41.2 (r)
[ 2.571395] wl_android_wifi_on in 1
[ 2.571410] wl_android_wifi_on in 2: g_wifi_on=0
[ 2.571421] wifi_platform_set_power = 1
[ 2.571433] ======== PULL WL_REG_ON(-1) HIGH! ========
[ 2.571446] : rockchip_wifi_power: 1
[ 2.571459] : wifi turn on power. -1
Starting ntpd: OK
Starting pulseaudio: [ 2.871802] sdio_reset_comm():
W: main.c: Running in system mode, but --disallow-exit not set.
W: main.c: Running in system mode, but --disallow-module-loading not set.
N: main.c: Running in system mode, forcibly disabling SHM m[ode.
2.886820] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
E: main.c: Daemon startup failed.
OK
[ 2.903821] mmc_host mmc0: Bus speed (slot 0) = 100000Hz (slot req 100000Hz, actual 100000HZ div = 0)
mkdir: can't create directory '/sys/kernel/config/usb_gadget/rockchip/functions/mass_storage.0': No such file or directory
/etc/init.d/S50usbdevice: line 46: can't create /sys/kernel/config/usb_gadget/rockchip/functions/mass_storage.0/lun.0/file: nonexistent directory
ln: /sys/kernel/config/usb_gadget/rockchip/configs/b.1/f1: No such file or directory
[ 2.929813] file system registered
install_listener('tcp:5037','*smartsocket*')
[ 2.950401] read descriptors
[ 2.950454] read strings
[ 2.971101] mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
[ 2.977298] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.983311] mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.994149] mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
[ 3.217409] mmc_host mmc0: Bus speed (slot 0) = 147456000Hz (slot req 150000000Hz, actual 147456000HZ div = 0)
[ 3.404436] dwmmc_rockchip ff4a0000.dwmmc: Successfully tuned phase to 216
[ 3.404552] sdioh_start: set sd_f2_blocksize 256
[ 3.405137]
[ 3.405137]
[ 3.405137] dhd_bus_devreset: == WLAN ON ==
[ 3.405309] F1 signature read @0x18000000=0x15264345
[ 3.409436] F1 signature OK, socitype:0x1 chip:0x4345 rev:0x6 pkg:0x2
[ 3.410543] DHD: dongle ram size is set to 819200(orig 819200) at 0x198000
[ 3.410672] dhd_bus_set_default_min_res_mask: Unhandled chip id
[ 3.411856] dhd_conf_read_config: Ignore config file /system/etc/firmware/config.txt
[ 3.411928] Final fw_path=/system/etc/firmware/fw_bcm43455c0_ag.bin
[ 3.411951] Final nv_path=/system/etc/firmware/nvram_ap6255.txt
[ 3.411971] Final clm_path=/system/etc/firmware/clm_bcmdhd.blob
[ 3.411991] Final conf_path=/system/etc/firmware/config.txt
[ 3.412013] dhd_set_bus_params: set use_rxchain 0
[ 3.412035] dhd_set_bus_params: set txglomsize 36
[ 3.412665] dhd_os_open_image: /system/etc/firmware/fw_bcm43455c0_ag.bin (519802 bytes) open success
[ 3.544559] dhd_os_open_image: /system/etc/firmware/nvram_ap6255.txt (1924 bytes) open success
[ 3.554547] NVRAM version:Cloned from bcm94345wlpagb_p2xx.txt
[ 3.555330] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[ 3.638127] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[ 3.638288] bcmsdh_oob_intr_register HW_OOB irq=34 flags=0x8
[ 3.639025] dhd_get_memdump_info: File doesn't exist
[ 3.639071] dhd_get_memdump_info: MEMDUMP ENABLED = 2
[ 3.639621] Disable tdls_auto_op failed. -1
[ 3.639645] dhd_preinit_ioctls: Set tcpack_sup_mode 0
[ 3.639656] dhd_tcpack_suppress_set 352: already set to 0
[ 3.640592] dhd_apply_default_clm: Ignore clm file /system/etc/firmware/clm_bcmdhd.blob
[ 3.642235] Firmware up: op_mode=0x0005, MAC=80:c5:f2:2e:e8:33
[ 3.642262] dhd_conf_set_country: set country CN, revision 38
[ 3.665104] Country code: CN (CN/38)
[ 3.665509] dhd_conf_set_intiovar: set roam_off 1
[ 3.668767] dhd_preinit_ioctls Set scancache failed -23
[ 3.678984] Driver: 1.579.77.41.2 (r)
[ 3.678984] Firmware: wl0: Jul 19 2017 22:14:06 version 7.45.100.6 (r665936 CY) FWID 01-2425
[ 3.678984] CLM: 7.14.8
[ 3.679386] dhd_txglom_enable: enable 1
[ 3.679422] dhd_conf_set_txglom_params: txglomsize=36, deferred_tx_len=36, bus_txglom=-1
[ 3.679462] dhd_conf_set_txglom_params: tx_in_rx=1, txinrx_thres=-1, dhd_txminmax=1
[ 3.679486] dhd_conf_set_txglom_params: tx_max_offset=0, txctl_tmo_fix=5
[ 3.679510] sdioh_set_mode: set txglom_mode to copy
[ 3.679550] dhd_conf_get_disable_proptx: fw_proptx=1, disable_proptx=-1
[ 3.682447] dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
[ 3.682844] dhd_conf_set_intiovar: set ampdu_hostreorder 1
[ 3.703621] CFG80211-ERROR) wl_cfg80211_event : Event handler is not created
[ 3.704619] rtt_do_get_ioctl: failed to send getbuf proxd iovar (CMD ID : 1), status=-23
[ 3.704674] dhd_rtt_init : FTM is not supported
[ 3.704773] dhd_preinit_ioctls: SensorHub diabled 0
[ 3.705505] dhd_preinit_ioctls failed to set ShubHub disable
[ 3.706308] dhd_ndo_get_version: failed, retcode = -23
[ 3.707179] dhd_wl_ioctl_get_intiovar: get int iovar wnm_bsstrans_resp failed, ERR -23
[ 3.707225] failed to get wnm_bsstrans_resp
[ 3.707916] failed to set WNM capabilities
[ 3.707963] wl_android_wifi_on: Success
[ 3.733744] dhd_open: Exit ret=0
[ 3.953778] dwc2 ff400000.usb: bound driver configfs-gadget
load wifi modules: /etc/init.d/S66load_wifi_modules: line 42: rk_wifi_init: not found
FAIL
Starting dnsmasq: OK
[ 4.140742] vendor storage:20160801 ret = -1
==========EQ/DRC process release version 1.22===============
snd_pcm_open
snd_pcm_hw_params_malloc
snd_pcm_hw_params_any!
snd_pcm_hw_params_set_access!
snd_pcm_hw_params_set_format
channels = 2
bufferSize = 4096
periodSize = 1024
rate = 48000
open record device done
interleaved mode
snd_pcm_hw_params_alloca
interleaved mode
format successed
channels = 2
write_bufferSize = 4096
write_periodSize = 1024
setting sampling rate (48000)
============EQ/DRC Version 1.21==================
open write device is successful
para_name= /data/cfg/eq_bin/Para_48000Hz_2ch.bin
Playing WAVE '/usr/lib/silence.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Successfully initialized wpa_supplicant
/etc/init.d/S98_lunch_init: source: line 3: can't open '/data/cfg/rockchip_test/auto_reboot.sh'
Starting input-event-daemon: input-event-daemon: Start listening on 3 devices...
done
延迟指的是? Livvol 发表于 2019-3-27 16:25
延迟指的是?
用麦克风录音,然后再从喇叭播放出来,这里的延迟指声音信号从喇叭进去到从喇叭出来的时间,简单的说就是示波器抓波,我说123,和录音再拨出来的123的时间差。 Livvol 发表于 2019-3-27 16:25
延迟指的是?
用麦克风录音,然后再从喇叭播放出来,这里的延迟指声音信号从喇叭进去到从喇叭出来的时间,简单的说就是示波器抓波,我说123,和录音再拨出来的123的时间差。 你试下将这两个--period-size=192 --buffer-size=384设置大一些 飞神 发表于 2019-3-28 09:40
你试下将这两个--period-size=192 --buffer-size=384设置大一些
定位到问题点了,录播设备保持一致就没问题了,话说这个是什么原因呢? dma buff太小了,每次传输也小,导致传输速度变慢 飞神 发表于 2019-3-28 19:38
dma buff太小了,每次传输也小,导致传输速度变慢
period-size越大中断间隔越大,延迟肯定越长。buffer越大越不易发生xrun,但延迟也会相应的增大。 wjyfirefly 发表于 2019-3-29 14:38
period-size越大中断间隔越大,延迟肯定越长。buffer越大越不易发生xrun,但延迟也会相应的增大。
period-size越大中断间隔越大,这个结论怕是不能成立。
页:
[1]