]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/soc/sh/rcar/core.c
Merge remote-tracking branches 'asoc/topic/pxa', 'asoc/topic/qcom', 'asoc/topic/rcar...
[mirror_ubuntu-bionic-kernel.git] / sound / soc / sh / rcar / core.c
index ca05a0a95a4dd95aa89d6528398c1c2bd43a4ab2..02b4b085b8d77f57398a13c35214a49445d1ed77 100644 (file)
@@ -877,14 +877,13 @@ static int __rsnd_kctrl_new(struct rsnd_mod *mod,
                            void (*update)(struct rsnd_dai_stream *io,
                                           struct rsnd_mod *mod))
 {
-       struct snd_soc_card *soc_card = rtd->card;
        struct snd_card *card = rtd->card->snd_card;
        struct snd_kcontrol *kctrl;
        struct snd_kcontrol_new knew = {
                .iface          = SNDRV_CTL_ELEM_IFACE_MIXER,
                .name           = name,
                .info           = rsnd_kctrl_info,
-               .index          = rtd - soc_card->rtd,
+               .index          = rtd->num,
                .get            = rsnd_kctrl_get,
                .put            = rsnd_kctrl_put,
                .private_value  = (unsigned long)cfg,