{"action":"closed","issue":{"url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/226","repository_url":"https://api.github.com/repos/Arkq/bluez-alsa","labels_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/226/comments","events_url":"https://api.github.com/repos/Arkq/bluez-alsa/issues/226/events","html_url":"https://github.com/Arkq/bluez-alsa/issues/226","id":460183474,"node_id":"MDU6SXNzdWU0NjAxODM0NzQ=","number":226,"title":"Can't record sound run bluealsa with hfp-ofono profile","user":{"login":"xuewenxu","id":22522298,"node_id":"MDQ6VXNlcjIyNTIyMjk4","avatar_url":"https://avatars1.githubusercontent.com/u/22522298?v=4","gravatar_id":"","url":"https://api.github.com/users/xuewenxu","html_url":"https://github.com/xuewenxu","followers_url":"https://api.github.com/users/xuewenxu/followers","following_url":"https://api.github.com/users/xuewenxu/following{/other_user}","gists_url":"https://api.github.com/users/xuewenxu/gists{/gist_id}","starred_url":"https://api.github.com/users/xuewenxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuewenxu/subscriptions","organizations_url":"https://api.github.com/users/xuewenxu/orgs","repos_url":"https://api.github.com/users/xuewenxu/repos","events_url":"https://api.github.com/users/xuewenxu/events{/privacy}","received_events_url":"https://api.github.com/users/xuewenxu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-06-25T02:57:52Z","updated_at":"2019-11-25T19:38:40Z","closed_at":"2019-11-25T19:38:40Z","author_association":"NONE","body":"I was run bluealsa like this: sudo bluealsa -p a2dp-source -p a2dp-sink -p hfp-ofono,  the log as follow:\r\nbluealsa: ../../src/main.c:283: Disabling native HFP due to enabled oFono\r\nbluealsa: ../../src/main.c:297: dbus address:unix:path=/var/run/dbus/system_bus_socket\r\nbluealsa: ../../src/bluez.c:1166: object_path:/org/bluez\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.freedesktop.DBus.Introspectable\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.AgentManager1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.ProfileManager1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.Alert1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.HealthManager1\r\nbluealsa: ../../src/bluez.c:1166: object_path:/org/bluez/hci0\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.freedesktop.DBus.Introspectable\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.Adapter1\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:Address\r\nbluealsa: ../../src/bluez.c:63: adapter path:/org/bluez/hci0, adapter_address:B8:27:EB:29:37:81\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:Name\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:Alias\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:Class\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:Powered\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:Discoverable\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:DiscoverableTimeout\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:Pairable\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:PairableTimeout\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:Discovering\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:UUIDs\r\nbluealsa: ../../src/bluez.c:1171: object path:/org/bluez/hci0, interface:org.bluez.Adapter1, property:Modalias\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.freedesktop.DBus.Properties\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.Media1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.CyclingSpeedManager1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.HeartRateManager1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.ThermometerManager1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.NetworkServer1\r\nbluealsa: ../../src/bluez.c:1166: object_path:/org/bluez/hci0/dev_1C_52_16_17_A8_F4\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.freedesktop.DBus.Introspectable\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.Device1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.freedesktop.DBus.Properties\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.MediaControl1\r\nbluealsa: ../../src/bluez.c:1166: object_path:/org/bluez/hci0/dev_DC_F0_90_09_4B_B6\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.freedesktop.DBus.Introspectable\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.Device1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.freedesktop.DBus.Properties\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.ProximityReporter1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.Network1\r\nbluealsa: ../../src/bluez.c:1168: interface0:org.bluez.MediaControl1\r\nbluealsa: ../../src/ba-adapter.c:61: ba_dbus_path:/org/bluealsa/hci0, bluez_dbus_path:/org/bluez/hci0\r\nbluealsa: ../../src/ctl.c:666: saddr.sun_path:/var/run/bluealsa/hci0\r\nbluealsa: ../../src/ctl.c:513: Starting controller loop: hci0\r\nbluealsa: ../../src/bluez.c:802: Registering endpoint: /org/bluez/hci0/A2DP/MPEG24/Source/1\r\nbluealsa: ../../src/bluez.c:802: Registering endpoint: /org/bluez/hci0/A2DP/MPEG24/Sink/1\r\nbluealsa: ../../src/bluez.c:802: Registering endpoint: /org/bluez/hci0/A2DP/SBC/Source/1\r\nbluealsa: ../../src/bluez.c:802: Registering endpoint: /org/bluez/hci0/A2DP/SBC/Sink/1\r\nbluealsa: ../../src/ofono.c:474: Registering oFono audio agent: /org/bluez/HFP/oFono\r\nbluealsa: ../../src/ofono.c:264: ofono_get_all_cards be called!\r\nbluealsa: ../../src/ofono.c:291: send_path:(null)\r\nbluealsa: ../../src/ofono.c:292: sender::1.3\r\nbluealsa: ../../src/main.c:332: Acquiring D-Bus service name: org.bluealsa\r\nbluealsa: ../../src/main.c:337: Starting main dispatching loop\r\n\r\n Run arecord capture.wav command  I was get errors:\r\n../../../src/asound/../shared/ctl-client.c:108: Connecting to socket: /var/run/bluealsa/hci0\r\n../../../src/asound/../shared/ctl-client.c:238: Getting transport for 1C:52:16:17:A8:F4 type 0x82\r\n../../../src/asound/../shared/ctl-client.c:253: len:1, transport:18\r\nALSA lib ../../../src/asound/bluealsa-pcm.c:714:(_snd_pcm_bluealsa_open) Couldn't get BlueALSA transport: No such device or address\r\narecord: main:722: audio open error: No such device or address\r\n\r\nFrom the bluealsa's logs when it started up  I founded that the function \"ofono_card_add\" seems not be called.\r\nHardware is  Raspberry Pi 3 Model B.\r\n~/.asoundrc file as follow:\r\n pcm.!default {\r\n     type asym\r\n     capture.pcm \"btmic\"\r\n    playback.pcm \"btspeaker\"\r\n }\r\n \r\npcm.btspeaker {\r\n     type plug\r\n     slave.pcm {\r\n         type bluealsa\r\n        device \"1C:52:16:17:A8:F4\"\r\n         profile \"a2dp\"\r\n     }\r\n}\r\n \r\n pcm.btmic {\r\n     type plug\r\n    slave.pcm {\r\n       type bluealsa\r\n         device \"1C:52:16:17:A8:F4\"\r\n         profile \"sco\"\r\n    }\r\n }\r\n"}}
{"actor":{"display_login":"Arkq"}}