{"action":"created","issue":{"url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/43","repository_url":"https://api.github.com/repos/Arkq/bluez-alsa","labels_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/43/comments","events_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/43/events","html_url":"https://github.com/Arkq/bluez-alsa/issues/43","id":222312627,"number":43,"title":"Record from bluetooth device(android-phone) via a2dp","user":{"login":"mirandw","id":27717989,"avatar_url":"https://avatars3.githubusercontent.com/u/27717989?v=3","gravatar_id":"","url":"https://api.github.com/users/mirandw","html_url":"https://github.com/mirandw","followers_url":"https://api.github.com/users/mirandw/followers","following_url":"https://api.github.com/users/mirandw/following{/other_user}","gists_url":"https://api.github.com/users/mirandw/gists{/gist_id}","starred_url":"https://api.github.com/users/mirandw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirandw/subscriptions","organizations_url":"https://api.github.com/users/mirandw/orgs","repos_url":"https://api.github.com/users/mirandw/repos","events_url":"https://api.github.com/users/mirandw/events{/privacy}","received_events_url":"https://api.github.com/users/mirandw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-04-18T06:13:48Z","updated_at":"2017-04-24T07:46:09Z","closed_at":"2017-04-24T07:20:01Z","body":"I managed to porting bluez-alsa to my platform compiled by uclibc, and have fixed several errors.\r\ncan now play music through my bluetooth headset with **aplay** via a2dp using bluez-5.28 and alsa-lib1.0.28, but **arecord** still gives me the same error when connecting with android-phone via a2dp.\r\n\r\nI tried to provide a full log.\r\n\r\nMy /etc/asound.conf contains:\r\n`defaults.bluealsa.interface \"hci0\"`\r\n`defaults.bluealsa.device \"C4:07:2F:96:FD:4D\"`\r\n`defaults.bluealsa.profile \"a2dp\"`\r\n\r\nthen start bluealsa and connect android phone through bluetoothctl,\r\nthe output so far\r\n`ctl.c:483: Starting controller loop`\r\n `bluez.c:699: Registering endpoint: 0000110A-0000-1000-8000-00805F9B34FB: /MediaEndpoint/A2DPSource`\r\n`bluez.c:699: Registering endpoint: 0000110B-0000-1000-8000-00805F9B34FB: /MediaEndpoint/A2DPSink`\r\n`main.c:218: Starting main dispatching loop`\r\n`bluez.c:504: Endpoint method call: org.bluez.MediaEndpoint1.SelectConfiguration()`\r\n`bluez.c:504: Endpoint method call: org.bluez.MediaEndpoint1.SetConfiguration()`\r\n`bluez.c:438: A2DP Sink (SBC) configured for device C4:07:2F:96:FD:4D`\r\n`bluez.c:440: Configuration: channels: 1, sampling: 44100`\r\n`transport.c:603: State transition: 0 -> 0`\r\n\r\namixer -D bluealsa\r\n\r\n`Simple mixer control 'HUAWEI MT7-TL10 - A2DP',0`\r\n ` Capabilities: cvolume cvolume-joined cswitch cswitch-joined`\r\n ` Capture channels: Mono`\r\n ` Limits: Capture 0 - 127`\r\n  `Mono: Capture 127 [100%] [on]`\r\n\r\narecord -f S16_LE -c 1 -r 44100 -D bluealsa:HCI=hci0,DEV=C4:07:2F:96:FD:4D,P\r\nROFILE=a2dp /media/sdcard/test.wav\r\n\r\n`/bluez.c:1039: Signal: PropertiesChanged: org.bluez.MediaTransport1`\r\n`transport.c:603: State transition: 0 -> 1`\r\n`transport.c:695: New transport: 9 (MTU: R:672 W:1008)`\r\n`bluez.c:1039: Signal: PropertiesChanged: org.bluez.MediaTransport1`\r\n`transport.c:603: State transition: 1 -> 2`\r\n`transport.c:95: Created new IO thread: A2DP Sink (SBC)`\r\n`src/io.c:287: Starting IO loop: A2DP Sink (SBC)`\r\n`src/io.c:290: io_thread_a2dp_sink_sbc`\r\n`src/io.c:290: io_thread_a2dp_sink_sbc`\r\n`src/io.c:307: before read`\r\n`src/io.c:324: befor io_thread_open_pcm_write`\r\n`io.c:86: Opening FIFO for writing: /var/run/bluealsa/hci0-C4:07:2F:96:FD:4D-1-1`\r\n`bluealsa-pcm.c:104: Starting IO loop`\r\n`io.c:290: io_thread_a2dp_sink_sbc`\r\n`io.c:307: before read`\r\n`io.c:324: befor io_thread_open_pcm_write`\r\n`io.c:290: io_thread_a2dp_sink_sbc`\r\n`io.c:307: before read`\r\n`io.c:324: befor io_thread_open_pcm_write`\r\n`io.c:290: io_thread_a2dp_sink_sbc`\r\n`io.c:307: before read`\r\n`io.c:324: befor io_thread_open_pcm_write`\r\n`io.c:290: io_thread_a2dp_sink_sbc`\r\n`io.c:307: before read`\r\n`io.c:324: befor io_thread_open_pcm_write`\r\n`arecord: pcm_read:2031: read error: No such device`\r\n`bluealsa-pcm.c:249: Stopping`\r\n`bluealsa-pcm.c:314: Freeing HW`\r\n`ctl-client.c:348: Closing PCM for C4:07:2F:96:FD:4D`\r\n`ctl.c:392: PCM close for C4:07:2F:96:FD:4D type 1 stream 1`\r\n`src/transport.c:848: Cleaning PCM FIFO: /var/run/bluealsa/hci0-C4:07:2F:96:FD:4D-1-1`\r\n`transport.c:855: Closing PCM: 12`\r\n`bluealsa-pcm.c:265: Closing plugin`\r\n`bluez.c:1039: Signal: PropertiesChanged: org.bluez.MediaTransport1`\r\n`transport.c:603: State transition: 2 -> 0`\r\n`transport.c:721: Releasing transport: A2DP Sink (SBC)`\r\n`transport.c:749: Closing BT: 9`\r\n`io.c:55: Exiting IO thread`\r\n\r\nAt this point test.wav is only 44Bytes. I am stopped at \"`arecord: pcm_read:2031: read error: No such device`\"\r\nCan I try or post anything else to help?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/comments/296561314","html_url":"https://github.com/Arkq/bluez-alsa/issues/43#issuecomment-296561314","issue_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/43","id":296561314,"user":{"login":"Arkq","id":6979798,"avatar_url":"https://avatars0.githubusercontent.com/u/6979798?v=3","gravatar_id":"","url":"https://api.github.com/users/Arkq","html_url":"https://github.com/Arkq","followers_url":"https://api.github.com/users/Arkq/followers","following_url":"https://api.github.com/users/Arkq/following{/other_user}","gists_url":"https://api.github.com/users/Arkq/gists{/gist_id}","starred_url":"https://api.github.com/users/Arkq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arkq/subscriptions","organizations_url":"https://api.github.com/users/Arkq/orgs","repos_url":"https://api.github.com/users/Arkq/repos","events_url":"https://api.github.com/users/Arkq/events{/privacy}","received_events_url":"https://api.github.com/users/Arkq/received_events","type":"User","site_admin":false},"created_at":"2017-04-24T07:46:09Z","updated_at":"2017-04-24T07:46:09Z","body":"Thx for the explanation. I'll reverse these hw_params_set_* calls. :)"}}
{"actor":{"display_login":"Arkq"}}