Comments (6)
Also I tried bluealsa-aplay, still cannot work properly, lost
bluealsa-aplay C4:07:2F:96:FD:4D --verbose
Selected configuration:
HCI device: hci0
PCM device: default
PCM buffer time: 500000 us
PCM period time: 100000 us
Bluetooth device: C4:07:2F:96:FD:4D
Profile: A2DP
/usr/bin/bluealsa-aplay: ../../../utils/../src/shared/ctl-client.c:102: Connecting to socket: /var/run/bluealsa/hci0
bluealsa: ../../../src/ctl.c:544: New client accepted: 10
bluealsa: ../../../src/ctl.c:547: +-+-
/usr/bin/bluealsa-aplay: ../../../utils/../src/shared/ctl-client.c:197: Getting transport for C4:07:2F:96:FD:4D type 1
bluealsa: ../../../src/ctl.c:547: +-+-
/usr/bin/bluealsa-aplay: Couldn't set HW parameters: Invalid argument
bluealsa: ../../../src/ctl.c:515: Client closed connection: 10
bluealsa: ../../../src/ctl.c:547: +-+-
from bluez-alsa.
I have found rootcuase of arecord: pcm_read:2031: read error: No such device
It is all my fault when modifying eventfd_read/eventfd_write
from bluez-alsa.
bluealsa-aplay C4:07:2F:96:FD:4D --verbose
This issue is because when setting pcm set_hw_params, alsalib-1.0.2 must set period-time first, then buffer-time, otherwse, Invalid argument
appears.
This issue's done for me now. Thanks.
from bluez-alsa.
Thx for the explanation. I'll reverse these hw_params_set_* calls. :)
from bluez-alsa.
Are you sure, that the cause of the "Invalid argument" error was the order of set_hw_params calls? I've checked this with various versions of alsa-lib (as old as 0.9.8) and in every case the order is of no importance. Maybe the problem was with something else, e.g. unsupported number of channels or some other incompatibility...
I'll change a little bit error reporting, because right now this set HW params error message does not say much :/
from bluez-alsa.
sorry, I reversed the order in arecord
built from alsa-utils, everything is ok. But indeed, after reversing order, bluealsa-aplay works fine. And the params is as expected.
#bluealsa-aplay --hci=hci0 --pcm=hw:0,1 C4:07:2F:96:FD:4D --pcm-period-time=125000 --pcm-buffer-time=500000
bluealsa-aplay: channels 1 rate 44100 buffer 500000 period 125000
Maybe some other incompatibility exists. I'll keep on debuging.
Sorry for the trouble :)
from bluez-alsa.
Related Issues (20)
- build on raspberry pi 4 (Raspbian bullseye) HOT 2
- Broken mSBC on USB devices using Alt-3 (Realtek) and Alt-6 (Intel) HOT 1
- airpods3 failed to connect back HOT 3
- Fail to use google home mini as bluetooth speaker HOT 5
- Illegal Instruction on PiZero HOT 9
- No such device (Bluetooth, IPhone) HOT 2
- Couldn't acquire D-Bus name. HOT 12
- connected airpods pro2, the music is played without sound HOT 5
- [RTL8822CE] SCO with msbc codec enabled requires source code patching to deliver audio to headset HOT 4
- ofono not working anymore HOT 11
- API doc out of date HOT 1
- changing a2dp codec broken HOT 4
- Build error undefined references HOT 3
- Cannot decode mSBC with Realtek USB adapter HOT 1
- LDAC problem after update from 4.0 to 4.1.1 HOT 8
- v4.1.1 fails to build on on Debian buster i386 HOT 8
- No sound from Onkyo receiver HOT 90
- Potential server lockup in PCM drain HOT 2
- Sink producing no audio with aptX codec HOT 2
- allow build with different dbus name HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluez-alsa.