Explorar o código

Merge "audio-lnx: dsp: codecs: modify API to configure output PCM block"

Linux Build Service Account %!s(int64=7) %!d(string=hai) anos
pai
achega
7cc0186011
Modificáronse 2 ficheiros con 6 adicións e 4 borrados
  1. 3 1
      dsp/codecs/audio_aac.c
  2. 3 3
      dsp/codecs/audio_multi_aac.c

+ 3 - 1
dsp/codecs/audio_aac.c

@@ -48,7 +48,9 @@ static long audio_ioctl_shared(struct file *file, unsigned int cmd,
 							audio->ac->session);
 		if (audio->feedback == NON_TUNNEL_MODE) {
 			/* Configure PCM output block */
-			rc = q6asm_enc_cfg_blk_pcm(audio->ac, 0, 0);
+			rc = q6asm_enc_cfg_blk_pcm(audio->ac,
+						audio->pcm_cfg.sample_rate,
+						audio->pcm_cfg.channel_count);
 			if (rc < 0) {
 				pr_err("pcm output block config failed\n");
 				break;

+ 3 - 3
dsp/codecs/audio_multi_aac.c

@@ -59,9 +59,9 @@ static long audio_ioctl_shared(struct file *file, unsigned int cmd,
 						audio->ac->session);
 		if (audio->feedback == NON_TUNNEL_MODE) {
 			/* Configure PCM output block */
-			rc = q6asm_enc_cfg_blk_pcm_native(audio->ac,
-				aac_cfg.sample_rate,
-				aac_cfg.ch_cfg);
+			rc = q6asm_enc_cfg_blk_pcm(audio->ac,
+					audio->pcm_cfg.sample_rate,
+					audio->pcm_cfg.channel_count);
 			if (rc < 0) {
 				pr_err("pcm output block config failed\n");
 				break;