OSDN Git Service

Revert "ASoC: msm: Add AVS version check for ADSP 2.7".
authorSoumya Managoli <smanag@codeaurora.org>
Tue, 12 Mar 2019 13:08:43 +0000 (18:38 +0530)
committerSoumya Managoli <smanag@codeaurora.org>
Thu, 14 Mar 2019 06:14:01 +0000 (11:44 +0530)
This reverts commit 20c0cacb28e9c41b822873721346d3bd5a00ba8b.
q6core_get_avs_version() api to query adsp version is
not supported for avs.adsp.2.8 and later components and
gives incorrect results when used.
Hence reverting the change.

Change-Id: I87467efe2fc0b82d94323de172e3efb858292fb8
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c

index ab29f15..1bb25ee 100644 (file)
@@ -384,7 +384,6 @@ static int msm_pcm_playback_prepare(struct snd_pcm_substream *substream)
                        prtd->audio_client = NULL;
                        return -ENOMEM;
                }
-       } else if (q6core_get_avs_version() == Q6_SUBSYS_AVS2_7) {
                ret = q6asm_open_write_v3(prtd->audio_client,
                                FORMAT_LINEAR_PCM, bits_per_sample);
                if (ret < 0) {