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

Commit 601e1cc5 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: ca0106 - Add missing registrations of vmaster controls



Although the vmaster controls are created, they aren't registered thus
they don't appear in the real world.  Added the missing snd_ctl_add()
calls.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Cc: <stable@kernel.org>
parent 3218911f
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -841,6 +841,9 @@ int __devinit snd_ca0106_mixer(struct snd_ca0106 *emu)
					      snd_ca0106_master_db_scale);
					      snd_ca0106_master_db_scale);
	if (!vmaster)
	if (!vmaster)
		return -ENOMEM;
		return -ENOMEM;
	err = snd_ctl_add(card, vmaster);
	if (err < 0)
		return err;
	add_slaves(card, vmaster, slave_vols);
	add_slaves(card, vmaster, slave_vols);


	if (emu->details->spi_dac == 1) {
	if (emu->details->spi_dac == 1) {
@@ -848,6 +851,9 @@ int __devinit snd_ca0106_mixer(struct snd_ca0106 *emu)
						      NULL);
						      NULL);
		if (!vmaster)
		if (!vmaster)
			return -ENOMEM;
			return -ENOMEM;
		err = snd_ctl_add(card, vmaster);
		if (err < 0)
			return err;
		add_slaves(card, vmaster, slave_sws);
		add_slaves(card, vmaster, slave_sws);
	}
	}
        return 0;
        return 0;