Lines Matching refs:csp
56 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_playback_prepare() local
58 if (csp->running & SNDRV_SB_CSP_ST_LOADED) { in snd_sb16_csp_playback_prepare()
60 if ((csp->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) && in snd_sb16_csp_playback_prepare()
61 ((1U << runtime->format) == csp->acc_format)) { in snd_sb16_csp_playback_prepare()
63 if (csp->ops.csp_use(csp) == 0) { in snd_sb16_csp_playback_prepare()
67 } else if ((csp->mode & SNDRV_SB_CSP_MODE_QSOUND) && (csp->q_enabled)) { in snd_sb16_csp_playback_prepare()
72 if (csp->ops.csp_use(csp) == 0) { in snd_sb16_csp_playback_prepare()
78 } else if (csp->ops.csp_use(csp) == 0) { in snd_sb16_csp_playback_prepare()
80 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_WRITE)) { in snd_sb16_csp_playback_prepare()
82 csp->ops.csp_unuse(csp); in snd_sb16_csp_playback_prepare()
86 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare()
91 csp->ops.csp_unuse(csp); in snd_sb16_csp_playback_prepare()
104 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_capture_prepare() local
106 if (csp->running & SNDRV_SB_CSP_ST_LOADED) { in snd_sb16_csp_capture_prepare()
108 if ((csp->mode & SNDRV_SB_CSP_MODE_DSP_READ) && in snd_sb16_csp_capture_prepare()
109 ((1U << runtime->format) == csp->acc_format)) { in snd_sb16_csp_capture_prepare()
111 if (csp->ops.csp_use(csp) == 0) { in snd_sb16_csp_capture_prepare()
116 } else if (csp->ops.csp_use(csp) == 0) { in snd_sb16_csp_capture_prepare()
118 if (csp->ops.csp_autoload(csp, runtime->format, SNDRV_SB_CSP_MODE_DSP_READ)) { in snd_sb16_csp_capture_prepare()
120 csp->ops.csp_unuse(csp); in snd_sb16_csp_capture_prepare()
124 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_CAPTURE_16) ? in snd_sb16_csp_capture_prepare()
129 csp->ops.csp_unuse(csp); in snd_sb16_csp_capture_prepare()
142 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_update() local
144 if (csp->qpos_changed) { in snd_sb16_csp_update()
146 csp->ops.csp_qsound_transfer (csp); in snd_sb16_csp_update()
156 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_playback_open() local
158 if (csp->running & SNDRV_SB_CSP_ST_LOADED) { in snd_sb16_csp_playback_open()
160 if (csp->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) { in snd_sb16_csp_playback_open()
161 runtime->hw.formats |= csp->acc_format; in snd_sb16_csp_playback_open()
174 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_playback_close() local
176 if (csp->ops.csp_stop(csp) == 0) { in snd_sb16_csp_playback_close()
177 csp->ops.csp_unuse(csp); in snd_sb16_csp_playback_close()
187 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_capture_open() local
189 if (csp->running & SNDRV_SB_CSP_ST_LOADED) { in snd_sb16_csp_capture_open()
191 if (csp->mode & SNDRV_SB_CSP_MODE_DSP_READ) { in snd_sb16_csp_capture_open()
192 runtime->hw.formats |= csp->acc_format; in snd_sb16_csp_capture_open()
205 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_capture_close() local
207 if (csp->ops.csp_stop(csp) == 0) { in snd_sb16_csp_capture_close()
208 csp->ops.csp_unuse(csp); in snd_sb16_csp_capture_close()