[pulseaudio-discuss] Fwd: HFP no audio

Sinthu Raja M sinthu.raja at mistralsolutions.com
Tue Mar 7 17:47:29 UTC 2017


Hi all,

I am currently working in Bluez5.43+Ofono+Pulseaduio9 to make HFP works.

My target device doesn't have a microphone only a speaker.

I am running the following daemons.
bluetoothd
ofonod
pulseaudio

Then I tried connecting to the mobile phone, it got connected. when I
tried playing music from my mobile phone I got the sound from my
target device.

When I tried calling to my mobile from another mobile I didn't get the
sound. I got the following errors

I: [alsa-sink-i2s0-sec HiFi-0] module-loopback.c: Could not peek into queue
I: [alsa-sink-i2s0-sec HiFi-0] module-loopback.c: Could not peek into queue
I: [alsa-sink-i2s0-sec HiFi-0] module-loopback.c: Could not peek into queue
I: [alsa-sink-i2s0-sec HiFi-0] module-loopback.c: Could not peek into queue
I: [alsa-sink-i2s0-sec HiFi-0] module-loopback.c: Could not peek into queue
I: [alsa-sink-i2s0-sec HiFi-0] module-loopback.c: Could not peek into queue
D: [pulseaudio] module-loopback.c: Loopback overall latency is 25.57
ms + 0.00 ms + 25.00 ms = 50.58 ms
D: [pulseaudio] module-loopback.c: Should buffer 2752 bytes, buffered
at minimum 0 bytes
I: [pulseaudio] module-loopback.c: New rate of 7863 Hz not within 2‰
of 8000 Hz, forcing smaller adjustment
D: [pulseaudio] module-loopback.c:
[alsa_output.platform-sound.13.analog-stereo] Updated sampling rate to
7984 Hz.
D: [pulseaudio] module-loopback.c: Loopback overall latency is 23.20
ms + 0.00 ms + 25.00 ms = 48.20 ms
D: [pulseaudio] module-loopback.c: Should buffer 2752 bytes, buffered
at minimum 0 bytes
I: [pulseaudio] module-loopback.c: New rate of 7863 Hz not within 2‰
of 8000 Hz, forcing smaller adjustment
D: [pulseaudio] module-loopback.c:
[alsa_output.platform-sound.13.analog-stereo] Updated sampling rate to
7984 Hz.
D: [pulseaudio] module-loopback.c: Loopback overall latency is 34.00
ms + 10490.00 ms + 0.00 ms = 10524.00 ms
D: [pulseaudio] module-loopback.c: Should buffer 96 bytes, buffered at
minimum 1366 bytes
I: [pulseaudio] module-loopback.c: New rate of 8063 Hz not within 2‰
of 8000 Hz, forcing smaller adjustment
D: [pulseaudio] module-loopback.c: [bluez_sink.80_01_84_1C_1F_EA]
Updated sampling rate to 8016 Hz.
D: [alsa-sink-i2s0-sec HiFi-0] ratelimit.c: 51 events suppressed
D: [alsa-sink-i2s0-sec HiFi-0] alsa-sink.c: Wakeup from ALSA!
I: [alsa-sink-i2s0-sec HiFi-0] module-loopback.c: Could not peek into queue
I: [alsa-sink-i2s0-sec HiFi-0] module-loopback.c: Could not peek into queue
I: [alsa-sink-i2s0-sec HiFi-0] module-loopback.c: Could not peek into queue
I: [alsa-sink-i2s0-sec HiFi-0] module-loopback.c: Could not peek into queue
D: [alsa-sink-i2s0-sec HiFi-0] alsa-sink.c: Wakeup from ALSA!



When I tried pacmd list-sinks I got the following output

index: 0
        name: <alsa_output.platform-sound.13.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
        state: IDLE
        suspend cause:
        priority: 9009
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right:
65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 53.56 ms
        max request: 16 KiB
        max rewind: 32 KiB
        monitor source: 0
        sample spec: s16le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 3
        configured latency: 86.00 ms; range is 86.00 .. 170.67 ms
        card: 0 <alsa_card.platform-sound.13>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = ""
                alsa.id = "i2s0-sec HiFi-0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "xxx-audio"
                alsa.long_card_name = "xxx-audio"
                device.bus_path = "platform-sound.13"
                sysfs.path = "/devices/sound.13/sound/card0"
                device.string = "hw:0"
                device.buffering.buffer_size = "32768"
                device.buffering.fragment_size = "16384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "audio Analog Stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card"
        ports:
                analog-output: Analog Output (priority 9900, latency
offset 0 usec, available: unknown)
                        properties:

        active port: <analog-output>
    index: 1
        name: <bluez_sink.80_01_84_1C_1F_EA>
        driver: <module-bluez5-device.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY FLAT_VOLUME
        state: SUSPENDED
        suspend cause: USER
        priority: 9030
        volume: mono: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 1
        sample spec: s16le 1ch 8000Hz
        channel map: mono
                     Mono
        used by: 1
        linked by: 1
        fixed latency: 128.00 ms
        card: 1 <bluez_card.80_01_84_1C_1F_EA>
        module: 22
        properties:
                bluetooth.protocol = "headset_audio_gateway"
                device.description = "Raja rashid"
                device.string = "80:01:84:1C:1F:EA"
                device.api = "bluez"
                device.class = "sound"
                device.bus = "bluetooth"
                device.form_factor = "phone"
                bluez.path = "/org/bluez/hci0/dev_80_01_84_1C_1F_EA"
                bluez.class = "0x5a020c"
                bluez.alias = "Raja rashid"
                device.icon_name = "audio-card-bluetooth"
        ports:
                phone-output: Phone (priority 0, latency offset 0
usec, available: yes)
                        properties:

        active port: <phone-output>

What could be the possible reasons for the sound is not coming only
when HFP is active. Is there any extra configurations I have to add.
Please suggest.
Thanks in advance

With Regards

Sinthu Raja


More information about the pulseaudio-discuss mailing list