Loading sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c +2 −2 Original line number Diff line number Diff line Loading @@ -739,7 +739,7 @@ int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode, sample_rate, channels, topology, perf_mode, bits_per_sample, app_type, acdb_dev_id); if ((copp_idx < 0) && if ((copp_idx < 0) || (copp_idx >= MAX_COPPS_PER_PORT)) { pr_err("%s: adm open failed copp_idx:%d\n", __func__, copp_idx); Loading Loading @@ -5443,7 +5443,7 @@ static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream) sample_rate, channels, topology, fdai->perf_mode, bits_per_sample, app_type, acdb_dev_id); if ((copp_idx < 0) && if ((copp_idx < 0) || (copp_idx >= MAX_COPPS_PER_PORT)) { pr_err("%s: adm open failed\n", __func__); return -EINVAL; Loading Loading
sound/soc/msm/qdsp6v2/msm-pcm-routing-v2.c +2 −2 Original line number Diff line number Diff line Loading @@ -739,7 +739,7 @@ int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode, sample_rate, channels, topology, perf_mode, bits_per_sample, app_type, acdb_dev_id); if ((copp_idx < 0) && if ((copp_idx < 0) || (copp_idx >= MAX_COPPS_PER_PORT)) { pr_err("%s: adm open failed copp_idx:%d\n", __func__, copp_idx); Loading Loading @@ -5443,7 +5443,7 @@ static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream) sample_rate, channels, topology, fdai->perf_mode, bits_per_sample, app_type, acdb_dev_id); if ((copp_idx < 0) && if ((copp_idx < 0) || (copp_idx >= MAX_COPPS_PER_PORT)) { pr_err("%s: adm open failed\n", __func__); return -EINVAL; Loading