]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - sound/soc/codecs/rt286.c
Merge remote-tracking branches 'asoc/topic/max98090', 'asoc/topic/rockchip', 'asoc...
[mirror_ubuntu-jammy-kernel.git] / sound / soc / codecs / rt286.c
index b86b426f159d136c07cbc4491c8241db0c5a2001..4aa555cbcca81ce60b880d6159b1fb91777e9920 100644 (file)
@@ -269,6 +269,7 @@ static int rt286_hw_read(void *context, unsigned int reg, unsigned int *value)
        return 0;
 }
 
+#ifdef CONFIG_PM
 static void rt286_index_sync(struct snd_soc_codec *codec)
 {
        struct rt286_priv *rt286 = snd_soc_codec_get_drvdata(codec);
@@ -279,6 +280,7 @@ static void rt286_index_sync(struct snd_soc_codec *codec)
                                  rt286->index_cache[i].def);
        }
 }
+#endif
 
 static int rt286_support_power_controls[] = {
        RT286_DAC_OUT1,