Lines Matching refs:mod

39 	struct rsnd_mod mod;  member
59 container_of((_mod), struct rsnd_mix, mod)
69 static void rsnd_mix_activation(struct rsnd_mod *mod) in rsnd_mix_activation() argument
71 rsnd_mod_write(mod, MIX_SWRSR, 0); in rsnd_mix_activation()
72 rsnd_mod_write(mod, MIX_SWRSR, 1); in rsnd_mix_activation()
75 static void rsnd_mix_halt(struct rsnd_mod *mod) in rsnd_mix_halt() argument
77 rsnd_mod_write(mod, MIX_MIXIR, 1); in rsnd_mix_halt()
78 rsnd_mod_write(mod, MIX_SWRSR, 0); in rsnd_mix_halt()
85 struct rsnd_mod *mod) in rsnd_mix_volume_parameter() argument
87 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); in rsnd_mix_volume_parameter()
89 struct rsnd_mix *mix = rsnd_mod_to_mix(mod); in rsnd_mix_volume_parameter()
98 rsnd_mod_write(mod, MIX_MDBAR, volA); in rsnd_mix_volume_parameter()
99 rsnd_mod_write(mod, MIX_MDBBR, volB); in rsnd_mix_volume_parameter()
100 rsnd_mod_write(mod, MIX_MDBCR, volC); in rsnd_mix_volume_parameter()
101 rsnd_mod_write(mod, MIX_MDBDR, volD); in rsnd_mix_volume_parameter()
105 struct rsnd_mod *mod) in rsnd_mix_volume_init() argument
107 struct rsnd_mix *mix = rsnd_mod_to_mix(mod); in rsnd_mix_volume_init()
109 rsnd_mod_write(mod, MIX_MIXIR, 1); in rsnd_mix_volume_init()
112 rsnd_mod_write(mod, MIX_ADINR, rsnd_runtime_channel_after_ctu(io)); in rsnd_mix_volume_init()
115 rsnd_mod_write(mod, MIX_MIXMR, rsnd_kctrl_vals(mix->ren)); in rsnd_mix_volume_init()
116 rsnd_mod_write(mod, MIX_MVPDR, rsnd_kctrl_vals(mix->rup) << 8 | in rsnd_mix_volume_init()
120 rsnd_mix_volume_parameter(io, mod); in rsnd_mix_volume_init()
122 rsnd_mod_write(mod, MIX_MIXIR, 0); in rsnd_mix_volume_init()
126 struct rsnd_mod *mod) in rsnd_mix_volume_update() argument
129 rsnd_mod_write(mod, MIX_MDBER, 0); in rsnd_mix_volume_update()
132 rsnd_mix_volume_parameter(io, mod); in rsnd_mix_volume_update()
135 rsnd_mod_write(mod, MIX_MDBER, 1); in rsnd_mix_volume_update()
138 static int rsnd_mix_probe_(struct rsnd_mod *mod, in rsnd_mix_probe_() argument
142 return rsnd_cmd_attach(io, rsnd_mod_id(mod)); in rsnd_mix_probe_()
145 static int rsnd_mix_init(struct rsnd_mod *mod, in rsnd_mix_init() argument
151 ret = rsnd_mod_power_on(mod); in rsnd_mix_init()
155 rsnd_mix_activation(mod); in rsnd_mix_init()
157 rsnd_mix_volume_init(io, mod); in rsnd_mix_init()
159 rsnd_mix_volume_update(io, mod); in rsnd_mix_init()
164 static int rsnd_mix_quit(struct rsnd_mod *mod, in rsnd_mix_quit() argument
168 rsnd_mix_halt(mod); in rsnd_mix_quit()
170 rsnd_mod_power_off(mod); in rsnd_mix_quit()
175 static int rsnd_mix_pcm_new(struct rsnd_mod *mod, in rsnd_mix_pcm_new() argument
179 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); in rsnd_mix_pcm_new()
181 struct rsnd_mix *mix = rsnd_mod_to_mix(mod); in rsnd_mix_pcm_new()
213 ret = rsnd_kctrl_new_s(mod, io, rtd, in rsnd_mix_pcm_new()
226 ret = rsnd_kctrl_new_s(mod, io, rtd, in rsnd_mix_pcm_new()
234 ret = rsnd_kctrl_new_e(mod, io, rtd, in rsnd_mix_pcm_new()
244 ret = rsnd_kctrl_new_e(mod, io, rtd, in rsnd_mix_pcm_new()
260 struct rsnd_mod *mod) in rsnd_mix_debug_info() argument
262 rsnd_debugfs_mod_reg_show(m, mod, RSND_GEN2_SCU, in rsnd_mix_debug_info()
263 0xd00 + rsnd_mod_id(mod) * 0x40, 0x30); in rsnd_mix_debug_info()