File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -469,8 +469,8 @@ static int aica_pcmvolume_info(struct snd_kcontrol *kcontrol,
469469static int aica_pcmvolume_get (struct snd_kcontrol * kcontrol ,
470470 struct snd_ctl_elem_value * ucontrol )
471471{
472- struct snd_card_aica * dreamcastcard ;
473- dreamcastcard = kcontrol -> private_data ;
472+ struct snd_card_aica * dreamcastcard = snd_kcontrol_chip ( kcontrol ) ;
473+
474474 if (unlikely (!dreamcastcard -> channel ))
475475 return - ETXTBSY ; /* we've not yet been set up */
476476 ucontrol -> value .integer .value [0 ] = dreamcastcard -> channel -> vol ;
@@ -480,9 +480,9 @@ static int aica_pcmvolume_get(struct snd_kcontrol *kcontrol,
480480static int aica_pcmvolume_put (struct snd_kcontrol * kcontrol ,
481481 struct snd_ctl_elem_value * ucontrol )
482482{
483- struct snd_card_aica * dreamcastcard ;
483+ struct snd_card_aica * dreamcastcard = snd_kcontrol_chip ( kcontrol ) ;
484484 unsigned int vol ;
485- dreamcastcard = kcontrol -> private_data ;
485+
486486 if (unlikely (!dreamcastcard -> channel ))
487487 return - ETXTBSY ;
488488 vol = ucontrol -> value .integer .value [0 ];
You can’t perform that action at this time.
0 commit comments