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: au88x0: 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/87ldr9aucw.wl-kuninori.morimoto.gx@renesas.com

authored by

Kuninori Morimoto and committed by
Takashi Iwai
9aedbdff 3abd2e16

+5 -5
+5 -5
sound/pci/au88x0/au88x0_a3d.c
··· 754 754 static int 755 755 snd_vortex_a3d_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) 756 756 { 757 - //a3dsrc_t *a = kcontrol->private_data; 757 + //a3dsrc_t *a = snd_kcontrol_chip(kcontrol); 758 758 /* No read yet. Would this be really useable/needed ? */ 759 759 760 760 return 0; ··· 764 764 snd_vortex_a3d_hrtf_put(struct snd_kcontrol *kcontrol, 765 765 struct snd_ctl_elem_value *ucontrol) 766 766 { 767 - a3dsrc_t *a = kcontrol->private_data; 767 + a3dsrc_t *a = snd_kcontrol_chip(kcontrol); 768 768 int i; 769 769 int coord[6]; 770 770 for (i = 0; i < 6; i++) ··· 781 781 snd_vortex_a3d_itd_put(struct snd_kcontrol *kcontrol, 782 782 struct snd_ctl_elem_value *ucontrol) 783 783 { 784 - a3dsrc_t *a = kcontrol->private_data; 784 + a3dsrc_t *a = snd_kcontrol_chip(kcontrol); 785 785 int coord[6]; 786 786 int i; 787 787 for (i = 0; i < 6; i++) ··· 800 800 snd_vortex_a3d_ild_put(struct snd_kcontrol *kcontrol, 801 801 struct snd_ctl_elem_value *ucontrol) 802 802 { 803 - a3dsrc_t *a = kcontrol->private_data; 803 + a3dsrc_t *a = snd_kcontrol_chip(kcontrol); 804 804 int l, r; 805 805 /* There may be some scale tranlation needed here. */ 806 806 l = ucontrol->value.integer.value[0]; ··· 816 816 snd_vortex_a3d_filter_put(struct snd_kcontrol *kcontrol, 817 817 struct snd_ctl_elem_value *ucontrol) 818 818 { 819 - a3dsrc_t *a = kcontrol->private_data; 819 + a3dsrc_t *a = snd_kcontrol_chip(kcontrol); 820 820 int i; 821 821 int params[6]; 822 822 for (i = 0; i < 6; i++)