Loading sound/soc/msm/qdsp6v2/q6asm.c +13 −13 Original line number Diff line number Diff line Loading @@ -1864,7 +1864,7 @@ int q6asm_open_read_write(struct audio_client *ac, struct asm_stream_cmd_open_readwrite_v2 open; if ((ac == NULL) || (ac->apr == NULL)) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: session[%d]", __func__, ac->session); Loading Loading @@ -1976,7 +1976,7 @@ int q6asm_run(struct audio_client *ac, uint32_t flags, struct asm_session_cmd_run_v2 run; int rc; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s session[%d]", __func__, ac->session); Loading Loading @@ -2931,7 +2931,7 @@ int q6asm_memory_map(struct audio_client *ac, uint32_t buf_add, int dir, int cmd_size = 0; if (!ac || ac->mmap_apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: Session[%d]\n", __func__, ac->session); Loading Loading @@ -3008,7 +3008,7 @@ int q6asm_memory_unmap(struct audio_client *ac, uint32_t buf_add, int dir) int rc = 0; if (!ac || this_mmap.apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: Session[%d]\n", __func__, ac->session); Loading Loading @@ -3078,7 +3078,7 @@ static int q6asm_memory_map_regions(struct audio_client *ac, int dir, uint32_t bufsz_t; if (!ac || ac->mmap_apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: Session[%d]\n", __func__, ac->session); Loading Loading @@ -3187,7 +3187,7 @@ static int q6asm_memory_unmap_regions(struct audio_client *ac, int dir) int cmd_size = 0; if (!ac || ac->mmap_apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: Session[%d]\n", __func__, ac->session); Loading Loading @@ -3573,7 +3573,7 @@ int q6asm_read(struct audio_client *ac) struct audio_port_data *port; int rc; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } if (ac->io_mode & SYNC_IO_MODE) { Loading Loading @@ -3636,7 +3636,7 @@ int q6asm_read_nolock(struct audio_client *ac) struct audio_port_data *port; int rc; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } if (ac->io_mode & SYNC_IO_MODE) { Loading Loading @@ -3833,7 +3833,7 @@ int q6asm_write(struct audio_client *ac, uint32_t len, uint32_t msw_ts, int dsp_buf = 0; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: session[%d] len=%d", __func__, ac->session, len); Loading Loading @@ -3901,7 +3901,7 @@ int q6asm_write_nolock(struct audio_client *ac, uint32_t len, uint32_t msw_ts, int dsp_buf = 0; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: session[%d] len=%d", __func__, ac->session, len); Loading Loading @@ -3960,7 +3960,7 @@ int q6asm_get_session_time(struct audio_client *ac, uint64_t *tstamp) int rc; if (!ac || ac->apr == NULL || tstamp == NULL) { pr_err("APR handle NULL or tstamp NULL\n"); pr_err("%s: APR handle NULL or tstamp NULL\n", __func__); return -EINVAL; } q6asm_add_hdr(ac, &hdr, sizeof(hdr), TRUE); Loading Loading @@ -4050,7 +4050,7 @@ static int __q6asm_cmd(struct audio_client *ac, int cmd, uint32_t stream_id) int cnt = 0; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } q6asm_stream_add_hdr(ac, &hdr, sizeof(hdr), TRUE, stream_id); Loading Loading @@ -4263,7 +4263,7 @@ int q6asm_reg_tx_overflow(struct audio_client *ac, uint16_t enable) int rc; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s:session[%d]enable[%d]\n", __func__, Loading Loading
sound/soc/msm/qdsp6v2/q6asm.c +13 −13 Original line number Diff line number Diff line Loading @@ -1864,7 +1864,7 @@ int q6asm_open_read_write(struct audio_client *ac, struct asm_stream_cmd_open_readwrite_v2 open; if ((ac == NULL) || (ac->apr == NULL)) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: session[%d]", __func__, ac->session); Loading Loading @@ -1976,7 +1976,7 @@ int q6asm_run(struct audio_client *ac, uint32_t flags, struct asm_session_cmd_run_v2 run; int rc; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s session[%d]", __func__, ac->session); Loading Loading @@ -2931,7 +2931,7 @@ int q6asm_memory_map(struct audio_client *ac, uint32_t buf_add, int dir, int cmd_size = 0; if (!ac || ac->mmap_apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: Session[%d]\n", __func__, ac->session); Loading Loading @@ -3008,7 +3008,7 @@ int q6asm_memory_unmap(struct audio_client *ac, uint32_t buf_add, int dir) int rc = 0; if (!ac || this_mmap.apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: Session[%d]\n", __func__, ac->session); Loading Loading @@ -3078,7 +3078,7 @@ static int q6asm_memory_map_regions(struct audio_client *ac, int dir, uint32_t bufsz_t; if (!ac || ac->mmap_apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: Session[%d]\n", __func__, ac->session); Loading Loading @@ -3187,7 +3187,7 @@ static int q6asm_memory_unmap_regions(struct audio_client *ac, int dir) int cmd_size = 0; if (!ac || ac->mmap_apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: Session[%d]\n", __func__, ac->session); Loading Loading @@ -3573,7 +3573,7 @@ int q6asm_read(struct audio_client *ac) struct audio_port_data *port; int rc; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } if (ac->io_mode & SYNC_IO_MODE) { Loading Loading @@ -3636,7 +3636,7 @@ int q6asm_read_nolock(struct audio_client *ac) struct audio_port_data *port; int rc; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } if (ac->io_mode & SYNC_IO_MODE) { Loading Loading @@ -3833,7 +3833,7 @@ int q6asm_write(struct audio_client *ac, uint32_t len, uint32_t msw_ts, int dsp_buf = 0; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: session[%d] len=%d", __func__, ac->session, len); Loading Loading @@ -3901,7 +3901,7 @@ int q6asm_write_nolock(struct audio_client *ac, uint32_t len, uint32_t msw_ts, int dsp_buf = 0; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s: session[%d] len=%d", __func__, ac->session, len); Loading Loading @@ -3960,7 +3960,7 @@ int q6asm_get_session_time(struct audio_client *ac, uint64_t *tstamp) int rc; if (!ac || ac->apr == NULL || tstamp == NULL) { pr_err("APR handle NULL or tstamp NULL\n"); pr_err("%s: APR handle NULL or tstamp NULL\n", __func__); return -EINVAL; } q6asm_add_hdr(ac, &hdr, sizeof(hdr), TRUE); Loading Loading @@ -4050,7 +4050,7 @@ static int __q6asm_cmd(struct audio_client *ac, int cmd, uint32_t stream_id) int cnt = 0; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } q6asm_stream_add_hdr(ac, &hdr, sizeof(hdr), TRUE, stream_id); Loading Loading @@ -4263,7 +4263,7 @@ int q6asm_reg_tx_overflow(struct audio_client *ac, uint16_t enable) int rc; if (!ac || ac->apr == NULL) { pr_err("APR handle NULL\n"); pr_err("%s: APR handle NULL\n", __func__); return -EINVAL; } pr_debug("%s:session[%d]enable[%d]\n", __func__, Loading