GithubHelp home page GithubHelp logo

Comments (6)

mirandw avatar mirandw commented on June 4, 2024

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.

mirandw avatar mirandw commented on June 4, 2024

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.

mirandw avatar mirandw commented on June 4, 2024

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.

arkq avatar arkq commented on June 4, 2024

Thx for the explanation. I'll reverse these hw_params_set_* calls. :)

from bluez-alsa.

arkq avatar arkq commented on June 4, 2024

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.

mirandw avatar mirandw commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.