Searched refs:sport_handle (Results 1 - 4 of 4) sorted by relevance

/linux-4.4.14/sound/soc/blackfin/
H A Dbf5xx-i2s.c65 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); bf5xx_i2s_set_dai_fmt() local
66 struct bf5xx_i2s_port *bf5xx_i2s = sport_handle->private_data; bf5xx_i2s_set_dai_fmt()
113 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); bf5xx_i2s_hw_params() local
114 struct bf5xx_i2s_port *bf5xx_i2s = sport_handle->private_data; bf5xx_i2s_hw_params()
123 sport_handle->wdsize = 1; bf5xx_i2s_hw_params()
128 sport_handle->wdsize = 2; bf5xx_i2s_hw_params()
133 sport_handle->wdsize = 3; bf5xx_i2s_hw_params()
138 sport_handle->wdsize = 4; bf5xx_i2s_hw_params()
152 ret = sport_config_rx(sport_handle, bf5xx_i2s->rcr1, bf5xx_i2s_hw_params()
159 ret = sport_config_tx(sport_handle, bf5xx_i2s->tcr1, bf5xx_i2s_hw_params()
173 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); bf5xx_i2s_shutdown() local
174 struct bf5xx_i2s_port *bf5xx_i2s = sport_handle->private_data; bf5xx_i2s_shutdown()
186 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); bf5xx_i2s_set_channel_map() local
187 struct bf5xx_i2s_port *bf5xx_i2s = sport_handle->private_data; bf5xx_i2s_set_channel_map()
221 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); bf5xx_i2s_set_tdm_slot() local
222 struct bf5xx_i2s_port *bf5xx_i2s = sport_handle->private_data; bf5xx_i2s_set_tdm_slot()
237 return sport_set_multichannel(sport_handle, slots, tx_mask, rx_mask, 0); bf5xx_i2s_set_tdm_slot()
243 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); bf5xx_i2s_suspend() local
248 sport_rx_stop(sport_handle); bf5xx_i2s_suspend()
250 sport_tx_stop(sport_handle); bf5xx_i2s_suspend()
256 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); bf5xx_i2s_resume() local
257 struct bf5xx_i2s_port *bf5xx_i2s = sport_handle->private_data; bf5xx_i2s_resume()
262 ret = sport_config_rx(sport_handle, bf5xx_i2s->rcr1, bf5xx_i2s_resume()
269 ret = sport_config_tx(sport_handle, bf5xx_i2s->tcr1, bf5xx_i2s_resume()
276 return sport_set_multichannel(sport_handle, bf5xx_i2s->slots, bf5xx_i2s_resume()
287 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); bf5xx_i2s_dai_probe() local
288 struct bf5xx_i2s_port *bf5xx_i2s = sport_handle->private_data; bf5xx_i2s_dai_probe()
344 struct sport_device *sport_handle; bf5xx_i2s_probe() local
348 sport_handle = sport_init(pdev, 4, 8 * sizeof(u32), bf5xx_i2s_probe()
350 if (!sport_handle) bf5xx_i2s_probe()
358 sport_done(sport_handle); bf5xx_i2s_probe()
367 struct sport_device *sport_handle = platform_get_drvdata(pdev); bf5xx_i2s_remove() local
372 sport_done(sport_handle); bf5xx_i2s_remove()
H A Dbf5xx-ac97.c124 struct sport_device *sport_handle = ac97_sport_handle; bf5xx_ac97_read() local
130 if (sport_handle->tx_run || sport_handle->rx_run) { bf5xx_ac97_read()
140 sport_send_and_recv(sport_handle, (unsigned char *)&out_frame, bf5xx_ac97_read()
149 struct sport_device *sport_handle = ac97_sport_handle; bf5xx_ac97_write() local
153 if (sport_handle->tx_run) { bf5xx_ac97_write()
162 sport_send_and_recv(sport_handle, (unsigned char *)&frame, \ bf5xx_ac97_write()
169 struct sport_device *sport_handle = ac97_sport_handle; bf5xx_ac97_warm_reset() local
170 u16 gpio = P_IDENT(sport_handle->pin_req[3]); bf5xx_ac97_warm_reset()
174 peripheral_free_list(sport_handle->pin_req); bf5xx_ac97_warm_reset()
181 peripheral_request_list(sport_handle->pin_req, "soc-audio"); bf5xx_ac97_warm_reset()
290 struct sport_device *sport_handle; asoc_bfin_ac97_probe() local
306 sport_handle = sport_init(pdev, 2, sizeof(struct ac97_frame), asoc_bfin_ac97_probe()
308 if (!sport_handle) { asoc_bfin_ac97_probe()
315 ret = sport_set_multichannel(sport_handle, 16, 0x3FF, 0x3FF, 1); asoc_bfin_ac97_probe()
317 ret = sport_set_multichannel(sport_handle, 16, 0x1F, 0x1F, 1); asoc_bfin_ac97_probe()
325 ret = sport_config_rx(sport_handle, IRFS, 0xF, 0, (16*16-1)); asoc_bfin_ac97_probe()
332 ret = sport_config_tx(sport_handle, ITFS, 0xF, 0, (16*16-1)); asoc_bfin_ac97_probe()
352 ac97_sport_handle = sport_handle; asoc_bfin_ac97_probe()
357 sport_done(sport_handle); asoc_bfin_ac97_probe()
366 struct sport_device *sport_handle = platform_get_drvdata(pdev); asoc_bfin_ac97_remove() local
369 sport_done(sport_handle); asoc_bfin_ac97_remove()
H A Dbf5xx-ac97-pcm.c246 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); bf5xx_pcm_open() local
258 if (sport_handle != NULL) bf5xx_pcm_open()
259 runtime->private_data = sport_handle; bf5xx_pcm_open()
261 pr_err("sport_handle is NULL\n"); bf5xx_pcm_open()
320 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); bf5xx_pcm_preallocate_dma_buffer() local
342 sport_handle->tx_buf = buf->area; bf5xx_pcm_preallocate_dma_buffer()
344 sport_handle->rx_buf = buf->area; bf5xx_pcm_preallocate_dma_buffer()
352 if (!sport_handle->tx_dma_buf) { bf5xx_pcm_preallocate_dma_buffer()
353 sport_handle->tx_dma_buf = dma_alloc_coherent(NULL, \ bf5xx_pcm_preallocate_dma_buffer()
354 size, &sport_handle->tx_dma_phy, GFP_KERNEL); bf5xx_pcm_preallocate_dma_buffer()
355 if (!sport_handle->tx_dma_buf) { bf5xx_pcm_preallocate_dma_buffer()
359 memset(sport_handle->tx_dma_buf, 0, size); bf5xx_pcm_preallocate_dma_buffer()
361 memset(sport_handle->tx_dma_buf, 0, size); bf5xx_pcm_preallocate_dma_buffer()
363 if (!sport_handle->rx_dma_buf) { bf5xx_pcm_preallocate_dma_buffer()
364 sport_handle->rx_dma_buf = dma_alloc_coherent(NULL, \ bf5xx_pcm_preallocate_dma_buffer()
365 size, &sport_handle->rx_dma_phy, GFP_KERNEL); bf5xx_pcm_preallocate_dma_buffer()
366 if (!sport_handle->rx_dma_buf) { bf5xx_pcm_preallocate_dma_buffer()
370 memset(sport_handle->rx_dma_buf, 0, size); bf5xx_pcm_preallocate_dma_buffer()
372 memset(sport_handle->rx_dma_buf, 0, size); bf5xx_pcm_preallocate_dma_buffer()
386 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); bf5xx_pcm_free_dma_buffers() local
402 if (sport_handle->tx_dma_buf) bf5xx_pcm_free_dma_buffers()
404 sport_handle->tx_dma_buf, 0); bf5xx_pcm_free_dma_buffers()
405 sport_handle->tx_dma_buf = NULL; bf5xx_pcm_free_dma_buffers()
408 if (sport_handle->rx_dma_buf) bf5xx_pcm_free_dma_buffers()
410 sport_handle->rx_dma_buf, 0); bf5xx_pcm_free_dma_buffers()
411 sport_handle->rx_dma_buf = NULL; bf5xx_pcm_free_dma_buffers()
H A Dbf5xx-i2s-pcm.c178 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); bf5xx_pcm_open() local
199 if (sport_handle != NULL) { bf5xx_pcm_open()
201 sport_handle->tx_buf = buf->area; bf5xx_pcm_open()
203 sport_handle->rx_buf = buf->area; bf5xx_pcm_open()
205 runtime->private_data = sport_handle; bf5xx_pcm_open()
207 pr_err("sport_handle is NULL\n"); bf5xx_pcm_open()

Completed in 123 milliseconds