瀏覽代碼

Merge "asoc: update number of channel only for default channel map"

qctecmdr 5 年之前
父節點
當前提交
9baaac8d15
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      asoc/msm-compress-q6-v2.c

+ 2 - 2
asoc/msm-compress-q6-v2.c

@@ -408,8 +408,8 @@ static int msm_compr_set_volume(struct snd_compr_stream *cstream,
 		gain_list[0] = volume_l;
 		gain_list[1] = volume_r;
 		gain_list[2] = volume_l;
-		num_channels = 3;
-		use_default = true;
+		if (use_default)
+			num_channels = 3;
 		rc = q6asm_set_multich_gain(prtd->audio_client, num_channels,
 					gain_list, chmap, use_default);
 	}