Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c49d96d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm: qdsp6v2: Set ADM sample rate to 48Khz for ULL"

parents 31c31c77 48bfba36
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@
/* 2 is to account for module & param ID in payload */
#define ADM_GET_PARAMETER_LENGTH  (4096 - APR_HDR_SIZE - 2 * sizeof(uint32_t))

#define ULL_SUPPORTED_SAMPLE_RATE 48000

enum {
	ADM_RX_AUDPROC_CAL,
@@ -1202,11 +1203,14 @@ int adm_open(int port_id, int path, int rate, int channel_mode, int topology,
			(open.topology_id == VPM_TX_DM_FLUENCE_COPP_TOPOLOGY))
				rate = 16000;

		if (perf_mode)
		if (perf_mode) {
			open.topology_id = NULL_COPP_TOPOLOGY;
			rate = ULL_SUPPORTED_SAMPLE_RATE;
		}

		open.dev_num_channel = channel_mode & 0x00FF;
		open.bit_width = bits_per_sample;
		WARN_ON(perf_mode && (rate != 48000));
		open.sample_rate  = rate;
		memset(open.dev_channel_mapping, 0, 8);