Jelajahi Sumber

dsp: Fix port media type sample rate for APTX AD

Send sample rate for port media type from APTX AD
config before AFE port start.

Change-Id: I3410428661ad4162539f437bb391c33a60ea1852
Signed-off-by: Aniket Kumar Lata <[email protected]>
Aniket Kumar Lata 6 tahun lalu
induk
melakukan
1c9ae8ff76
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      dsp/q6afe.c

+ 3 - 0
dsp/q6afe.c

@@ -3790,6 +3790,9 @@ static int q6afe_send_enc_config(u16 port_id,
 	if (format == ASM_MEDIA_FMT_LDAC)
 		media_type.sample_rate =
 			cfg->ldac_config.custom_config.sample_rate;
+	else if (format == ASM_MEDIA_FMT_APTX_ADAPTIVE)
+		media_type.sample_rate =
+			cfg->aptx_ad_config.custom_cfg.sample_rate;
 	else
 		media_type.sample_rate =
 			afe_config.slim_sch.sample_rate;