Prechádzať zdrojové kódy

Merge "dsp: Fix port media type sample rate for APTX AD"

Linux Build Service Account 6 rokov pred
rodič
commit
53b13dd5a6
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      dsp/q6afe.c

+ 3 - 0
dsp/q6afe.c

@@ -3715,6 +3715,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;