Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timestamp remains the same for all pictures with V4L2_PIX_FMT_JPEG #2351

Closed
vitaliy-gis opened this issue Jan 24, 2018 · 4 comments
Closed
Assignees
Labels
Waiting for internal comment Waiting for comment from a member of the Raspberry Pi engineering team

Comments

@vitaliy-gis
Copy link

If pixel format is V4L2_PIX_FMT_JPEG, then buf.timestamp.tv_sec and buf.timestamp.tv_usec are the same as previous values, but the pictures are different. If I use other format (e.g. V4L2_PIX_FMT_RGB24) - all is ok.

Here is the sample code:

`static int read_frame() {
struct v4l2_buffer buf;

CLEAR(buf);

buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
buf.memory = V4L2_MEMORY_MMAP; 
if (-1 == xioctl(fd, VIDIOC_DQBUF, &buf))
{
    switch (errno)
    {
    case EAGAIN:
        return 0;
    case EIO:
        /* Could ignore EIO, see spec. */
        /* fall through */
    default:
        errno_exit("VIDIOC_DQBUF");
    }
}
assert(buf.index < n_buffers);

 //buf.timestamp.tv_sec               same as previous value
 //buf.timestamp.tv_usec             same as previous value
 //do some work with buffer    

if (-1 == xioctl(fd, VIDIOC_QBUF, &buf))
errno_exit("VIDIOC_QBUF");
return 1;}

`

@JamesH65
Copy link
Contributor

@6by9 any thoughts?

@JamesH65 JamesH65 added the Waiting for internal comment Waiting for comment from a member of the Raspberry Pi engineering team label Apr 20, 2018
@6by9
Copy link
Contributor

6by9 commented Apr 20, 2018

Yes. IIRC the camera stills capture port doesn't generate timestamps, and possibly the image_encode component doesn't pass them, therefore you get the start time every time.
It should be a trivial one to sort - I'll look when I have 30mins spare.

popcornmix added a commit to raspberrypi/firmware that referenced this issue Feb 12, 2019
kernel: balenaFin v1.1.0 carrier board update
See: raspberrypi/linux#2852

kernel: configs: Enable the AD193x codecs
See: raspberrypi/linux#2850

firmware: camera/image_encode: Add timestamp to frames encoded with image_encode
See: raspberrypi/linux#2351
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this issue Feb 12, 2019
kernel: balenaFin v1.1.0 carrier board update
See: raspberrypi/linux#2852

kernel: configs: Enable the AD193x codecs
See: raspberrypi/linux#2850

firmware: camera/image_encode: Add timestamp to frames encoded with image_encode
See: raspberrypi/linux#2351
@6by9
Copy link
Contributor

6by9 commented Feb 13, 2019

