V821 sample_ao 运行报错 无声
-
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0101 04:05:44.877432 490 play.c:411] <main2> Hello, sample_ao!
I0101 04:05:44.880457 490 play.c:347] <loadSampleAOConfig> param: pcmFilePath[/mnt/UDISK/test.wav], sampleRate[44100], channelCount[2], bitWidth[16], frameSize[1024], aoVolume[90], aoSoftVolume[60]
I0101 04:05:44.883114 490 play.c:48] <ParseWavHeader> Be careful! wav header has chunk:[0x5453494c], size:26, skip
I0101 04:05:44.886113 490 play.c:469] <main2> parse wav header size:78, ChnNum[2], SampleRate[44100], BitsPerSample[16]
I0101 04:05:44.887240 490 mpi_sys.c:854] <AW_MPI_SYS_SetConf> kfctmpdir is [/tmp]
I0101 04:05:44.897525 490 mpi_sys.c:1505] <AW_MPI_SYS_Init> ISP init
I0101 04:05:44.898756 490 isp_version.h:32] <isp_version_info> [ISP]>>>>>>>>>>>>>>>>>>>> ISP VERSION INFO <<<<<<<<<<<<<<<<<<<
IPCORE: ISP603
branch: libisp-dev
commit: 85909eef135a0108ea1214df4886d6c741a71c39
date : Tue May 27 18:59:00 2025 +0800
author: mayifei@allwinnertech.comI0101 04:05:44.903154 490 mpi_sys.c:1507] <AW_MPI_SYS_Init> ISP init done
I0101 04:05:44.903994 490 hwdisplay.c:84] <hw_display_init>
I0101 04:05:44.904516 490 hwdisplay.c:1020] <hwd_init> (hwd_init 1020)
E0101 04:05:45.407127 490 hwdisplay.c:1013] <tryOpenDev> fatal error! open dev[/dev/disp] fail. error[2-No such file or directory]!
E0101 04:05:45.409490 490 hwdisplay.c:1030] <hwd_init> fatal error! Failed to open disp device
E0101 04:05:45.411430 490 mpi_vo.c:382] <VO_Construct> fatal error! hw display init fail!
E0101 04:05:45.412406 490 mpi_sys.c:1554] <AW_MPI_SYS_Init> VO Construct error!
I0101 04:05:45.433770 490 audio_hw.c:198] <MakeAllMixerElemsAvailable> pcm open and close, all MixerElems maybe exist.
I0101 04:05:45.434882 490 alsa_interface.c:736] <alsaOpenMixer> open mixer:hw:0
I0101 04:05:45.437875 490 alsa_interface.c:792] <alsaOpenMixer> set playback vol_val to value: 27, mppValue:87
I0101 04:05:45.439026 490 alsa_interface.c:805] <alsaOpenMixer> set playback soft_vol val to value: 130, mppValue:0
I0101 04:05:45.439966 490 alsa_interface.c:736] <alsaOpenMixer> open mixer:hw:1
E0101 04:05:45.441201 490 alsa_interface.c:748] <alsaOpenMixer> Mixer hw:1 attach error: No such file or directory
E0101 04:05:45.444337 490 audio_hw.c:306] <audioHw_Construct> AIO device 1 open mixer failed!
I0101 04:05:45.448022 490 AOChannel_Component.c:1386] <AOChannel_ComponentInit> create AOChannel threadId[0xb6abb3a0]
I0101 04:05:45.449174 490 play.c:503] <main2> create ao channel[0] success!
I0101 04:05:45.450489 490 alsa_interface.c:1126] <alsaMixerGetVolume> playback getVolume:27, mppValue:87, err:0
I0101 04:05:45.451532 490 play.c:605] <main2> Get Ao Volume:87, set:90
I0101 04:05:45.452454 490 alsa_interface.c:1092] <alsaMixerSetVolume> snd_card:0, elem_name:LINEOUT Gain, playback setVolume:27, mppValue:90, err:0
E0101 04:05:45.453406 490 alsa_interface.c:1162] <alsaMixerSetSoftVolume> want to setAIOSoftVol[-52,50], playFlag[1], but usr value=60 is invalid!
I0101 04:05:45.454409 490 play.c:609] <main2> Set Ao SoftVolume:60
I0101 04:05:45.459268 493 AOChannel_Component.c:2034] <AOChannel_ComponentThread> AO get first pcm from ADec, nBufferLen: 4096, nTimeStamp:0us, param[44100-1-1],use it to init AudioRenderHal
I0101 04:05:45.460340 493 AOChannel_Component.c:2049] <AOChannel_ComponentThread> audioDev[0-0] is not config, config it now, [0-44100-1-2]
E0101 04:05:45.461477 493 audio_hw.c:1614] <audioHw_AO_SetChnPubAttr> ao_set_attr_chl:0,stat:0
I0101 04:05:45.461312 492 mpi_sys.c:1085] <MonitorEnvVarThread> detect user environment:
I0101 04:05:45.463076 492 mpi_sys.c:1086] <MonitorEnvVarThread> /tmp/mpp_log_level
I0101 04:05:45.463754 492 mpi_sys.c:1087] <MonitorEnvVarThread> /tmp/mpp_venc_sei_config_param
I0101 04:05:45.462539 493 AOChannel_Component.c:2056] <AOChannel_ComponentThread> audioDev[0-0] is not start, start it now
E0101 04:05:45.465061 493 audio_hw.c:1709] <audioHw_AO_EnableChn> ao_enable_chl:0-0
W0101 04:05:45.465526 493 audio_hw.c:1758] <audioHw_AO_EnableChn> params of play_daudio0 chn[0] [44100-2-2646] don't matter now. asound.conf make sure same to PlaybackRateDmix
I0101 04:05:45.466553 493 alsa_interface.c:492] <alsaOpenPcm> open pcm! card:[I2STX], pcmFlag:1
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
E0101 04:05:45.474079 493 alsa_interface.c:504] <alsaOpenPcm> fatal error! card[I2STX] audio open error: No such device
E0101 04:05:45.475322 493 audio_hw.c:1795] <audioHw_AO_EnableChn> fatal error! daudio0 open_pcm failed, ch:0
I0101 04:05:45.478526 493 AOChannel_Component.c:2060] <AOChannel_ComponentThread> audio render hal init and run ok:0!
E0101 04:05:45.479985 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:45.481732 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:45.483016 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:45.484220 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:45.485244 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:45.486320 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:45.487200 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:45.488029 493 AOChannel_Component.c:2242] <AOChannel_ComponentThrea
E0101 04:05:46.076803 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:46.077981 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:46.079810 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:46.081652 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:46.083474 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
I0101 04:05:46.084648 490 play.c:652] <main2> read file finish! last read [2720]bytes
W0101 04:05:46.084874 490 mpi_ao.c:877] <AW_MPI_AO_SetStreamEof> warning! ao dev was not started!
I0101 04:05:46.085012 490 AOChannel_Component.c:185] <AOSetStreamEof> AO end flag is set! drain pcm flag:1!
E0101 04:05:46.085162 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:46.086092 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:46.086403 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:46.087456 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
E0101 04:05:46.089085 493 AOChannel_Component.c:2242] <AOChannel_ComponentThread> fatal error! send to alsaLib fail[0xa0168005], but still release frame
W0101 04:05:46.089367 493 AOChannel_Component.c:2107] <AOChannel_ComponentThread> Be careful! aoChn[0-0] no node in UsedList?! privFlag[0x2], drainPostDataFlag:0
I0101 04:05:46.090322 493 AOChannel_Component.c:2159] <AOChannel_ComponentThread> Be careful! we need create empty audio frame[1-1-44100] to drain postData!
I0101 04:05:46.090505 493 AOChannel_Component.c:2253] <AOChannel_ComponentThread> Be careful! maybe drain post datalen[0], flag:1!
I0101 04:05:46.091361 493 AOChannel_Component.c:1992] <AOChannel_ComponentThread> A. AOChn[0-0] notify player eof!
I0101 04:05:46.091555 493 AOChannel_Component.c:1995] <AOChannel_ComponentThread> AOChn[0-0] drain pcm ring buf!
E0101 04:05:46.092636 493 AOChannel_Component.c:2004] <AOChannel_ComponentThread> fatal error! AOChn[0-0] is not start, so do not drain!
I0101 04:05:46.093917 493 AOChannel_Component.c:2008] <AOChannel_ComponentThread> AOChn[0-0] drain pcm ring buf done, cost[1]ms!
I0101 04:05:46.094095 493 play.c:267] <SampleAOCallbackWrapper> AO channel notify APP that play complete!
I0101 04:05:46.095027 493 AOChannel_Component.c:1939] <AOChannel_ComponentThread> AO EOF!I0101 04:05:49.547520 494 play.c:399] <volumeAdjustThread> unknow cmd:
!
I0101 04:05:49.547703 494 play.c:400] <volumeAdjustThread> help: setvol/mute x for set volume/mute
I0101 04:05:49.547774 494 play.c:401] <volumeAdjustThread> getvol/mute for get volume/mute value
W0101 04:05:49.563646 490 mpi_ao.c:490] <AW_MPI_AO_StopChn> Be careful! aoChn[0-0] is not start
W0101 04:05:49.564628 490 mpi_ao.c:308] <AW_MPI_AO_DestroyChn> Be careful! aoChn[0-0] is not start
I0101 04:05:49.564937 493 AOChannel_Component.c:1791] <AOChannel_ComponentThread> release all frames to ADec, when state[0x2]->[0x1]
I0101 04:05:49.565807 490 AOChannel_Component.c:1118] <AOChannel_ComponentDeInit> wait AO channel component exit!...
I0101 04:05:49.567048 490 AOChannel_Component.c:1215] <AOChannel_ComponentDeInit> AO component exited!
I0101 04:05:49.568072 490 alsa_interface.c:839] <alsaCloseMixer> close mixer[0x36f544].card_id:0
I0101 04:05:49.568470 490 mpi_vo.c:408] <VO_Destruct> already destruct vo
I0101 04:05:49.570005 492 mpi_sys.c:1097] <MonitorEnvVarThread> MonitorEnvVar thread receive stop command, cur sys state is:2
I0101 04:05:49.571155 490 play.c:710] <main2> success test result.
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号