Lines Matching refs:mix
912 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[substream->number]; in snd_trident_playback_prepare() local
934 voice->Vol = mix->vol; in snd_trident_playback_prepare()
935 voice->RVol = mix->rvol; in snd_trident_playback_prepare()
936 voice->CVol = mix->cvol; in snd_trident_playback_prepare()
937 voice->Pan = mix->pan; in snd_trident_playback_prepare()
1363 struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[substream->number]; in snd_trident_spdif_prepare() local
1439 voice->Vol = mix->vol; in snd_trident_spdif_prepare()
1440 voice->RVol = mix->rvol; in snd_trident_spdif_prepare()
1441 voice->CVol = mix->cvol; in snd_trident_spdif_prepare()
1442 voice->Pan = mix->pan; in snd_trident_spdif_prepare()
2622 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_vol_control_get() local
2625 ucontrol->value.integer.value[0] = 1023 - mix->vol; in snd_trident_pcm_vol_control_get()
2627 ucontrol->value.integer.value[0] = 255 - (mix->vol>>2); in snd_trident_pcm_vol_control_get()
2636 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_vol_control_put() local
2646 change = val != mix->vol; in snd_trident_pcm_vol_control_put()
2647 mix->vol = val; in snd_trident_pcm_vol_control_put()
2648 if (mix->voice != NULL) in snd_trident_pcm_vol_control_put()
2649 snd_trident_write_vol_reg(trident, mix->voice, val); in snd_trident_pcm_vol_control_put()
2686 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_pan_control_get() local
2688 ucontrol->value.integer.value[0] = mix->pan; in snd_trident_pcm_pan_control_get()
2701 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_pan_control_put() local
2710 change = val != mix->pan; in snd_trident_pcm_pan_control_put()
2711 mix->pan = val; in snd_trident_pcm_pan_control_put()
2712 if (mix->voice != NULL) in snd_trident_pcm_pan_control_put()
2713 snd_trident_write_pan_reg(trident, mix->voice, val); in snd_trident_pcm_pan_control_put()
2749 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_rvol_control_get() local
2751 ucontrol->value.integer.value[0] = 127 - mix->rvol; in snd_trident_pcm_rvol_control_get()
2759 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_rvol_control_put() local
2765 change = val != mix->rvol; in snd_trident_pcm_rvol_control_put()
2766 mix->rvol = val; in snd_trident_pcm_rvol_control_put()
2767 if (mix->voice != NULL) in snd_trident_pcm_rvol_control_put()
2768 snd_trident_write_rvol_reg(trident, mix->voice, val); in snd_trident_pcm_rvol_control_put()
2807 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_cvol_control_get() local
2809 ucontrol->value.integer.value[0] = 127 - mix->cvol; in snd_trident_pcm_cvol_control_get()
2817 …struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[snd_ctl_get_ioffnum(kcontrol, &ucontrol->i… in snd_trident_pcm_cvol_control_put() local
2823 change = val != mix->cvol; in snd_trident_pcm_cvol_control_put()
2824 mix->cvol = val; in snd_trident_pcm_cvol_control_put()
2825 if (mix->voice != NULL) in snd_trident_pcm_cvol_control_put()
2826 snd_trident_write_cvol_reg(trident, mix->voice, val); in snd_trident_pcm_cvol_control_put()