Skip to content

Commit 9aedbdf

Browse files
morimototiwai
authored andcommitted
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
1 parent 3abd2e1 commit 9aedbdf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sound/pci/au88x0/au88x0_a3d.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ snd_vortex_a3d_filter_info(struct snd_kcontrol *kcontrol,
754754
static int
755755
snd_vortex_a3d_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
756756
{
757-
//a3dsrc_t *a = kcontrol->private_data;
757+
//a3dsrc_t *a = snd_kcontrol_chip(kcontrol);
758758
/* No read yet. Would this be really useable/needed ? */
759759

760760
return 0;
@@ -764,7 +764,7 @@ static int
764764
snd_vortex_a3d_hrtf_put(struct snd_kcontrol *kcontrol,
765765
struct snd_ctl_elem_value *ucontrol)
766766
{
767-
a3dsrc_t *a = kcontrol->private_data;
767+
a3dsrc_t *a = snd_kcontrol_chip(kcontrol);
768768
int i;
769769
int coord[6];
770770
for (i = 0; i < 6; i++)
@@ -781,7 +781,7 @@ static int
781781
snd_vortex_a3d_itd_put(struct snd_kcontrol *kcontrol,
782782
struct snd_ctl_elem_value *ucontrol)
783783
{
784-
a3dsrc_t *a = kcontrol->private_data;
784+
a3dsrc_t *a = snd_kcontrol_chip(kcontrol);
785785
int coord[6];
786786
int i;
787787
for (i = 0; i < 6; i++)
@@ -800,7 +800,7 @@ static int
800800
snd_vortex_a3d_ild_put(struct snd_kcontrol *kcontrol,
801801
struct snd_ctl_elem_value *ucontrol)
802802
{
803-
a3dsrc_t *a = kcontrol->private_data;
803+
a3dsrc_t *a = snd_kcontrol_chip(kcontrol);
804804
int l, r;
805805
/* There may be some scale tranlation needed here. */
806806
l = ucontrol->value.integer.value[0];
@@ -816,7 +816,7 @@ static int
816816
snd_vortex_a3d_filter_put(struct snd_kcontrol *kcontrol,
817817
struct snd_ctl_elem_value *ucontrol)
818818
{
819-
a3dsrc_t *a = kcontrol->private_data;
819+
a3dsrc_t *a = snd_kcontrol_chip(kcontrol);
820820
int i;
821821
int params[6];
822822
for (i = 0; i < 6; i++)

0 commit comments

Comments
 (0)