Hi,
We are trying to verify the below PTS usecase, where remote initiates
the connection and sends AVDTP setconfiguration with unknown sampling
frequency.
PTS case: A2DP/SNK/AVP/BI-03-C
Description:
Verify that the SNK IUT, acting as an AVDTP Acceptor, returns error
codes when the Lower Tester, acting as an A2DP SRC and an AVDTP INT,
configures a stream using an invalid configuration
(INVALID_SAMPLING_FREQUENCY).
(TSPC_A2DP_15b_1 AND (TSPC_A2DP_5_6 OR TSPC_A2DP_5_4 OR TSPC_A2DP_5_1))
OR TSPC_ALL
User prompt:
Please prepare the IUT to reject an AVDTP SET CONFIGURATION command with
error code INVALID_SAMPLING_FREQUENCY,
then press 'OK 'to continue."
Results:
Expectation: DUT needs to reject the setconfiguration with invalid
sampling frequency error code.
Behavior: When PTS asks for user prompt to prepare and press ok to
continue. it is failing, because in bluez there is a 1 second timer for
connection. this timer is getting expired and avdtp signalling(DISCOVER
procedure) starting again from dut.
diconnect timer source link:
https://github.com/bluez/bluez/blob/5.65/profiles/audio/avdtp.c#L1202
due to this behaviour we were unable to send setconfiguration with
invalid sampling frequency error code from dut.
Is there any workaround for this to fix?
Bluez version: 5.65
pulseaudio version: 15.0
kernel version: 6.6.38
Note: We are observing avdtp connection failure with iphone due to this
timer sometimes.
Thanks & Regards,
Raghavender