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

authored by

Kuninori Morimoto and committed by
Takashi Iwai
65468d1d 9aedbdff

+3 -6
+3 -6
sound/pci/asihpi/asihpi.c
··· 2300 2300 static int snd_asihpi_clksrc_info(struct snd_kcontrol *kcontrol, 2301 2301 struct snd_ctl_elem_info *uinfo) 2302 2302 { 2303 - struct snd_card_asihpi *asihpi = 2304 - (struct snd_card_asihpi *)(kcontrol->private_data); 2303 + struct snd_card_asihpi *asihpi = snd_kcontrol_chip(kcontrol); 2305 2304 struct clk_cache *clkcache = &asihpi->cc; 2306 2305 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 2307 2306 uinfo->count = 1; ··· 2318 2319 static int snd_asihpi_clksrc_get(struct snd_kcontrol *kcontrol, 2319 2320 struct snd_ctl_elem_value *ucontrol) 2320 2321 { 2321 - struct snd_card_asihpi *asihpi = 2322 - (struct snd_card_asihpi *)(kcontrol->private_data); 2322 + struct snd_card_asihpi *asihpi = snd_kcontrol_chip(kcontrol); 2323 2323 struct clk_cache *clkcache = &asihpi->cc; 2324 2324 u32 h_control = kcontrol->private_value; 2325 2325 u16 source, srcindex = 0; ··· 2345 2347 static int snd_asihpi_clksrc_put(struct snd_kcontrol *kcontrol, 2346 2348 struct snd_ctl_elem_value *ucontrol) 2347 2349 { 2348 - struct snd_card_asihpi *asihpi = 2349 - (struct snd_card_asihpi *)(kcontrol->private_data); 2350 + struct snd_card_asihpi *asihpi = snd_kcontrol_chip(kcontrol); 2350 2351 struct clk_cache *clkcache = &asihpi->cc; 2351 2352 unsigned int item; 2352 2353 int change;