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

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

Merge "ASoC: Compress: Check and set pcm_new driver op"

parents 9d3790b3 482daedc
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -757,6 +757,14 @@ int soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num)
	rtd->compr = compr;
	compr->private_data = rtd;

	if (platform->driver->pcm_new) {
		ret = platform->driver->pcm_new(rtd);
		if (ret < 0) {
			pr_err("asoc: compress pcm constructor failed\n");
			goto compr_err;
		}
	}

	printk(KERN_INFO "compress asoc: %s <-> %s mapping ok\n", codec_dai->name,
		cpu_dai->name);
	return ret;