Home
last modified time | relevance | path

Searched refs:sport_handle (Results 1 – 6 of 6) sorted by relevance

/sound/soc/blackfin/
Dbf5xx-i2s.c57 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); in bf5xx_i2s_set_dai_fmt() local
58 struct bf5xx_i2s_port *bf5xx_i2s = sport_handle->private_data; in bf5xx_i2s_set_dai_fmt()
103 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); in bf5xx_i2s_hw_params() local
104 struct bf5xx_i2s_port *bf5xx_i2s = sport_handle->private_data; in bf5xx_i2s_hw_params()
113 sport_handle->wdsize = 1; in bf5xx_i2s_hw_params()
117 sport_handle->wdsize = 2; in bf5xx_i2s_hw_params()
122 sport_handle->wdsize = 3; in bf5xx_i2s_hw_params()
127 sport_handle->wdsize = 4; in bf5xx_i2s_hw_params()
141 ret = sport_config_rx(sport_handle, bf5xx_i2s->rcr1, in bf5xx_i2s_hw_params()
148 ret = sport_config_tx(sport_handle, bf5xx_i2s->tcr1, in bf5xx_i2s_hw_params()
[all …]
Dbf5xx-tdm.c85 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); in bf5xx_tdm_hw_params() local
86 struct bf5xx_tdm_port *bf5xx_tdm = sport_handle->private_data; in bf5xx_tdm_hw_params()
95 sport_handle->wdsize = 4; in bf5xx_tdm_hw_params()
113 ret = sport_config_rx(sport_handle, bf5xx_tdm->rcr1, in bf5xx_tdm_hw_params()
120 ret = sport_config_tx(sport_handle, bf5xx_tdm->tcr1, in bf5xx_tdm_hw_params()
136 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); in bf5xx_tdm_shutdown() local
137 struct bf5xx_tdm_port *bf5xx_tdm = sport_handle->private_data; in bf5xx_tdm_shutdown()
148 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(dai); in bf5xx_tdm_set_channel_map() local
149 struct bf5xx_tdm_port *bf5xx_tdm = sport_handle->private_data; in bf5xx_tdm_set_channel_map()
258 struct sport_device *sport_handle; in bfin_tdm_probe() local
[all …]
Dbf5xx-ac97.c124 struct sport_device *sport_handle = ac97_sport_handle; in bf5xx_ac97_read() local
130 if (sport_handle->tx_run || sport_handle->rx_run) { in bf5xx_ac97_read()
140 sport_send_and_recv(sport_handle, (unsigned char *)&out_frame, in bf5xx_ac97_read()
149 struct sport_device *sport_handle = ac97_sport_handle; in bf5xx_ac97_write() local
153 if (sport_handle->tx_run) { in bf5xx_ac97_write()
162 sport_send_and_recv(sport_handle, (unsigned char *)&frame, \ in bf5xx_ac97_write()
169 struct sport_device *sport_handle = ac97_sport_handle; in bf5xx_ac97_warm_reset() local
170 u16 gpio = P_IDENT(sport_handle->pin_req[3]); in bf5xx_ac97_warm_reset()
174 peripheral_free_list(sport_handle->pin_req); in bf5xx_ac97_warm_reset()
181 peripheral_request_list(sport_handle->pin_req, "soc-audio"); in bf5xx_ac97_warm_reset()
[all …]
Dbf5xx-ac97-pcm.c248 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); in bf5xx_pcm_open() local
260 if (sport_handle != NULL) in bf5xx_pcm_open()
261 runtime->private_data = sport_handle; in bf5xx_pcm_open()
322 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); in bf5xx_pcm_preallocate_dma_buffer() local
344 sport_handle->tx_buf = buf->area; in bf5xx_pcm_preallocate_dma_buffer()
346 sport_handle->rx_buf = buf->area; in bf5xx_pcm_preallocate_dma_buffer()
354 if (!sport_handle->tx_dma_buf) { in bf5xx_pcm_preallocate_dma_buffer()
355 sport_handle->tx_dma_buf = dma_alloc_coherent(NULL, \ in bf5xx_pcm_preallocate_dma_buffer()
356 size, &sport_handle->tx_dma_phy, GFP_KERNEL); in bf5xx_pcm_preallocate_dma_buffer()
357 if (!sport_handle->tx_dma_buf) { in bf5xx_pcm_preallocate_dma_buffer()
[all …]
Dbf5xx-i2s-pcm.c162 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); in bf5xx_pcm_open() local
176 if (sport_handle != NULL) { in bf5xx_pcm_open()
178 sport_handle->tx_buf = buf->area; in bf5xx_pcm_open()
180 sport_handle->rx_buf = buf->area; in bf5xx_pcm_open()
182 runtime->private_data = sport_handle; in bf5xx_pcm_open()
Dbf5xx-tdm-pcm.c159 struct sport_device *sport_handle = snd_soc_dai_get_drvdata(cpu_dai); in bf5xx_pcm_open() local
172 if (sport_handle != NULL) { in bf5xx_pcm_open()
174 sport_handle->tx_buf = buf->area; in bf5xx_pcm_open()
176 sport_handle->rx_buf = buf->area; in bf5xx_pcm_open()
178 runtime->private_data = sport_handle; in bf5xx_pcm_open()