Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: pci: ali5451: use snd_kcontrol_chip()

We can use snd_kcontrol_chip(). Let's use it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/87ikmdauco.wl-kuninori.morimoto.gx@renesas.com

authored by

Kuninori Morimoto and committed by
Takashi Iwai
a25ed230 65468d1d

+2 -2
+2 -2
sound/pci/ali5451/ali5451.c
··· 1688 1688 static int snd_ali5451_spdif_get(struct snd_kcontrol *kcontrol, 1689 1689 struct snd_ctl_elem_value *ucontrol) 1690 1690 { 1691 - struct snd_ali *codec = kcontrol->private_data; 1691 + struct snd_ali *codec = snd_kcontrol_chip(kcontrol); 1692 1692 unsigned int spdif_enable; 1693 1693 1694 1694 spdif_enable = ucontrol->value.integer.value[0] ? 1 : 0; ··· 1716 1716 static int snd_ali5451_spdif_put(struct snd_kcontrol *kcontrol, 1717 1717 struct snd_ctl_elem_value *ucontrol) 1718 1718 { 1719 - struct snd_ali *codec = kcontrol->private_data; 1719 + struct snd_ali *codec = snd_kcontrol_chip(kcontrol); 1720 1720 unsigned int change = 0, spdif_enable = 0; 1721 1721 1722 1722 spdif_enable = ucontrol->value.integer.value[0] ? 1 : 0;