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

Commit 4c74fa08 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 1493beb2 45b5e1f7
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -959,7 +959,19 @@ int snd_soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num)

	rtd->compr = compr;
	compr->private_data = rtd;

#ifdef CONFIG_AUDIO_QGKI
	for_each_rtdcom(rtd, rtdcom) {
		component = rtdcom->component;

		if (component->driver->pcm_new) {
			ret = component->driver->pcm_new(rtd);
			if (ret < 0) {
				pr_err("asoc: compress pcm constructor failed\n");
				return ret;
			}
		}
	}
	dev_dbg(rtd->card->dev, "Compress ASoC: %s <-> %s mapping ok\n",
		codec_dai->name, cpu_dai->name);
#else