Sailfish-On-Vince / issues

All issue about sailfishos on vince
2 stars 1 forks source link

[hybris15.1]Sound/Audio #16

Closed 0312birdzhang closed 5 years ago

0312birdzhang commented 5 years ago
[   33.069535] tas2557 2-004c: tas2557_startup
[   33.070454] tas2557 2-004c: tas2557_hw_params
[   33.070462] tas2557_hw_params
[   33.070467] tas2557 2-004c: tas2557_setup_clocks: nSamplingRate = 48000 [Hz]
[   33.070474] tas2557 2-004c: Firmware not loaded
[   33.072872] tas2557_set_bias_level
[   33.072891] tas2557 2-004c: tas2557_set_bias_level: 1
[   33.072894] tas2557_set_bias_level
[   33.072899] tas2557 2-004c: tas2557_set_bias_level: 2
[   33.073065] tas2557 2-004c: tas2557_prepare
[   33.073069] tas2557_prepare
[   33.073336] afe_callback: cmd = 0x100ef returned error = 0x2
[   33.073374] afe_apr_send_pkt: DSP returned error[ADSP_EBADPARAM]
[   33.073388] afe_send_port_topology_id: AFE set topology id enable for port 0x1016 failed -22
[   33.073582] afe_callback: cmd = 0x100ef returned error = 0x2
[   33.073606] afe_apr_send_pkt: DSP returned error[ADSP_EBADPARAM]
[   33.073619] afe_send_cal_block: AFE cal for port 0x1016 failed -22
[   33.080600] tas2557 2-004c: tas2557_mute
[   33.080609] tas2557_mute
[   33.080614] tas2557 2-004c: Enable: 1
[   33.080619] tas2557 2-004c: tas2557_enable, firmware not loaded
[   33.081694] tas2557_set_bias_level
[   33.081730] tas2557 2-004c: tas2557_set_bias_level: 1
[   33.081734] tas2557_set_bias_level
[   33.081739] tas2557 2-004c: tas2557_set_bias_level: 2
[   33.086517] q6asm_callback: payload size of 8 is less than expected.
[   33.086999] q6asm_callback: payload size of 8 is less than expected.
[   33.102412] q6asm_callback: payload size of 8 is less than expected.
[   33.103148] tas2557_set_bias_level
[   33.103170] tas2557 2-004c: tas2557_set_bias_level: 1
[   33.103173] tas2557_set_bias_level
[   33.103178] tas2557 2-004c: tas2557_set_bias_level: 2
[   33.104506] tas2557_set_bias_level
[   33.104521] tas2557 2-004c: tas2557_set_bias_level: 1
[   33.104524] tas2557_set_bias_level
[   33.104528] tas2557 2-004c: tas2557_set_bias_level: 2
[   33.106594] q6asm_callback: payload size of 8 is less than expected.
[   34.241306] tas2557 2-004c: tas2557_mute
[   34.241328] tas2557_mute
[   34.241342] tas2557 2-004c: Enable: 0
[   34.241357] tas2557 2-004c: tas2557_enable, firmware not loaded
[   34.242706] tas2557_set_bias_level
[   34.242732] tas2557 2-004c: tas2557_set_bias_level: 1
[   34.242742] tas2557_set_bias_level
[   34.242755] tas2557 2-004c: tas2557_set_bias_level: 2
[   34.379168] q6asm_callback: payload size of 8 is less than expected.
[   34.398342] tas2557 2-004c: tas2557_shutdown
[   34.447076] tas2557 2-004c: tas2557_startup
[   34.448705] tas2557 2-004c: tas2557_hw_params
[   34.448710] tas2557_hw_params
[   34.448718] tas2557 2-004c: tas2557_setup_clocks: nSamplingRate = 48000 [Hz]
[   34.448724] tas2557 2-004c: Firmware not loaded
[   34.450927] tas2557_set_bias_level
[   34.450945] tas2557 2-004c: tas2557_set_bias_level: 1
[   34.450950] tas2557_set_bias_level
[   34.450956] tas2557 2-004c: tas2557_set_bias_level: 2
[   34.451242] tas2557 2-004c: tas2557_prepare
[   34.451247] tas2557_prepare
[   34.451543] afe_callback: cmd = 0x100ef returned error = 0x2
[   34.451602] afe_apr_send_pkt: DSP returned error[ADSP_EBADPARAM]
[   34.451620] afe_send_port_topology_id: AFE set topology id enable for port 0x1016 failed -22
[   34.451829] afe_callback: cmd = 0x100ef returned error = 0x2
[   34.451868] afe_apr_send_pkt: DSP returned error[ADSP_EBADPARAM]
[   34.451884] afe_send_cal_block: AFE cal for port 0x1016 failed -22
[   34.459370] tas2557 2-004c: tas2557_mute
[   34.459381] tas2557_mute
[   34.459388] tas2557 2-004c: Enable: 1
[   34.459395] tas2557 2-004c: tas2557_enable, firmware not loaded
[   34.460174] tas2557_set_bias_level
[   34.460190] tas2557 2-004c: tas2557_set_bias_level: 1
[   34.460195] tas2557_set_bias_level
[   34.460201] tas2557 2-004c: tas2557_set_bias_level: 2
[   34.464494] q6asm_callback: payload size of 8 is less than expected.
[   34.464920] q6asm_callback: payload size of 8 is less than expected.
[   34.480062] q6asm_callback: payload size of 8 is less than expected.
[   34.482174] tas2557_set_bias_level
[   34.482208] tas2557 2-004c: tas2557_set_bias_level: 1
[   34.482213] tas2557_set_bias_level
[   34.482220] tas2557 2-004c: tas2557_set_bias_level: 2
[   34.483089] tas2557_set_bias_level
[   34.483106] tas2557 2-004c: tas2557_set_bias_level: 1
[   34.483111] tas2557_set_bias_level
[   34.483117] tas2557 2-004c: tas2557_set_bias_level: 2
[   34.485689] q6asm_callback: payload size of 8 is less than expected.
0312birdzhang commented 5 years ago