This should now be resolved with the latest firmware.
Please test and close if happy (otherwise it'll be closed in 30 days).

@JamesH65
Copy link
Contributor

Closing due to lack of activity. Please request to be reopened if you feel this issue is still relevant.

mkreisl added a commit to xbianonpi/xbian-package-firmware that referenced this issue Oct 6, 2019
- firmware: camera/image_encode: Add timestamp to frames encoded with image_encode
  See: raspberrypi/linux#2351

- firmware: camera_subsystem: Clean up disable_camera_led handling

- firmware: smservice: Add defines for VPU allocations
- smservice: Add support for reporting the supported version to the host

- firmware: Camplus: cdi: Remove requirement for calibration functions

- firmware: isp: Reinstate lres shift parameter accidentally dropped with gamma changes
  See: #1108

- firmware: mmal_ril: List all 4 Bayer orders if the IL component says it supports Bayer

- firmware: raspivid: Stop --raw option resetting --raw-format to YUV
  See: https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=189830&start=25#p1432589

- firmware: Fixed up overflow in microsecond timer
  See: raspberrypi/userland#535

- firmware: smservice: Avoid a double free

- firmware: arm_loader/display: All the framebuffer allocation to be made on the ARM

- firmware: isp_tuners: Fix memory leak in error path

- firmware: testc: Fix dps parsing

- firmware: camera_subsystem: Fix hardware sync pulses off disable_camera_led

- firmware: Replace the remaining direct users of C(mask_gpu_interrupt[0|1])

- firmware: arm_display: Kick transposer for the rainbow screen if required
- firmware: dispmanx: Do not allow transpose if using Full KMS
  See: raspberrypi/linux#2891

- firmware: Revert: arm_loader/display: All the framebuffer allocation to be made on the ARM

- firmware: arm_loader: Further conditionals for passing in a frame buffer

- firmware: di_adv: Drop back to fast if QPUs are masked off

- firmware: Fix AWB exception bug

- firmware: Updates for Pi4

- firmware: Add missing licence file

- firmware: 2711: CORE, EMMC & BVB clock updates for WiFi / 4Kp60
- firmware: 711: Use boost instead of fixed freq for 4Kp60

- firmware: hvs: Emulate the EOLn interrupt with a timer reset from VSTART
  See: #1154

- firmware: Add support for Rec2020 colour space in vc_image, IL, and MMAL

- firmware: Fix composite mode on devices up to Pi3B+
  See: #1166

- firmware: Fixes for core_freq_min causing failure on HDMI1
  See: http://git/vc4/vc4/merge_requests/529

- firmware: hdmi: Don't release previous boost until mode set is complete
  See: #1159

- firmware: bcm_host: Adjust for 64-bit physical addresses
  See: #1161

- firmware: arm_loader: Shrink most stubs back to 256 bytes, add arm64 GIC stub
  See: raspberrypi/linux#3032

- firmware: arm_dispmanx: Add support for setting the colour encoding

- firmware: dmalib: Fix Lite channel interrupt usage, and macro name

- firmware: Force overscan off when using LCDs
  See: #1173

- firmware: cec: Fix crash when using CEC with HDMI1

- firmware: arm_display: Fix race condition initialising CEC

- firmware: hdmi: Always use boost frequency for initial mode set
  See: #1159

- firmware: AWB: Fix usage for IR operation
  See: #1167

- firmware: arm_loader: Support CLOCK_EMMC2 from GET_CLOCK_RATE
  See: #1179

- firmware: arm_loader: Force word alignment for the DTB
  See: #1175

- firmware: clock_2711: don't set reserved values for KA in PLL KAIP registers

- firmware: Assorted minor fixes for tvservice -o

- firmware: Rename hdmi_enable_4k to hdmi_enable_4kp60

- firmware: Revert: clock_2711: don't set reserved values for KA in PLL KAIP registers

- firmware: dispmanx: Fix handling of disable_overscan to not disable it totally
  See: raspberrypi/linux#3059

- firmware: power: Enable/disable H264 and ISP clocks with domain

- firmware: arm_loader: arm_64bit=0 should disable loading of kernel8.img

- firmware: dt-blob: CM has no activity LED

- firmware: AWB updates
  See: #1167

-firmware: Change order of display remapping for default display number

- firmware: AWB: Set default number of stats regions for RPi AWB
  See: #1198

- firmware: Fix composite interrupt HVS channel

- firmware: scalarlib: Fix width setting for SCALERLIB_PIXEL_FORMAT_YUV10COL

- firmware: vcmailbox: Add a new SET_AUDIO_LDO_STATE mailbox command

- firmware: Add mailbox call to report the HDMI timings

- firmware: H264: Set the decoder cache AXI burst length to the same as the encoder

- firmware: gencmd: Fix gencmd max result length
- firmware: bootloader_config: New gencmd to read the EEPROM config

- firmware: pwm_audio: Use PWM1 on BCM2838 unless remapped
  See: #1178

- firmware: Fixups for missing code changes from Pi4 branch
  See: #1201

- firmware: pwm_audio: Use the correct DREQs on Pi4
  See: #1214

- firmware: pixelvalve_2711: Alter back porch for widths of 1366
  See: #1202

- firmware: Clear the SMIDSW1 display interrupt flag on startup

- firmware: dt-blob: Declare Pi 4B's SD_IO voltage selector

- firmware: Fix to allow HDMI audio port route setting
  See: raspberrypi/linux#3100

- firmware: AWB: Allow user to set manual gains for the RPi algorithm

- firmware: arm_loader: Fix disabling of audio before reboot

- firmware: fixed up the custom CVT values to use correct group

- firmware: hdmi: Add independent table entries for hdmi_timings on each display
  See: #1218

- firmware: arm_loader: Fix initial_turbo getting stuck
  See: #1005

- firmware: clock_2711: don't set reserved values for KA in PLL KAIP registers

- firmware: arm_loader: Use platform_get_min_core_voltage for actual min voltage

- firmware: clock: Remember disable state across clock changes

- firmware: platform: pi4: Reduce min core voltage to 810mV

- firmware: arm_dt: Use boost to force turbo mode rather than modifying core_freq_min for uart

- firmware: arm_loader: Add optional flag to add_boost and get_boost calls

- firmware: avs_2711: Move margin from init structure to run time

- firmware: platform: fix get_min_default

- firmware: arm_loader: Use AP_CLOCK_T for clock_iterator for easier debugging

- firmware: AWB: Fix for manual WB settings in capture
  See: #1215

- firmware: sdhost_arasan: Disable busy wait on EMMC_STATUS_NEW_CARD_DATA_SET

- firmware: power: Add 2711-specific PMIC compensation values

- firmware: platform: Remove 10mV of margin

- firmware: Revamp file loading logic

- firmware: power: Allow reading uncached voltage

- firmware: arm_loader: Request KMS to use CVT timings

- firmware: vc_image: Default YUVUV to non-tall mode, with flag if required

- firmware: ldconfig: Implement [pi2/pi3/pi3+] using board types
  See: #1242

- firmware: Avoid defaulting to 64-bit kernel on older Pi

- firmware: Port file loading revamp to master

- firmware: platform: Set up emmc clock earlier

- firmware: hdmi: Implement platform_display_power on 2711
  See: #1224

- firmware: arm_loader: Pass overscan settings to the kernel

- firmware: arm_loader: Add option disable_fw_kms_setup to stop FKMS setup by FW

- firmware: hdmi: Use pixel clock multiplier to determine the core clock

- firmware: Fixups for composite output mode
  See: #1223

- firmware: platform: Allow display_power to be queried from gencmd
  See: #1224

- firmware: arm_loader: Fix no-DT and upstream handling
  See: #1250

- firmware: Round up HDMI0 minimum core clock

- firmware: board_info: Support bcm2710- and bcm2837- Pi 2 DTBs
  See: raspberrypi/linux#3234

- firmware: power: bcm2711: Rescale the GPIO pad power

- firmware: brfs: Add GENET driver for 2711

- firmware: bootloader_state: Add network state and bootmode configuration

- firmware: bootloader_state: Fix mask for EEPROM header magic

- firmware: arm_loader: Fix initial_turbo getting stuck
  See: #1005

- firmware: ldconfig: Support [edid=*] to mean any HDMI monitor
  See: #1136

- firmware: image_fx: Remove restriction that output stride must match input stride

- firmware: image_fx: Remove spamming log line

- firmware: platform: Switch to divide by one when arm_freq exceeds 2GHz

- firmware: Add EMMC support to 2711 Arasan EMMC driver

- firmware: arm_loader: Use /memory@0 if found
  See: raspberrypi/linux#3244

- firmware: bootloader_state: Fix length for bootloader_config

- firmware: arasan_emmc: Fix STB_GPIOOVERRIDE for MMC1 in network boot

- firmware: bfs: Verify that eth FS has not been closed before using
popcornmix pushed a commit that referenced this issue Jul 21, 2021
…format

[ Upstream commit 06d213d ]

For incoming SCO connection with transparent coding format, alt setting
of CVSD is getting applied instead of Transparent.

Before fix:
< HCI Command: Accept Synchron.. (0x01|0x0029) plen 21  #2196 [hci0] 321.342548
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Transmit bandwidth: 8000
        Receive bandwidth: 8000
        Max latency: 13
        Setting: 0x0003
          Input Coding: Linear
          Input Data Format: 1's complement
          Input Sample Size: 8-bit
          # of bits padding at MSB: 0
          Air Coding Format: Transparent Data
        Retransmission effort: Optimize for link quality (0x02)
        Packet type: 0x003f
          HV1 may be used
          HV2 may be used
          HV3 may be used
          EV3 may be used
          EV4 may be used
          EV5 may be used
> HCI Event: Command Status (0x0f) plen 4               #2197 [hci0] 321.343585
      Accept Synchronous Connection Request (0x01|0x0029) ncmd 1
        Status: Success (0x00)
> HCI Event: Synchronous Connect Comp.. (0x2c) plen 17  #2198 [hci0] 321.351666
        Status: Success (0x00)
        Handle: 257
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Link type: eSCO (0x02)
        Transmission interval: 0x0c
        Retransmission window: 0x04
        RX packet length: 60
        TX packet length: 60
        Air mode: Transparent (0x03)
........
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2336 [hci0] 321.383655
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2337 [hci0] 321.389558
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2338 [hci0] 321.393615
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2339 [hci0] 321.393618
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2340 [hci0] 321.393618
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2341 [hci0] 321.397070
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2342 [hci0] 321.403622
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2343 [hci0] 321.403625
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2344 [hci0] 321.403625
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2345 [hci0] 321.403625
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2346 [hci0] 321.404569
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2347 [hci0] 321.412091
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2348 [hci0] 321.413626
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2349 [hci0] 321.413630
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2350 [hci0] 321.413630
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2351 [hci0] 321.419674

After fix:

< HCI Command: Accept Synchronou.. (0x01|0x0029) plen 21  #309 [hci0] 49.439693
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Transmit bandwidth: 8000
        Receive bandwidth: 8000
        Max latency: 13
        Setting: 0x0003
          Input Coding: Linear
          Input Data Format: 1's complement
          Input Sample Size: 8-bit
          # of bits padding at MSB: 0
          Air Coding Format: Transparent Data
        Retransmission effort: Optimize for link quality (0x02)
        Packet type: 0x003f
          HV1 may be used
          HV2 may be used
          HV3 may be used
          EV3 may be used
          EV4 may be used
          EV5 may be used
> HCI Event: Command Status (0x0f) plen 4                 #310 [hci0] 49.440308
      Accept Synchronous Connection Request (0x01|0x0029) ncmd 1
        Status: Success (0x00)
> HCI Event: Synchronous Connect Complete (0x2c) plen 17  #311 [hci0] 49.449308
        Status: Success (0x00)
        Handle: 257
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Link type: eSCO (0x02)
        Transmission interval: 0x0c
        Retransmission window: 0x04
        RX packet length: 60
        TX packet length: 60
        Air mode: Transparent (0x03)
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #312 [hci0] 49.450421
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #313 [hci0] 49.457927
> HCI Event: Max Slots Change (0x1b) plen 3               #314 [hci0] 49.460345
        Handle: 256
        Max slots: 5
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #315 [hci0] 49.465453
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #316 [hci0] 49.470502
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #317 [hci0] 49.470519
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #318 [hci0] 49.472996
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #319 [hci0] 49.480412
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #320 [hci0] 49.480492
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #321 [hci0] 49.487989
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #322 [hci0] 49.490303
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #323 [hci0] 49.495496
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #324 [hci0] 49.500304
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #325 [hci0] 49.500311

Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Lokendra Singh <lokendra.singh@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
popcornmix pushed a commit that referenced this issue Jul 22, 2021
…format

[ Upstream commit 06d213d ]

For incoming SCO connection with transparent coding format, alt setting
of CVSD is getting applied instead of Transparent.

Before fix:
< HCI Command: Accept Synchron.. (0x01|0x0029) plen 21  #2196 [hci0] 321.342548
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Transmit bandwidth: 8000
        Receive bandwidth: 8000
        Max latency: 13
        Setting: 0x0003
          Input Coding: Linear
          Input Data Format: 1's complement
          Input Sample Size: 8-bit
          # of bits padding at MSB: 0
          Air Coding Format: Transparent Data
        Retransmission effort: Optimize for link quality (0x02)
        Packet type: 0x003f
          HV1 may be used
          HV2 may be used
          HV3 may be used
          EV3 may be used
          EV4 may be used
          EV5 may be used
> HCI Event: Command Status (0x0f) plen 4               #2197 [hci0] 321.343585
      Accept Synchronous Connection Request (0x01|0x0029) ncmd 1
        Status: Success (0x00)
> HCI Event: Synchronous Connect Comp.. (0x2c) plen 17  #2198 [hci0] 321.351666
        Status: Success (0x00)
        Handle: 257
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Link type: eSCO (0x02)
        Transmission interval: 0x0c
        Retransmission window: 0x04
        RX packet length: 60
        TX packet length: 60
        Air mode: Transparent (0x03)
........
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2336 [hci0] 321.383655
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2337 [hci0] 321.389558
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2338 [hci0] 321.393615
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2339 [hci0] 321.393618
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2340 [hci0] 321.393618
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2341 [hci0] 321.397070
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2342 [hci0] 321.403622
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2343 [hci0] 321.403625
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2344 [hci0] 321.403625
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2345 [hci0] 321.403625
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2346 [hci0] 321.404569
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2347 [hci0] 321.412091
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2348 [hci0] 321.413626
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2349 [hci0] 321.413630
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2350 [hci0] 321.413630
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2351 [hci0] 321.419674

After fix:

< HCI Command: Accept Synchronou.. (0x01|0x0029) plen 21  #309 [hci0] 49.439693
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Transmit bandwidth: 8000
        Receive bandwidth: 8000
        Max latency: 13
        Setting: 0x0003
          Input Coding: Linear
          Input Data Format: 1's complement
          Input Sample Size: 8-bit
          # of bits padding at MSB: 0
          Air Coding Format: Transparent Data
        Retransmission effort: Optimize for link quality (0x02)
        Packet type: 0x003f
          HV1 may be used
          HV2 may be used
          HV3 may be used
          EV3 may be used
          EV4 may be used
          EV5 may be used
> HCI Event: Command Status (0x0f) plen 4                 #310 [hci0] 49.440308
      Accept Synchronous Connection Request (0x01|0x0029) ncmd 1
        Status: Success (0x00)
> HCI Event: Synchronous Connect Complete (0x2c) plen 17  #311 [hci0] 49.449308
        Status: Success (0x00)
        Handle: 257
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Link type: eSCO (0x02)
        Transmission interval: 0x0c
        Retransmission window: 0x04
        RX packet length: 60
        TX packet length: 60
        Air mode: Transparent (0x03)
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #312 [hci0] 49.450421
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #313 [hci0] 49.457927
> HCI Event: Max Slots Change (0x1b) plen 3               #314 [hci0] 49.460345
        Handle: 256
        Max slots: 5
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #315 [hci0] 49.465453
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #316 [hci0] 49.470502
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #317 [hci0] 49.470519
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #318 [hci0] 49.472996
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #319 [hci0] 49.480412
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #320 [hci0] 49.480492
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #321 [hci0] 49.487989
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #322 [hci0] 49.490303
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #323 [hci0] 49.495496
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #324 [hci0] 49.500304
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #325 [hci0] 49.500311

Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Lokendra Singh <lokendra.singh@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
popcornmix pushed a commit that referenced this issue Jul 27, 2021
…format

[ Upstream commit 06d213d ]

For incoming SCO connection with transparent coding format, alt setting
of CVSD is getting applied instead of Transparent.

Before fix:
< HCI Command: Accept Synchron.. (0x01|0x0029) plen 21  #2196 [hci0] 321.342548
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Transmit bandwidth: 8000
        Receive bandwidth: 8000
        Max latency: 13
        Setting: 0x0003
          Input Coding: Linear
          Input Data Format: 1's complement
          Input Sample Size: 8-bit
          # of bits padding at MSB: 0
          Air Coding Format: Transparent Data
        Retransmission effort: Optimize for link quality (0x02)
        Packet type: 0x003f
          HV1 may be used
          HV2 may be used
          HV3 may be used
          EV3 may be used
          EV4 may be used
          EV5 may be used
> HCI Event: Command Status (0x0f) plen 4               #2197 [hci0] 321.343585
      Accept Synchronous Connection Request (0x01|0x0029) ncmd 1
        Status: Success (0x00)
> HCI Event: Synchronous Connect Comp.. (0x2c) plen 17  #2198 [hci0] 321.351666
        Status: Success (0x00)
        Handle: 257
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Link type: eSCO (0x02)
        Transmission interval: 0x0c
        Retransmission window: 0x04
        RX packet length: 60
        TX packet length: 60
        Air mode: Transparent (0x03)
........
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2336 [hci0] 321.383655
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2337 [hci0] 321.389558
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2338 [hci0] 321.393615
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2339 [hci0] 321.393618
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2340 [hci0] 321.393618
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2341 [hci0] 321.397070
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2342 [hci0] 321.403622
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2343 [hci0] 321.403625
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2344 [hci0] 321.403625
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2345 [hci0] 321.403625
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2346 [hci0] 321.404569
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2347 [hci0] 321.412091
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2348 [hci0] 321.413626
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2349 [hci0] 321.413630
> SCO Data RX: Handle 257 flags 0x00 dlen 48            #2350 [hci0] 321.413630
< SCO Data TX: Handle 257 flags 0x00 dlen 60            #2351 [hci0] 321.419674

After fix:

< HCI Command: Accept Synchronou.. (0x01|0x0029) plen 21  #309 [hci0] 49.439693
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Transmit bandwidth: 8000
        Receive bandwidth: 8000
        Max latency: 13
        Setting: 0x0003
          Input Coding: Linear
          Input Data Format: 1's complement
          Input Sample Size: 8-bit
          # of bits padding at MSB: 0
          Air Coding Format: Transparent Data
        Retransmission effort: Optimize for link quality (0x02)
        Packet type: 0x003f
          HV1 may be used
          HV2 may be used
          HV3 may be used
          EV3 may be used
          EV4 may be used
          EV5 may be used
> HCI Event: Command Status (0x0f) plen 4                 #310 [hci0] 49.440308
      Accept Synchronous Connection Request (0x01|0x0029) ncmd 1
        Status: Success (0x00)
> HCI Event: Synchronous Connect Complete (0x2c) plen 17  #311 [hci0] 49.449308
        Status: Success (0x00)
        Handle: 257
        Address: 1C:CC:D6:E2:EA:80 (Xiaomi Communications Co Ltd)
        Link type: eSCO (0x02)
        Transmission interval: 0x0c
        Retransmission window: 0x04
        RX packet length: 60
        TX packet length: 60
        Air mode: Transparent (0x03)
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #312 [hci0] 49.450421
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #313 [hci0] 49.457927
> HCI Event: Max Slots Change (0x1b) plen 3               #314 [hci0] 49.460345
        Handle: 256
        Max slots: 5
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #315 [hci0] 49.465453
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #316 [hci0] 49.470502
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #317 [hci0] 49.470519
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #318 [hci0] 49.472996
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #319 [hci0] 49.480412
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #320 [hci0] 49.480492
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #321 [hci0] 49.487989
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #322 [hci0] 49.490303
< SCO Data TX: Handle 257 flags 0x00 dlen 60              #323 [hci0] 49.495496
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #324 [hci0] 49.500304
> SCO Data RX: Handle 257 flags 0x00 dlen 60              #325 [hci0] 49.500311

Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Lokendra Singh <lokendra.singh@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for internal comment Waiting for comment from a member of the Raspberry Pi engineering team
Projects
None yet
Development

No branches or pull requests

3 participants