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)
- Bluealsa with Google Pixel 8 Android Version 14 (Call sounds like a robot) HOT 9
- Fedora includes a fork of libopenaptx, libfreeaptx HOT 1
- No sound on speakers with PipeWire. HOT 8
- Occasional crashes when streaming from iPhone to bluealsa HOT 10
- Buttons not working during callback recording HOT 2
- build/install: LC3Plus libraries?? HOT 2
- HSP HS profile: "arecord -d" duration is ignored HOT 1
- Routing audio to bluealsa from hw:0,1 HOT 31
- Test all deps with pkgconfig HOT 10
- arecord Unable to install hw params, record from bluetooth failed HOT 3
- Error compiling with aptx HOT 1
- Audio cut off in the beginning of the file HOT 3
- how can an SCO link be reestablished after it has been disconnected by the HF device? HOT 2
- How to pipe bluealsa PCM to fifo? HOT 18
- aplay Unable to install hw params HOT 1
- Can't get the A2DP profile to use LDAC codec HOT 11
- LDAC shows only 96KHz as sample rate | support for other sampling rates HOT 11
- Configuring asoundrc for default bluetooth ignored for Internet Browsers? HOT 2
- LE Audio support in bluez-alsa HOT 1
- Audio volume does not go to 100% on Raspberry Pi HOT 19
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.