ASoC: Add compress_type as a member to snd_soc_codec
[deliverable/linux.git] / sound / soc / soc-core.c
index 2b1fcae4131ea23ddb1cd5c1fd710e415a2fcbe6..1fd1d1a62af154f1894607e38fdb9ed25520b759 100644 (file)
@@ -3450,6 +3450,11 @@ int snd_soc_register_codec(struct device *dev,
                return -ENOMEM;
        }
 
+       if (codec_drv->compress_type)
+               codec->compress_type = codec_drv->compress_type;
+       else
+               codec->compress_type = SND_SOC_FLAT_COMPRESSION;
+
        INIT_LIST_HEAD(&codec->dapm.widgets);
        INIT_LIST_HEAD(&codec->dapm.paths);
        codec->write = codec_drv->write;
This page took 0.046369 seconds and 5 git commands to generate.