[Bluetooth] imx8mqevk qca6174a bluetooth voice record

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Bluetooth] imx8mqevk qca6174a bluetooth voice record

647 Views
sungwon-kim
Contributor II

I am working on imx8mqevk board with WIFI/BT chip qca6174(onboard, but we plane to replace it to m.2). Play music A2DP protocol work. But  HFP or HSP protocol cannot play music or record. Anyone know about use Bluetooth head phone to record voice ? 

  • Build system : yocto (with imx-bsp)
  • Linux imx8mqevk 5.4.47-2.2.0+g5ec03d06f54e #1 SMP PREEMPT Thu Feb 25 03:33:33 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

 

root@imx8mqevk:~# lspci
00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 (rev 01)
01:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

 

Attach hci0 below command : 

# hciattach /dev/ttymxc2 qca 3000000 flow -b -t 120

# hciconfig -a 

hci0: Type: Primary Bus: UART
BD Address: 00:00:00:00:5A:AD ACL MTU: 1024:7 SCO MTU: 60:8
DOWN
RX bytes:661 acl:0 sco:0 events:35 errors:0
TX bytes:419 acl:0 sco:0 commands:35 errors:0
Features: 0xff 0xfe 0x8f 0xfe 0xd8 0x3f 0x5b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT

 

root@imx8mqevk:~# pactl list cards

...

Card #5
Name: bluez_card.00_11_67_3C_F4_C0
Driver: module-bluez5-device.c
Owner Module: 24
Properties:
device.description = "JAYS a-Six Wireless"
device.string = "00:11:67:3C:F4:C0"
device.api = "bluez"
device.class = "sound"
device.bus = "bluetooth"
device.form_factor = "headset"
bluez.path = "/org/bluez/hci0/dev_00_11_67_3C_F4_C0"
bluez.class = "0x240404"
bluez.alias = "JAYS a-Six Wireless"
device.icon_name = "audio-headset-bluetooth"
device.intended_roles = "phone"
Profiles:
headset_head_unit: Headset Head Unit (HSP/HFP) (sinks: 1, sources: 1, priority: 30, avai)
a2dp_sink: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, priority: 40, avail)
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
Active Profile: headset_head_unit
Ports:
headset-output: Headset (priority: 0, latency offset: 0 usec)
Part of profile(s): headset_head_unit, a2dp_sink
headset-input: Headset (priority: 0, latency offset: 0 usec)
Part of profile(s): headset_head_unit

 

 

 

0 Kudos
1 Reply

628 Views
sungwon-kim
Contributor II

Debugging this my issue ...
Add some kernel config... (CONFIG_INPUT_UINPUT, CONFIG_VIRTIO_INPUT)
yesterday, input isn't created. but after add two kernel config

input(bt mic) created. but not work fine I expected.

#gst-launch-1.0 pulsesrc ! pulsesink

share my syslog after bootup.

Mar 4 02:38:18 imx8mqevk bluetoothd[679]: Bluetooth daemon 5.50
Mar 4 02:38:18 imx8mqevk bluetoothd[679]: Starting SDP server
Mar 4 02:38:18 imx8mqevk bluetoothd[679]: Failed to open RFKILL control device
Mar 4 02:38:18 imx8mqevk bluetoothd[679]: Bluetooth management interface 1.14 initialized
Mar 4 02:38:18 imx8mqevk dbus-daemon[395]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.13' (uid=0 pid=679 comm="/usr/libexec/bluetooth/bluetoothd ")
Mar 4 02:38:18 imx8mqevk dbus-daemon[395]: [system] Successfully activated service 'org.freedesktop.hostname1'
Mar 4 02:38:20 imx8mqevk connmand[576]: eth0 {del} route 212.227.81.55 gw 192.168.0.1 scope 0 <UNIVERSE>
Mar 4 02:38:40 imx8mqevk kernel: [ 88.903530] rc rc0: two consecutive events of type space
Mar 4 02:39:07 imx8mqevk pulseaudio[725]: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
Mar 4 02:39:07 imx8mqevk bluetoothd[679]: Endpoint registered: sender=:1.15 path=/MediaEndpoint/A2DPSource
Mar 4 02:39:07 imx8mqevk bluetoothd[679]: Endpoint registered: sender=:1.15 path=/MediaEndpoint/A2DPSink
Mar 4 02:39:52 imx8mqevk bluetoothd[679]: OMTU! setting failed: setsockopt(L2CAP_OPTIONS): Invalid argument (22)
Mar 4 02:39:52 imx8mqevk bluetoothd[679]: Setting IMTU! failed: setsockopt(L2CAP_OPTIONS): Invalid argument (22)
Mar 4 02:39:52 imx8mqevk bluetoothd[679]: OMTU! setting failed: setsockopt(L2CAP_OPTIONS): Invalid argument (22)
Mar 4 02:39:52 imx8mqevk bluetoothd[679]: Setting IMTU! failed: setsockopt(L2CAP_OPTIONS): Invalid argument (22)
Mar 4 02:39:52 imx8mqevk kernel: [ 160.871240] input: 00:11:67:3C:F4:C0 as /devices/virtual/input/input2
Mar 4 02:45:12 imx8mqevk pulseaudio[728]: [bluetooth] backend-native.c: connect(): Device or resource busy

0 Kudos