|
【技术讨论】
Android7.1 应用默认播放设备
发表于 2024-4-1 14:53:10
浏览:1845
|
回复:9
打印
只看该作者
[复制链接]
楼主
问题描述及复现步骤:
Android7.1 功放默认选择了rkhdmidpsound作为播放设备。
我使用的是第三方的功放,tinyplay播放正常,在安卓端点击APP默认声音输出是rkhdmidpsound,请问如何修改为自定义的功放设备?
固件信息:
Android7.1industry/firefly_rk3399_industry7.1_git_20211216/firefly-rk3399-Industry
commit:
commit 83168832667a152212c2394d48dc93dc0eec1426
Author: cjp <service@t-firefly.com>
Date: Wed Oct 26 17:32:39 2022 +0800
1.Optimize mipi dsi1 2.Update dongle lib 3.Fix sdio clock
部分log:
- rk3399_firefly_aio_lvds:/ #
- ogcat -s AudioHardwareTiny audio_hw_hdmiin alsa_route <
- --------- beginning of main
- --------- beginning of system
- 01-18 12:33:03.888 278 278 D AudioHardwareTiny: ALSA Audio Version: V1.1.0
- 01-18 12:33:03.888 278 278 D AudioHardwareTiny: adev_open: buf = 0 [awaw8266codec ]: aw_aw8266-codec - aw,aw8266-codec
- 01-18 12:33:03.888 278 278 D AudioHardwareTiny: adev_open: buf = aw,aw8266-codec
- 01-18 12:33:03.888 278 278 D AudioHardwareTiny: adev_open: buf = 1 [rkhdmidpsound ]: rk-hdmi-dp-soun - rk-hdmi-dp-sound
- 01-18 12:33:03.888 278 278 D AudioHardwareTiny: get_card_number: number =1,card_name = 1 [rkhdmidpsound ]: rk-hdmi-dp-soun - rk-hdmi-dp-sound
- 01-18 12:33:03.944 278 278 D alsa_route: Can not get config table for sound card1 rkhdmidpsound, so get default config table.
- 01-18 12:33:03.944 278 278 D AudioHardwareTiny: adev_open: buf = rk-hdmi-dp-sound
- 01-18 12:33:03.944 278 278 D AudioHardwareTiny: audio hal adev_open_output_stream devices = 0x2, flags = 2, samplerate = 48000
- 01-18 12:33:03.944 278 278 D AudioHardwareTiny: out->config.rate = 44100, out->config.channels = 2 out->config.format = 0,out->config.flag = 0
- 01-18 12:33:03.961 278 278 D AudioHardwareTiny: adev_set_mode: set_mode = 0
- 01-18 12:33:03.969 278 347 D AudioHardwareTiny: out_set_parameters: kvpairs = routing=2
- 01-18 12:33:03.969 278 347 V AudioHardwareTiny: out_set_parameters: exit: status(0)
- 01-18 12:33:03.969 278 278 D AudioHardwareTiny: pcm_config->rate:44100,in->requested_rate:48000,in->channel_mask:2
- 01-18 12:33:03.971 278 278 D AudioHardwareTiny: in->mSpeexFrameSize:560
- 01-18 12:33:03.971 278 278 D AudioHardwareTiny: create new input stream for dev(0x00000004), rate(48000), channel(0x0000000C)
- 01-18 12:33:10.210 278 356 D AudioHardwareTiny: [-----]adev_set_parameters: kvpairs = orientation=undefined
- 01-18 12:33:10.890 278 278 D AudioHardwareTiny: [-----]adev_set_parameters: kvpairs = A2dpSuspended=false
- 01-18 12:33:12.045 278 347 D AudioHardwareTiny: 1212121 start_output_stream
- 01-18 12:33:12.045 278 347 E AudioHardwareTiny: vicent r 44100 c 2 ps 512 pc 6
- 01-18 12:33:12.045 278 347 D AudioHardwareTiny: start_output_stream device: 2
- 01-18 12:33:12.045 278 347 D AudioHardwareTiny: read_out_sound_card: buf = 0 [awaw8266codec ]: aw_aw8266-codec - aw,aw8266-codec
- 01-18 12:33:12.045 278 347 D AudioHardwareTiny: read_out_sound_card: buf = aw,aw8266-codec
- 01-18 12:33:12.045 278 347 D AudioHardwareTiny: read_out_sound_card: buf = 1 [rkhdmidpsound ]: rk-hdmi-dp-soun - rk-hdmi-dp-sound
- 01-18 12:33:12.045 278 347 D AudioHardwareTiny: get_card_number: number =1,card_name = 1 [rkhdmidpsound ]: rk-hdmi-dp-soun - rk-hdmi-dp-sound
- 01-18 12:33:12.045 278 347 D AudioHardwareTiny: read_out_sound_card: buf = rk-hdmi-dp-sound
- 01-18 12:33:12.045 278 347 E AudioHardwareTiny: start_output_stream() >>>> PCM_CARD_HDMI:-1, PCM_CARD:-1, HdmiIn_snd_config.config:4
- 01-18 12:33:12.045 278 347 D alsa_route: route_info->sound_card 0, route_info->devices 0
- 01-18 12:33:12.046 278 347 D alsa_route: route_set_controls() set route 11
- 01-18 12:33:12.202 278 347 D AudioHardwareTiny: out_set_parameters: kvpairs = routing=2
- 01-18 12:33:12.202 278 347 V AudioHardwareTiny: out_set_parameters: exit: status(0)
- 01-18 12:33:12.225 278 347 D AudioHardwareTiny: out_set_parameters: kvpairs = routing=2
- 01-18 12:33:12.225 278 347 V AudioHardwareTiny: out_set_parameters: exit: status(0)
- 01-18 12:33:12.258 278 347 D AudioHardwareTiny: out_set_parameters: kvpairs = routing=2
- 01-18 12:33:12.258 278 347 V AudioHardwareTiny: out_set_parameters: exit: status(0)
- 01-18 12:33:12.281 278 347 D AudioHardwareTiny: out_set_parameters: kvpairs = routing=2
- 01-18 12:33:12.281 278 347 V AudioHardwareTiny: out_set_parameters: exit: status(0)
- 01-18 12:33:13.913 278 1015 D AudioHardwareTiny: [-----]adev_set_parameters: kvpairs = A2dpSuspended=false
- 01-18 12:33:15.622 278 1015 D AudioHardwareTiny: [-----]adev_set_parameters: kvpairs = orientation=portrait
- 01-18 12:33:16.321 278 347 D alsa_route: route_set_controls() set route 24
- 01-18 12:33:16.321 278 347 D AudioHardwareTiny: close device
复制代码
|
-
-
logcat.txt
658.23 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1
|