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

authored by

Kuninori Morimoto and committed by
Takashi Iwai
2086e63b 5d51fdd1

+4 -4
+4 -4
sound/sh/aica.c
··· 469 469 static int aica_pcmvolume_get(struct snd_kcontrol *kcontrol, 470 470 struct snd_ctl_elem_value *ucontrol) 471 471 { 472 - struct snd_card_aica *dreamcastcard; 473 - dreamcastcard = kcontrol->private_data; 472 + struct snd_card_aica *dreamcastcard = snd_kcontrol_chip(kcontrol); 473 + 474 474 if (unlikely(!dreamcastcard->channel)) 475 475 return -ETXTBSY; /* we've not yet been set up */ 476 476 ucontrol->value.integer.value[0] = dreamcastcard->channel->vol; ··· 480 480 static int aica_pcmvolume_put(struct snd_kcontrol *kcontrol, 481 481 struct snd_ctl_elem_value *ucontrol) 482 482 { 483 - struct snd_card_aica *dreamcastcard; 483 + struct snd_card_aica *dreamcastcard = snd_kcontrol_chip(kcontrol); 484 484 unsigned int vol; 485 - dreamcastcard = kcontrol->private_data; 485 + 486 486 if (unlikely(!dreamcastcard->channel)) 487 487 return -ETXTBSY; 488 488 vol = ucontrol->value.integer.value[0];