|
@@ -76,6 +76,10 @@ const DECLARE_TLV_DB_LINEAR(msm_compr_vol_gain, 0,
|
|
|
|
|
|
#define SND_DEC_DDP_MAX_PARAMS 18
|
|
#define SND_DEC_DDP_MAX_PARAMS 18
|
|
|
|
|
|
|
|
+#ifndef COMPRESSED_PERF_MODE_FLAG
|
|
|
|
+#define COMPRESSED_PERF_MODE_FLAG 0
|
|
|
|
+#endif
|
|
|
|
+
|
|
struct msm_compr_gapless_state {
|
|
struct msm_compr_gapless_state {
|
|
bool set_next_stream_id;
|
|
bool set_next_stream_id;
|
|
int32_t stream_opened[MAX_NUMBER_OF_STREAMS];
|
|
int32_t stream_opened[MAX_NUMBER_OF_STREAMS];
|
|
@@ -2042,6 +2046,11 @@ static int msm_compr_set_params(struct snd_compr_stream *cstream,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (params->codec.flags & COMPRESSED_PERF_MODE_FLAG) {
|
|
|
|
+ pr_debug("%s: setting perf mode = %d", __func__, LOW_LATENCY_PCM_MODE);
|
|
|
|
+ prtd->audio_client->perf_mode = LOW_LATENCY_PCM_MODE;
|
|
|
|
+ }
|
|
|
|
+
|
|
switch (params->codec.id) {
|
|
switch (params->codec.id) {
|
|
case SND_AUDIOCODEC_PCM: {
|
|
case SND_AUDIOCODEC_PCM: {
|
|
pr_debug("SND_AUDIOCODEC_PCM\n");
|
|
pr_debug("SND_AUDIOCODEC_PCM\n");
|