tas2557 Firmware not loaded fixed by mkdir -p $ANDROID/hybris/hybris-boot/initramfs/etc/firmware/, and copy tas2557_uCDSP.bin to it, then mka hybris-boot and flash this hybirs-boot.img.

But still no sound.

[    4.768137] msm8952-asoc-wcd c051000.sound: default codec configured
[    4.772260] msm8952-asoc-wcd c051000.sound: ASoC: platform (null) not registered
[    4.772315] msm8952-asoc-wcd c051000.sound: snd_soc_register_card failed (-517)
[    4.773743] apc_mem_acc_corner: disabling
[    4.773756] gfx_mem_acc_corner: disabling
[    4.773800] adv_vreg: disabling
[    4.773808] vdd_vreg: disabling
[    4.773853] clock_late_init: Removing enables held for handed-off clocks
[    4.777652] ALSA device list:
[    4.777661]   No soundcards found.
[    4.813539] Freeing unused kernel memory: 1008K
[    4.813597] Freeing alternatives memory: 120K
[    4.813606] This architecture does not have kernel memory protection.
[    5.047092] tas2557 2-004c: Block[0x1] PChkSum match
[    5.047102] tas2557 2-004c: Block[0x1] YChkSum match
[    5.047262] tas2557 2-004c: load PLL: pll block for Configuration configuration_Tuning Mode_48 KHz_s1
[    5.047268] tas2557 2-004c: TAS2557 load block: Type = 0, commands = 15
[    5.049342] tas2557 2-004c: load configuration configuration_Tuning Mode_48 KHz_s1 conefficient pre block
[    5.049348] tas2557 2-004c: TAS2557 load data: Snapshot 1, Blocks = 2, Block Type = 4
[    5.049353] tas2557 2-004c: TAS2557 load block: Type = 4, commands = 7
[    5.050828] tas2557 2-004c: Block[0x4] YChkSum match
[    5.050834] tas2557 2-004c: load new configuration: configuration_Tuning Mode_48 KHz_s1, coeff block data
[    5.050839] tas2557 2-004c: TAS2557 load data: Snapshot 1, Blocks = 2, Block Type = 3
[    5.050843] tas2557 2-004c: TAS2557 load block: Type = 3, commands = 536
[    5.148560] tas2557 2-004c: Block[0x3] YChkSum match
0312birdzhang commented 5 years ago

Fixed https://github.com/Sailfish-On-Vince/droid-config-vince/commit/b7a4eab49b3a9900ca84d7a2dcd6660df7a47eb0