Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aplay Unable to install hw params #705

Closed
luoyuyi111 opened this issue May 14, 2024 · 1 comment
Closed

aplay Unable to install hw params #705

luoyuyi111 opened this issue May 14, 2024 · 1 comment

Comments

@luoyuyi111
Copy link

luoyuyi111 commented May 14, 2024

问题:做HFP-AG连接airpods3,连接成功后无法输出声音。
bluealsa: V1.3.1
bluez:V5.54
出现设备:airpods3,但华为 小米耳机不会有这个问题。

连接耳机成功后,可以正常看到虚拟声卡,下发通话AT指令。再使用aplay工具单向输出一个音频文件,就会报一下错误

root@Linux:/# bluealsa-aplay -L
bluealsa:SRV=org.bluealsa,DEV=60:93:16:39:DA:AF,PROFILE=sco
    Airpod3-pd2, audio-card, playback
    SCO (CVSD): S16_LE 1 channel 8000 Hz
bluealsa:SRV=org.bluealsa,DEV=60:93:16:39:DA:AF,PROFILE=sco
    Airpod3-pd2, audio-card, capture
    SCO (CVSD): S16_LE 1 channel 8000 Hz

root@Linux:/# aplay -D bluealsa:DEV=60:93:16:39:DA:AF,PROFILE=sco /mnt/8000-
mono-s16_le-10s.wav
Playing WAVE '/mnt/8000-mono-s16_le-10s.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
aplay: set_params:1407: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 16
CHANNELS: 1
RATE: 8000
PERIOD_TIME: 125000
PERIOD_SIZE: 1000
PERIOD_BYTES: 2000
PERIODS: 4
BUFFER_TIME: 500000
BUFFER_SIZE: 4000
BUFFER_BYTES: 8000
TICK_TIME: 0

请问是否有同学遇到相同的问题。

@luoyuyi111 luoyuyi111 changed the title 做HFP-AG连接airpods3,连接成功后无法输出声音。 aplay Unable to install hw params, May 14, 2024
@luoyuyi111 luoyuyi111 changed the title aplay Unable to install hw params, aplay Unable to install hw params May 14, 2024
@luoyuyi111
Copy link
Author

通过hcilog看到,建立连接时协商的参数失败,导致sco通路实际没建立成功,修改内核默认参数可以了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant