bluez-alsa: Unable to install hw params (80db29f)

Hello,

I’ve updated from e5acb73 to 80db29f and now I’m unable to play to SCO with error: aplay: set_params:1382: Unable to install hw params

I noticed this error from bluealsa in the logs: src/sco.c:507: PCM poll error status: 0x10

Here is the output from bluealsa from 80db29f:

./bluealsa: D: src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/1
./bluealsa: D: src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/1
./bluealsa: D: src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/2
./bluealsa: D: src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/2
./bluealsa: D: src/bluez.c:785: Creating hands-free profile object: /org/bluez/HSP/AudioGateway
./bluealsa: D: src/bluez.c:719: Registering hands-free profile: /org/bluez/HSP/AudioGateway
./bluealsa: D: src/bluez.c:785: Creating hands-free profile object: /org/bluez/HFP/AudioGateway
./bluealsa: D: src/bluez.c:719: Registering hands-free profile: /org/bluez/HFP/AudioGateway
./bluealsa: D: src/main.c:397: Acquiring D-Bus service name: org.bluealsa
./bluealsa: D: src/main.c:402: Starting main dispatching loop
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluez.Profile1.NewConnection() on /org/bluez/HFP/AudioGateway
./bluealsa: D: src/ba-rfcomm.c:1263: Created new RFCOMM thread [ba-rfcomm]: HFP Audio Gateway (CVSD)
./bluealsa: D: src/sco.c:200: Created SCO dispatcher [ba-sco-dispatch]: hci0
./bluealsa: D: src/bluez.c:611: HFP Audio Gateway (CVSD) configured for device E4:22:A5:8B:35:06
./bluealsa: D: src/ba-transport.c:750: Starting transport: HFP Audio Gateway (CVSD)
./bluealsa: D: src/sco.c:77: Starting SCO dispatcher loop: hci0
./bluealsa: D: src/sco.c:241: Starting SCO loop: HFP Audio Gateway (CVSD)
./bluealsa: D: src/ba-rfcomm.c:880: Starting RFCOMM loop: HFP Audio Gateway (CVSD)
./bluealsa: D: src/ba-transport.c:1032: Created new thread [ba-sco]: HFP Audio Gateway (CVSD)
./bluealsa: D: src/at.c:161: AT message: SET: command:+BRSF, value:25
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:+BRSF, value:2272
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/ba-rfcomm.c:127: RFCOMM: HFP Audio Gateway (CVSD) state transition: 0 -> 2
./bluealsa: D: src/at.c:161: AT message: TEST: command:+CIND, value:(null)
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:+CIND, value:("service",(0-1)),("call",(0,1)),("callsetup",(0-3)),("callheld",(0-2)),("signal",(0-5)),("roam",(0-1)),("battchg",(0-5))
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/ba-rfcomm.c:127: RFCOMM: HFP Audio Gateway (CVSD) state transition: 2 -> 5
./bluealsa: D: src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
./bluealsa: D: src/bluez.c:999: Adding new Stream End-Point: E4:22:A5:8B:35:06: SBC
./bluealsa: D: src/at.c:161: AT message: GET: command:+CIND, value:(null)
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:+CIND, value:0,0,0,0,0,0,5
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/ba-rfcomm.c:127: RFCOMM: HFP Audio Gateway (CVSD) state transition: 5 -> 7
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/at.c:161: AT message: SET: command:+CMER, value:3, 0, 0, 1
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/ba-rfcomm.c:127: RFCOMM: HFP Audio Gateway (CVSD) state transition: 7 -> 8
./bluealsa: D: src/ba-rfcomm.c:127: RFCOMM: HFP Audio Gateway (CVSD) state transition: 8 -> 9
./bluealsa: D: src/dbus.c:57: Called: org.bluez.MediaEndpoint1.SelectConfiguration() on /org/bluez/hci0/A2DP/SBC/Source/1
./bluealsa: D: src/at.c:161: AT message: SET: command:+VGS, value:08
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
./bluealsa: D: src/dbus.c:57: Called: org.bluez.MediaEndpoint1.SetConfiguration() on /org/bluez/hci0/A2DP/SBC/Source/1
./bluealsa: D: src/a2dp.c:665: Selected A2DP SBC bit-pool range: [2, 53]
./bluealsa: D: src/bluez.c:293: A2DP Source (SBC) configured for device E4:22:A5:8B:35:06
./bluealsa: D: src/bluez.c:295: Configuration: channels: 2, sampling: 48000
./bluealsa: D: src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/3
./bluealsa: D: src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/3
./bluealsa: D: src/at.c:161: AT message: SET: command:+VGM, value:15
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/at.c:161: AT message: SET: command:+XAPL, value:047F-22-6b,1
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:+XAPL=BlueALSA,6
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/at.c:161: AT message: GET: command:+BTRH, value:(null)
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/at.c:161: AT message: SET: command:+XEVENT, value:USER-AGENT,COM.PLANTRONICS,PLT_Legend,113,34.07,65564272dc37614083ffadb4086fbc9d
./bluealsa: W: Unsupported AT message: SET: command:+XEVENT, value:USER-AGENT,COM.PLANTRONICS,PLT_Legend,113,34.07,65564272dc37614083ffadb4086fbc9d
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:ERROR
./bluealsa: D: src/at.c:161: AT message: CMD: command:+CLCC, value:(null)
./bluealsa: W: Unsupported AT message: CMD: command:+CLCC, value:(null)
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:ERROR
./bluealsa: D: src/at.c:161: AT message: SET: command:+BIA, value:0,1,1,1,0,0,0
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.PCM1.Open() on /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink
./bluealsa: D: src/ba-transport.c:964: New SCO link: E4:22:A5:8B:35:06: 20
./bluealsa: D: src/hci.c:132: SCO link socket MTU: 20: 180
./bluealsa: D: src/sco.c:507: PCM poll error status: 0x10
./bluealsa: D: src/ba-transport.c:1006: Closing PCM: 16
./bluealsa: D: src/sco.c:328: Releasing SCO due to PCM inactivity
./bluealsa: D: src/ba-transport.c:982: Closing SCO: 20
./bluealsa: D: src/sco.c:328: Releasing SCO due to PCM inactivity
./bluealsa: D: src/main.c:406: Exiting main loop

Here is the output from aplay using 80db29f:

aplay --verbose -Dbluealsa:SRV=org.bluealsa,DEV=E4:22:A5:8B:35:06,PROFILE=sco -fS16_LE -r8000 -c1 test.raw
D: src/asound/bluealsa-pcm.c:761: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Setting constraints
Playing raw data 'test.raw' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
D: src/asound/bluealsa-pcm.c:397: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Initializing HW
D: src/asound/bluealsa-pcm.c:417: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: FIFO buffer size: 4096
D: src/asound/bluealsa-pcm.c:426: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Selected HW buffer: 4 periods x 2000 bytes == 8000 bytes
D: src/asound/bluealsa-pcm.c:441: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Initializing SW
aplay: set_params:1382: 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
D: src/asound/bluealsa-pcm.c:433: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Freeing HW
D: src/asound/bluealsa-pcm.c:386: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Closing

And here’s successful output from e5acb73:

./bluealsa: D: src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/1
./bluealsa: D: src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/1
./bluealsa: D: src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/2
./bluealsa: D: src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/2
./bluealsa: D: src/bluez.c:785: Creating hands-free profile object: /org/bluez/HSP/AudioGateway
./bluealsa: D: src/bluez.c:719: Registering hands-free profile: /org/bluez/HSP/AudioGateway
./bluealsa: D: src/bluez.c:785: Creating hands-free profile object: /org/bluez/HFP/AudioGateway
./bluealsa: D: src/bluez.c:719: Registering hands-free profile: /org/bluez/HFP/AudioGateway
./bluealsa: D: src/main.c:397: Acquiring D-Bus service name: org.bluealsa
./bluealsa: D: src/main.c:402: Starting main dispatching loop
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluez.Profile1.NewConnection() on /org/bluez/HFP/AudioGateway
./bluealsa: D: src/ba-rfcomm.c:1263: Created new RFCOMM thread [ba-rfcomm]: HFP Audio Gateway (CVSD)
./bluealsa: D: src/sco.c:200: Created SCO dispatcher [ba-sco-dispatch]: hci0
./bluealsa: D: src/bluez.c:611: HFP Audio Gateway (CVSD) configured for device E4:22:A5:8B:35:06
./bluealsa: D: src/ba-transport.c:750: Starting transport: HFP Audio Gateway (CVSD)
./bluealsa: D: src/sco.c:77: Starting SCO dispatcher loop: hci0
./bluealsa: D: src/sco.c:241: Starting SCO loop: HFP Audio Gateway (CVSD)
./bluealsa: D: src/ba-rfcomm.c:880: Starting RFCOMM loop: HFP Audio Gateway (CVSD)
./bluealsa: D: src/ba-transport.c:1032: Created new thread [ba-sco]: HFP Audio Gateway (CVSD)
./bluealsa: D: src/at.c:161: AT message: SET: command:+BRSF, value:25
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:+BRSF, value:2272
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/ba-rfcomm.c:127: RFCOMM: HFP Audio Gateway (CVSD) state transition: 0 -> 2
./bluealsa: D: src/at.c:161: AT message: TEST: command:+CIND, value:(null)
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:+CIND, value:("service",(0-1)),("call",(0,1)),("callsetup",(0-3)),("callheld",(0-2)),("signal",(0-5)),("roam",(0-1)),("battchg",(0-5))
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/ba-rfcomm.c:127: RFCOMM: HFP Audio Gateway (CVSD) state transition: 2 -> 5
./bluealsa: D: src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
./bluealsa: D: src/bluez.c:999: Adding new Stream End-Point: E4:22:A5:8B:35:06: SBC
./bluealsa: D: src/at.c:161: AT message: GET: command:+CIND, value:(null)
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:+CIND, value:0,0,0,0,0,0,5
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/ba-rfcomm.c:127: RFCOMM: HFP Audio Gateway (CVSD) state transition: 5 -> 7
./bluealsa: D: src/at.c:161: AT message: SET: command:+CMER, value:3, 0, 0, 1
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/ba-rfcomm.c:127: RFCOMM: HFP Audio Gateway (CVSD) state transition: 7 -> 8
./bluealsa: D: src/ba-rfcomm.c:127: RFCOMM: HFP Audio Gateway (CVSD) state transition: 8 -> 9
./bluealsa: D: src/dbus.c:57: Called: org.bluez.MediaEndpoint1.SelectConfiguration() on /org/bluez/hci0/A2DP/SBC/Source/1
./bluealsa: D: src/at.c:161: AT message: SET: command:+VGS, value:08
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/bluez.c:915: Signal: org.freedesktop.DBus.ObjectManager.InterfacesAdded()
./bluealsa: D: src/dbus.c:57: Called: org.bluez.MediaEndpoint1.SetConfiguration() on /org/bluez/hci0/A2DP/SBC/Source/1
./bluealsa: D: src/a2dp.c:665: Selected A2DP SBC bit-pool range: [2, 53]
./bluealsa: D: src/bluez.c:293: A2DP Source (SBC) configured for device E4:22:A5:8B:35:06
./bluealsa: D: src/bluez.c:295: Configuration: channels: 2, sampling: 48000
./bluealsa: D: src/bluez.c:490: Creating media endpoint object: /org/bluez/hci0/A2DP/SBC/Source/3
./bluealsa: D: src/bluez.c:406: Registering media endpoint: /org/bluez/hci0/A2DP/SBC/Source/3
./bluealsa: D: src/at.c:161: AT message: SET: command:+VGM, value:15
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/at.c:161: AT message: SET: command:+XAPL, value:047F-22-6b,1
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:+XAPL=BlueALSA,6
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/at.c:161: AT message: GET: command:+BTRH, value:(null)
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/at.c:161: AT message: SET: command:+XEVENT, value:USER-AGENT,COM.PLANTRONICS,PLT_Legend,113,34.07,65564272dc37614083ffadb4086fbc9d
./bluealsa: W: Unsupported AT message: SET: command:+XEVENT, value:USER-AGENT,COM.PLANTRONICS,PLT_Legend,113,34.07,65564272dc37614083ffadb4086fbc9d
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:ERROR
./bluealsa: D: src/at.c:161: AT message: CMD: command:+CLCC, value:(null)
./bluealsa: W: Unsupported AT message: CMD: command:+CLCC, value:(null)
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:ERROR
./bluealsa: D: src/at.c:161: AT message: SET: command:+BIA, value:0,1,1,1,0,0,0
./bluealsa: D: src/ba-rfcomm.c:108: Sending AT message: RESP: command:(null), value:OK
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.Manager1.GetPCMs() on /org/bluealsa
./bluealsa: D: src/dbus.c:57: Called: org.bluealsa.PCM1.Open() on /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink
./bluealsa: D: src/ba-transport.c:964: New SCO link: E4:22:A5:8B:35:06: 20
./bluealsa: D: src/hci.c:132: SCO link socket MTU: 20: 180
./bluealsa: D: src/ba-transport.c:789: PCM resumed: 16
./bluealsa: D: src/ba-transport.c:817: PCM drained: 16
./bluealsa: D: src/ba-transport.c:823: PCM dropped: 16
./bluealsa: D: src/ba-transport.c:823: PCM dropped: 16
./bluealsa: D: src/ba-transport.c:1006: Closing PCM: 16
./bluealsa: D: src/sco.c:328: Releasing SCO due to PCM inactivity
./bluealsa: D: src/ba-transport.c:982: Closing SCO: 20
./bluealsa: D: src/main.c:406: Exiting main loop

Here is the output from aplay using e5acb73:

aplay --verbose -Dbluealsa:SRV=org.bluealsa,DEV=E4:22:A5:8B:35:06,PROFILE=sco -fS16_LE -r8000 -c1 test.raw
D: src/asound/bluealsa-pcm.c:671: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Setting constraints
Playing raw data 'test.raw' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
D: src/asound/bluealsa-pcm.c:368: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Initializing HW
D: src/asound/bluealsa-pcm.c:394: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: FIFO buffer size: 4096
D: src/asound/bluealsa-pcm.c:400: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Selected HW buffer: 4 periods x 2000 bytes == 8000 bytes
D: src/asound/bluealsa-pcm.c:415: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Initializing SW
D: src/asound/bluealsa-pcm.c:415: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Initializing SW
D: src/asound/bluealsa-pcm.c:437: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Prepared
D: src/asound/bluealsa-pcm.c:415: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Initializing SW
Plug PCM: BlueALSA PCM: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink
BlueALSA BlueZ device: /org/bluez/hci0/dev_E4_22_A5_8B_35_06
BlueALSA Bluetooth codec: CVSD
D: src/asound/bluealsa-pcm.c:285: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Starting
D: src/asound/bluealsa-pcm.c:143: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Starting IO loop: 8
D: src/asound/bluealsa-pcm.c:327: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Stopping
D: src/asound/bluealsa-pcm.c:111: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: IO thread cleanup
D: src/asound/bluealsa-pcm.c:327: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Stopping
D: src/asound/bluealsa-pcm.c:407: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Freeing HW
D: src/asound/bluealsa-pcm.c:357: /org/bluealsa/hci0/dev_E4_22_A5_8B_35_06/hfpag/sink: Closing

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21 (2 by maintainers)

Most upvoted comments

Also, there is a Yocto recipe in the bluez-alsa wiki, would that be any help? (sorry I don’t use Yocto, so I actually have no idea if any of these suggestions make sense !)

@borine, that does make sense! I will likely add a Yocto recipe for bluez-alsa once everything is working properly. Perhaps the one from this project will work as an easy drop-in.

You have explicit include directives for dbus, but not for alsa.

That was it! The pkg-config includes I was using for the bluealsa executable were alsa sbc dbus-1 glib-2.0 gio-unix-2.0 but only dbus-1 for the asound modules.

But it’s strange, because I manually added #error in the toolchain asoundlib.h and other system headers to make sure they were being referenced, and they were. The --sysroot parameter should be redirecting all system includes to the toolchain instead of my host machine.

According to GCC docs:

–sysroot=dir Use dir as the logical root directory for headers and libraries. For example, if the compiler normally searches for headers in /usr/include and libraries in /usr/lib, it instead searches dir/usr/include and dir/usr/lib.

I’ll do some more investigating to satisfy my curiosity.

Regardless, it’s working now. Though I did get one occurrence of Couldn't open PCM: Acquire transport: Software caused connection abort but I haven’t been able to reproduce it. I’ll do some more tests with the latest master and close this issue shortly.

Thank you so much for your help.