Lines Matching refs:s_msg
49 dev_dbg(&rpdev->dev, "send cmd %d\n", msg->s_msg.header.cmd); in imx_rpmsg_pcm_send_message()
51 if (!(msg->s_msg.header.type == MSG_TYPE_C)) in imx_rpmsg_pcm_send_message()
54 ret = rpmsg_send(rpdev->ept, (void *)&msg->s_msg, in imx_rpmsg_pcm_send_message()
63 if (msg->s_msg.header.type == MSG_TYPE_C) { in imx_rpmsg_pcm_send_message()
73 msg->s_msg.header.cmd); in imx_rpmsg_pcm_send_message()
89 switch (msg->s_msg.header.cmd) { in imx_rpmsg_pcm_send_message()
100 dev_dbg(&rpdev->dev, "cmd:%d, resp %d\n", msg->s_msg.header.cmd, in imx_rpmsg_pcm_send_message()
147 msg->s_msg.header.cmd = TX_HW_PARAM; in imx_rpmsg_pcm_hw_params()
150 msg->s_msg.header.cmd = RX_HW_PARAM; in imx_rpmsg_pcm_hw_params()
153 msg->s_msg.param.rate = params_rate(params); in imx_rpmsg_pcm_hw_params()
157 msg->s_msg.param.format = RPMSG_S16_LE; in imx_rpmsg_pcm_hw_params()
160 msg->s_msg.param.format = RPMSG_S24_LE; in imx_rpmsg_pcm_hw_params()
163 msg->s_msg.param.format = RPMSG_DSD_U16_LE; in imx_rpmsg_pcm_hw_params()
166 msg->s_msg.param.format = RPMSG_DSD_U32_LE; in imx_rpmsg_pcm_hw_params()
169 msg->s_msg.param.format = RPMSG_S32_LE; in imx_rpmsg_pcm_hw_params()
175 msg->s_msg.param.channels = RPMSG_CH_LEFT; in imx_rpmsg_pcm_hw_params()
178 msg->s_msg.param.channels = RPMSG_CH_STEREO; in imx_rpmsg_pcm_hw_params()
181 msg->s_msg.param.channels = params_channels(params); in imx_rpmsg_pcm_hw_params()
219 msg->s_msg.header.cmd = TX_PERIOD_DONE; in imx_rpmsg_timer_callback()
222 msg->s_msg.header.cmd = RX_PERIOD_DONE; in imx_rpmsg_timer_callback()
242 msg->s_msg.header.cmd = TX_OPEN; in imx_rpmsg_pcm_open()
246 info->msg[cmd].s_msg.param.buffer_tail = 0; in imx_rpmsg_pcm_open()
252 msg->s_msg.header.cmd = RX_OPEN; in imx_rpmsg_pcm_open()
256 info->msg[cmd].s_msg.param.buffer_tail = 0; in imx_rpmsg_pcm_open()
296 msg->s_msg.header.cmd = TX_CLOSE; in imx_rpmsg_pcm_close()
299 msg->s_msg.header.cmd = RX_CLOSE; in imx_rpmsg_pcm_close()
358 msg->s_msg.header.cmd = TX_BUFFER; in imx_rpmsg_prepare_and_submit()
361 msg->s_msg.header.cmd = RX_BUFFER; in imx_rpmsg_prepare_and_submit()
365 msg->s_msg.param.buffer_addr = substream->runtime->dma_addr; in imx_rpmsg_prepare_and_submit()
366 msg->s_msg.param.buffer_size = snd_pcm_lib_buffer_bytes(substream); in imx_rpmsg_prepare_and_submit()
367 msg->s_msg.param.period_size = snd_pcm_lib_period_bytes(substream); in imx_rpmsg_prepare_and_submit()
368 msg->s_msg.param.buffer_tail = 0; in imx_rpmsg_prepare_and_submit()
370 info->num_period[substream->stream] = msg->s_msg.param.buffer_size / in imx_rpmsg_prepare_and_submit()
371 msg->s_msg.param.period_size; in imx_rpmsg_prepare_and_submit()
387 msg->s_msg.header.cmd = TX_START; in imx_rpmsg_async_issue_pending()
390 msg->s_msg.header.cmd = RX_START; in imx_rpmsg_async_issue_pending()
404 msg->s_msg.header.cmd = TX_RESTART; in imx_rpmsg_restart()
407 msg->s_msg.header.cmd = RX_RESTART; in imx_rpmsg_restart()
421 msg->s_msg.header.cmd = TX_PAUSE; in imx_rpmsg_pause()
424 msg->s_msg.header.cmd = RX_PAUSE; in imx_rpmsg_pause()
439 msg->s_msg.header.cmd = TX_TERMINATE; in imx_rpmsg_terminate_all()
442 info->msg[cmd].s_msg.param.buffer_tail = 0; in imx_rpmsg_terminate_all()
447 msg->s_msg.header.cmd = RX_TERMINATE; in imx_rpmsg_terminate_all()
450 info->msg[cmd].s_msg.param.buffer_tail = 0; in imx_rpmsg_terminate_all()
535 msg->s_msg.header.cmd = TX_PERIOD_DONE; in imx_rpmsg_pcm_ack()
538 msg->s_msg.header.cmd = RX_PERIOD_DONE; in imx_rpmsg_pcm_ack()
541 msg->s_msg.header.type = MSG_TYPE_C; in imx_rpmsg_pcm_ack()
548 if (buffer_tail != msg->s_msg.param.buffer_tail) { in imx_rpmsg_pcm_ack()
549 written_num = buffer_tail - msg->s_msg.param.buffer_tail; in imx_rpmsg_pcm_ack()
553 msg->s_msg.param.buffer_tail = buffer_tail; in imx_rpmsg_pcm_ack()
660 if (work_of_rpmsg->msg.s_msg.header.type == MSG_TYPE_C && in imx_rpmsg_pcm_work()
661 (work_of_rpmsg->msg.s_msg.header.cmd == TX_PERIOD_DONE || in imx_rpmsg_pcm_work()
662 work_of_rpmsg->msg.s_msg.header.cmd == RX_PERIOD_DONE)) in imx_rpmsg_pcm_work()
710 info->msg[i].s_msg.header.cate = IMX_RPMSG_AUDIO; in imx_rpmsg_pcm_probe()
711 info->msg[i].s_msg.header.major = IMX_RMPSG_MAJOR; in imx_rpmsg_pcm_probe()
712 info->msg[i].s_msg.header.minor = IMX_RMPSG_MINOR; in imx_rpmsg_pcm_probe()
713 info->msg[i].s_msg.header.type = MSG_TYPE_A; in imx_rpmsg_pcm_probe()
714 info->msg[i].s_msg.param.audioindex = 0; in imx_rpmsg_pcm_probe()
783 rpmsg_tx->s_msg.header.cmd = TX_SUSPEND; in imx_rpmsg_pcm_suspend()
786 rpmsg_rx->s_msg.header.cmd = RX_SUSPEND; in imx_rpmsg_pcm_suspend()
801 rpmsg_tx->s_msg.header.cmd = TX_RESUME; in imx_rpmsg_pcm_resume()
804 rpmsg_rx->s_msg.header.cmd = RX_RESUME; in imx_rpmsg_pcm_resume()