mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-12 01:14:22 -05:00
1748 lines
74 KiB
Diff
1748 lines
74 KiB
Diff
From e2bbf665187a1f0a1248e4a088823cb182153ba9 Mon Sep 17 00:00:00 2001
|
|
From: Ben Romberger <bromberg@codeaurora.org>
|
|
Date: Wed, 18 May 2016 17:15:50 -0700
|
|
Subject: ASoC: msm: qdsp6v2: Change audio drivers to use %pK
|
|
|
|
Change all qdsp6v2 audio driver to use %pK instead
|
|
of %p. %pK hides addresses when the users doesn't
|
|
have kernel permissions. If address information
|
|
is needed echo 0 > /proc/sys/kernel/kptr_restrict.
|
|
|
|
Change-Id: I7baa9f127266726fecf9238167a1e0128a258847
|
|
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
|
|
Signed-off-by: Surendar karka <sukark@codeaurora.org>
|
|
---
|
|
drivers/soc/qcom/qdsp6v2/apr.c | 12 ++--
|
|
drivers/soc/qcom/qdsp6v2/msm_audio_ion.c | 37 ++++++------
|
|
sound/soc/msm/qdsp6v2/audio_cal_utils.c | 4 +-
|
|
sound/soc/msm/qdsp6v2/msm-compr-q6-v2.c | 16 +++---
|
|
sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c | 4 +-
|
|
sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c | 4 +-
|
|
sound/soc/msm/qdsp6v2/msm-ds2-dap-config.c | 4 +-
|
|
sound/soc/msm/qdsp6v2/msm-dts-eagle.c | 32 +++++------
|
|
sound/soc/msm/qdsp6v2/msm-dts-srs-tm-config.c | 4 +-
|
|
sound/soc/msm/qdsp6v2/msm-lsm-client.c | 24 ++++----
|
|
sound/soc/msm/qdsp6v2/msm-pcm-afe-v2.c | 6 +-
|
|
sound/soc/msm/qdsp6v2/msm-pcm-host-voice-v2.c | 6 +-
|
|
sound/soc/msm/qdsp6v2/msm-pcm-lpa-v2.c | 6 +-
|
|
sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c | 6 +-
|
|
sound/soc/msm/qdsp6v2/q6adm.c | 24 ++++----
|
|
sound/soc/msm/qdsp6v2/q6afe.c | 28 ++++-----
|
|
sound/soc/msm/qdsp6v2/q6asm.c | 82 +++++++++++++--------------
|
|
sound/soc/msm/qdsp6v2/q6core.c | 8 +--
|
|
sound/soc/msm/qdsp6v2/q6lsm.c | 22 +++----
|
|
sound/soc/msm/qdsp6v2/q6voice.c | 28 ++++-----
|
|
sound/soc/msm/qdsp6v2/rtac.c | 26 ++++-----
|
|
21 files changed, 192 insertions(+), 191 deletions(-)
|
|
|
|
diff --git a/drivers/soc/qcom/qdsp6v2/apr.c b/drivers/soc/qcom/qdsp6v2/apr.c
|
|
index e88703d..06e7a05 100644
|
|
--- a/drivers/soc/qcom/qdsp6v2/apr.c
|
|
+++ b/drivers/soc/qcom/qdsp6v2/apr.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2010-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -513,7 +513,7 @@ void apr_cb_func(void *buf, int len, void *priv)
|
|
pr_debug("\n*****************\n");
|
|
|
|
if (!buf || len <= APR_HDR_SIZE) {
|
|
- pr_err("APR: Improper apr pkt received:%p %d\n", buf, len);
|
|
+ pr_err("APR: Improper apr pkt received:%pK %d\n", buf, len);
|
|
return;
|
|
}
|
|
hdr = buf;
|
|
@@ -599,7 +599,7 @@ void apr_cb_func(void *buf, int len, void *priv)
|
|
return;
|
|
}
|
|
pr_debug("svc_idx = %d\n", i);
|
|
- pr_debug("%x %x %x %p %p\n", c_svc->id, c_svc->dest_id,
|
|
+ pr_debug("%x %x %x %pK %pK\n", c_svc->id, c_svc->dest_id,
|
|
c_svc->client_id, c_svc->fn, c_svc->priv);
|
|
data.payload_size = hdr->pkt_size - hdr_size;
|
|
data.opcode = hdr->opcode;
|
|
@@ -663,7 +663,7 @@ static void apr_reset_deregister(struct work_struct *work)
|
|
container_of(work, struct apr_reset_work, work);
|
|
|
|
handle = apr_reset->handle;
|
|
- pr_debug("%s:handle[%p]\n", __func__, handle);
|
|
+ pr_debug("%s:handle[%pK]\n", __func__, handle);
|
|
apr_deregister(handle);
|
|
kfree(apr_reset);
|
|
}
|
|
@@ -696,7 +696,7 @@ int apr_deregister(void *handle)
|
|
client[dest_id][client_id].svc_cnt--;
|
|
if (!client[dest_id][client_id].svc_cnt) {
|
|
svc->need_reset = 0x0;
|
|
- pr_debug("%s: service is reset %p\n", __func__, svc);
|
|
+ pr_debug("%s: service is reset %pK\n", __func__, svc);
|
|
}
|
|
}
|
|
|
|
@@ -724,7 +724,7 @@ void apr_reset(void *handle)
|
|
|
|
if (!handle)
|
|
return;
|
|
- pr_debug("%s: handle[%p]\n", __func__, handle);
|
|
+ pr_debug("%s: handle[%pK]\n", __func__, handle);
|
|
|
|
if (apr_reset_workqueue == NULL) {
|
|
pr_err("%s: apr_reset_workqueue is NULL\n", __func__);
|
|
diff --git a/drivers/soc/qcom/qdsp6v2/msm_audio_ion.c b/drivers/soc/qcom/qdsp6v2/msm_audio_ion.c
|
|
index 52c97e4..470be30 100644
|
|
--- a/drivers/soc/qcom/qdsp6v2/msm_audio_ion.c
|
|
+++ b/drivers/soc/qcom/qdsp6v2/msm_audio_ion.c
|
|
@@ -1,5 +1,5 @@
|
|
/*
|
|
- * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
|
|
+ * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -103,11 +103,11 @@ int msm_audio_ion_alloc(const char *name, struct ion_client **client,
|
|
pr_err("%s: ION memory mapping for AUDIO failed\n", __func__);
|
|
goto err_ion_handle;
|
|
}
|
|
- pr_debug("%s: mapped address = %p, size=%zd\n", __func__,
|
|
+ pr_debug("%s: mapped address = %pK, size=%zd\n", __func__,
|
|
*vaddr, bufsz);
|
|
|
|
if (bufsz != 0) {
|
|
- pr_debug("%s: memset to 0 %p %zd\n", __func__, *vaddr, bufsz);
|
|
+ pr_debug("%s: memset to 0 %pK %zd\n", __func__, *vaddr, bufsz);
|
|
memset((void *)*vaddr, 0, bufsz);
|
|
}
|
|
|
|
@@ -153,7 +153,7 @@ int msm_audio_ion_import(const char *name, struct ion_client **client,
|
|
bufsz should be 0 and fd shouldn't be 0 as of now
|
|
*/
|
|
*handle = ion_import_dma_buf(*client, fd);
|
|
- pr_debug("%s: DMA Buf name=%s, fd=%d handle=%p\n", __func__,
|
|
+ pr_debug("%s: DMA Buf name=%s, fd=%d handle=%pK\n", __func__,
|
|
name, fd, *handle);
|
|
if (IS_ERR_OR_NULL((void *) (*handle))) {
|
|
pr_err("%s: ion import dma buffer failed\n",
|
|
@@ -184,7 +184,7 @@ int msm_audio_ion_import(const char *name, struct ion_client **client,
|
|
rc = -ENOMEM;
|
|
goto err_ion_handle;
|
|
}
|
|
- pr_debug("%s: mapped address = %p, size=%zd\n", __func__,
|
|
+ pr_debug("%s: mapped address = %pK, size=%zd\n", __func__,
|
|
*vaddr, bufsz);
|
|
|
|
return 0;
|
|
@@ -207,7 +207,7 @@ int msm_audio_ion_free(struct ion_client *client, struct ion_handle *handle)
|
|
}
|
|
if (msm_audio_ion_data.smmu_enabled) {
|
|
/* Need to populate book kept infomation */
|
|
- pr_debug("client=%p, domain=%p, domain_id=%d, group=%p",
|
|
+ pr_debug("client=%pK, domain=%pK, domain_id=%d, group=%pK",
|
|
client, msm_audio_ion_data.domain,
|
|
msm_audio_ion_data.domain_id, msm_audio_ion_data.group);
|
|
|
|
@@ -273,7 +273,7 @@ int msm_audio_ion_mmap(struct audio_buffer *ab,
|
|
offset = 0;
|
|
}
|
|
len = min(len, remainder);
|
|
- pr_debug("vma=%p, addr=%x len=%ld vm_start=%x vm_end=%x vm_page_prot=%ld\n",
|
|
+ pr_debug("vma=%pK, addr=%x len=%ld vm_start=%x vm_end=%x vm_page_prot=%ld\n",
|
|
vma, (unsigned int)addr, len,
|
|
(unsigned int)vma->vm_start,
|
|
(unsigned int)vma->vm_end,
|
|
@@ -296,8 +296,8 @@ int msm_audio_ion_mmap(struct audio_buffer *ab,
|
|
, __func__ , ret);
|
|
return ret;
|
|
}
|
|
- pr_debug("phys=%pa len=%zd\n", &phys_addr, phys_len);
|
|
- pr_debug("vma=%p, vm_start=%x vm_end=%x vm_pgoff=%ld vm_page_prot=%ld\n",
|
|
+ pr_debug("phys=%pK len=%zd\n", &phys_addr, phys_len);
|
|
+ pr_debug("vma=%pK, vm_start=%x vm_end=%x vm_pgoff=%ld vm_page_prot=%ld\n",
|
|
vma, (unsigned int)vma->vm_start,
|
|
(unsigned int)vma->vm_end, vma->vm_pgoff,
|
|
(unsigned long int)vma->vm_page_prot);
|
|
@@ -333,7 +333,7 @@ struct ion_client *msm_audio_ion_client_create(const char *name)
|
|
|
|
void msm_audio_ion_client_destroy(struct ion_client *client)
|
|
{
|
|
- pr_debug("%s: client = %p smmu_enabled = %d\n", __func__,
|
|
+ pr_debug("%s: client = %pK smmu_enabled = %d\n", __func__,
|
|
client, msm_audio_ion_data.smmu_enabled);
|
|
|
|
ion_client_destroy(client);
|
|
@@ -355,7 +355,7 @@ int msm_audio_ion_import_legacy(const char *name, struct ion_client *client,
|
|
bufsz should be 0 and fd shouldn't be 0 as of now
|
|
*/
|
|
*handle = ion_import_dma_buf(client, fd);
|
|
- pr_debug("%s: DMA Buf name=%s, fd=%d handle=%p\n", __func__,
|
|
+ pr_debug("%s: DMA Buf name=%s, fd=%d handle=%pK\n", __func__,
|
|
name, fd, *handle);
|
|
if (IS_ERR_OR_NULL((void *)(*handle))) {
|
|
pr_err("%s: ion import dma buffer failed\n",
|
|
@@ -421,7 +421,7 @@ int msm_audio_ion_cache_operations(struct audio_buffer *abuff, int cache_op)
|
|
int msm_cache_ops = 0;
|
|
|
|
if (!abuff) {
|
|
- pr_err("Invalid params: %p, %p\n", __func__, abuff);
|
|
+ pr_err("%s: Invalid params: %pK\n", __func__, abuff);
|
|
return -EINVAL;
|
|
}
|
|
rc = ion_handle_get_flags(abuff->client, abuff->handle,
|
|
@@ -467,7 +467,7 @@ static int msm_audio_ion_get_phys(struct ion_client *client,
|
|
pr_err("%s: ION map iommu failed %d\n", __func__, rc);
|
|
return rc;
|
|
}
|
|
- pr_debug("client=%p, domain=%p, domain_id=%d, group=%p",
|
|
+ pr_debug("client=%pK, domain=%pK, domain_id=%d, group=%pK",
|
|
client, msm_audio_ion_data.domain,
|
|
msm_audio_ion_data.domain_id, msm_audio_ion_data.group);
|
|
/* Append the SMMU SID information to the address */
|
|
@@ -476,7 +476,8 @@ static int msm_audio_ion_get_phys(struct ion_client *client,
|
|
/* SMMU is disabled*/
|
|
rc = ion_phys(client, handle, addr, len);
|
|
}
|
|
- pr_debug("phys=%pa, len=%zd, rc=%d\n", &(*addr), *len, rc);
|
|
+ pr_debug("phys=%pK, len=%zd, rc=%d\n", &(*addr), *len, rc);
|
|
+
|
|
return rc;
|
|
}
|
|
|
|
@@ -540,18 +541,18 @@ static int msm_audio_ion_probe(struct platform_device *pdev)
|
|
msm_audio_ion_data.domain =
|
|
iommu_group_get_iommudata(msm_audio_ion_data.group);
|
|
if (IS_ERR_OR_NULL(msm_audio_ion_data.domain)) {
|
|
- pr_err("Failed to get domain data for group %p",
|
|
+ pr_err("Failed to get domain data for group %pK",
|
|
msm_audio_ion_data.group);
|
|
goto fail_group;
|
|
}
|
|
msm_audio_ion_data.domain_id =
|
|
msm_find_domain_no(msm_audio_ion_data.domain);
|
|
if (msm_audio_ion_data.domain_id < 0) {
|
|
- pr_err("Failed to get domain index for domain %p",
|
|
+ pr_err("Failed to get domain index for domain %pK",
|
|
msm_audio_ion_data.domain);
|
|
goto fail_group;
|
|
}
|
|
- pr_debug("domain=%p, domain_id=%d, group=%p",
|
|
+ pr_debug("domain=%pK, domain_id=%d, group=%pK",
|
|
msm_audio_ion_data.domain,
|
|
msm_audio_ion_data.domain_id, msm_audio_ion_data.group);
|
|
|
|
@@ -575,7 +576,7 @@ fail_group:
|
|
|
|
static int msm_audio_ion_remove(struct platform_device *pdev)
|
|
{
|
|
- pr_debug("%s: msm audio ion is unloaded, domain=%p, group=%p\n",
|
|
+ pr_debug("%s: msm audio ion is unloaded, domain=%pK, group=%pK\n",
|
|
__func__, msm_audio_ion_data.domain, msm_audio_ion_data.group);
|
|
iommu_detach_group(msm_audio_ion_data.domain, msm_audio_ion_data.group);
|
|
|
|
diff --git a/sound/soc/msm/qdsp6v2/audio_cal_utils.c b/sound/soc/msm/qdsp6v2/audio_cal_utils.c
|
|
index 67275df..562e9a1 100644
|
|
--- a/sound/soc/msm/qdsp6v2/audio_cal_utils.c
|
|
+++ b/sound/soc/msm/qdsp6v2/audio_cal_utils.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -599,7 +599,7 @@ static struct cal_block_data *create_cal_block(struct cal_type_data *cal_type,
|
|
goto err;
|
|
}
|
|
cal_block->buffer_number = basic_cal->cal_hdr.buffer_number;
|
|
- pr_debug("%s: created block for cal type %d, buf num %d, map handle %d, map size %zd paddr 0x%pa!\n",
|
|
+ pr_debug("%s: created block for cal type %d, buf num %d, map handle %d, map size %zd paddr 0x%pK!\n",
|
|
__func__, cal_type->info.reg.cal_type,
|
|
cal_block->buffer_number,
|
|
cal_block->map_data.ion_map_handle,
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-compr-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compr-q6-v2.c
|
|
index 82de46c..5071be9 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-compr-q6-v2.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-compr-q6-v2.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2014, 2016 The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -192,7 +192,7 @@ static void compr_event_handler(uint32_t opcode,
|
|
pr_debug("%s:writing %d bytes of buffer[%d] to dsp 2\n",
|
|
__func__, prtd->pcm_count, prtd->out_head);
|
|
temp = buf[0].phys + (prtd->out_head * prtd->pcm_count);
|
|
- pr_debug("%s:writing buffer[%d] from 0x%pa\n",
|
|
+ pr_debug("%s:writing buffer[%d] from 0x%pK\n",
|
|
__func__, prtd->out_head, &temp);
|
|
|
|
if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_ENABLE)
|
|
@@ -243,7 +243,7 @@ static void compr_event_handler(uint32_t opcode,
|
|
break;
|
|
case ASM_DATA_EVENT_READ_DONE_V2: {
|
|
pr_debug("ASM_DATA_EVENT_READ_DONE\n");
|
|
- pr_debug("buf = %p, data = 0x%X, *data = %p,\n"
|
|
+ pr_debug("buf = %pK, data = 0x%X, *data = %pK,\n"
|
|
"prtd->pcm_irq_pos = %d\n",
|
|
prtd->audio_client->port[OUT].buf,
|
|
*(uint32_t *)prtd->audio_client->port[OUT].buf->data,
|
|
@@ -253,7 +253,7 @@ static void compr_event_handler(uint32_t opcode,
|
|
memcpy(prtd->audio_client->port[OUT].buf->data +
|
|
prtd->pcm_irq_pos, (ptrmem + READDONE_IDX_SIZE),
|
|
COMPRE_CAPTURE_HEADER_SIZE);
|
|
- pr_debug("buf = %p, updated data = 0x%X, *data = %p\n",
|
|
+ pr_debug("buf = %pK, updated data = 0x%X, *data = %pK\n",
|
|
prtd->audio_client->port[OUT].buf,
|
|
*(uint32_t *)(prtd->audio_client->port[OUT].buf->data +
|
|
prtd->pcm_irq_pos),
|
|
@@ -269,7 +269,7 @@ static void compr_event_handler(uint32_t opcode,
|
|
}
|
|
buf = prtd->audio_client->port[OUT].buf;
|
|
|
|
- pr_debug("pcm_irq_pos=%d, buf[0].phys = 0x%pa\n",
|
|
+ pr_debug("pcm_irq_pos=%d, buf[0].phys = 0x%pK\n",
|
|
prtd->pcm_irq_pos, &buf[0].phys);
|
|
read_param.len = prtd->pcm_count - COMPRE_CAPTURE_HEADER_SIZE;
|
|
read_param.paddr = buf[0].phys +
|
|
@@ -295,7 +295,7 @@ static void compr_event_handler(uint32_t opcode,
|
|
pr_debug("%s: writing %d bytes of buffer[%d] to dsp\n",
|
|
__func__, prtd->pcm_count, prtd->out_head);
|
|
buf = prtd->audio_client->port[IN].buf;
|
|
- pr_debug("%s: writing buffer[%d] from 0x%pa head %d count %d\n",
|
|
+ pr_debug("%s: writing buffer[%d] from 0x%pK head %d count %d\n",
|
|
__func__, prtd->out_head, &buf[0].phys,
|
|
prtd->pcm_count, prtd->out_head);
|
|
if (runtime->tstamp_mode == SNDRV_PCM_TSTAMP_ENABLE)
|
|
@@ -602,7 +602,7 @@ static int msm_compr_capture_prepare(struct snd_pcm_substream *substream)
|
|
- COMPRE_CAPTURE_HEADER_SIZE;
|
|
read_param.paddr = buf[i].phys
|
|
+ COMPRE_CAPTURE_HEADER_SIZE;
|
|
- pr_debug("Push buffer [%d] to DSP, paddr: %pa, vaddr: %p\n",
|
|
+ pr_debug("Push buffer [%d] to DSP, paddr: %pK, vaddr: %pK\n",
|
|
i, &read_param.paddr,
|
|
buf[i].data);
|
|
q6asm_async_read(prtd->audio_client, &read_param);
|
|
@@ -963,7 +963,7 @@ static int msm_compr_hw_params(struct snd_pcm_substream *substream,
|
|
dma_buf->addr = buf[0].phys;
|
|
dma_buf->bytes = runtime->hw.buffer_bytes_max;
|
|
|
|
- pr_debug("%s: buf[%p]dma_buf->area[%p]dma_buf->addr[%pa]\n"
|
|
+ pr_debug("%s: buf[%pK]dma_buf->area[%pK]dma_buf->addr[%pK]\n"
|
|
"dma_buf->bytes[%zd]\n", __func__,
|
|
(void *)buf, (void *)dma_buf->area,
|
|
&dma_buf->addr, dma_buf->bytes);
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
|
|
index bb0cb9f..7aac112 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -2056,7 +2056,7 @@ static int msm_compr_get_caps(struct snd_compr_stream *cstream,
|
|
memcpy(arg, &prtd->compr_cap, sizeof(struct snd_compr_caps));
|
|
} else {
|
|
ret = -EINVAL;
|
|
- pr_err("%s: arg (0x%p), prtd (0x%p)\n", __func__, arg, prtd);
|
|
+ pr_err("%s: arg (0x%pK), prtd (0x%pK)\n", __func__, arg, prtd);
|
|
}
|
|
|
|
return ret;
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c
|
|
index ee5a340..8ef8f49 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-dai-q6-v2.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -1861,7 +1861,7 @@ static int msm_auxpcm_dev_probe(struct platform_device *pdev)
|
|
goto fail_pdata_nomem;
|
|
}
|
|
|
|
- dev_dbg(&pdev->dev, "%s: dev %p, dai_data %p, auxpcm_pdata %p\n",
|
|
+ dev_dbg(&pdev->dev, "%s: dev %pK, dai_data %pK, auxpcm_pdata %pK\n",
|
|
__func__, &pdev->dev, dai_data, auxpcm_pdata);
|
|
|
|
rc = of_property_read_u32_array(pdev->dev.of_node,
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-ds2-dap-config.c b/sound/soc/msm/qdsp6v2/msm-ds2-dap-config.c
|
|
index ace747d..fea7bb4 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-ds2-dap-config.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-ds2-dap-config.c
|
|
@@ -1103,7 +1103,7 @@ static int msm_ds2_dap_send_end_point(int dev_map_idx, int endp_idx)
|
|
ds2_ap_params_obj = &ds2_dap_params[cache_device];
|
|
pr_debug("%s: cache dev %d, dev_map_idx %d\n", __func__,
|
|
cache_device, dev_map_idx);
|
|
- pr_debug("%s: endp - %p %p\n", __func__,
|
|
+ pr_debug("%s: endp - %pK %pK\n", __func__,
|
|
&ds2_dap_params[cache_device], ds2_ap_params_obj);
|
|
|
|
params_value = kzalloc(params_length, GFP_KERNEL);
|
|
@@ -1189,7 +1189,7 @@ static int msm_ds2_dap_send_cached_params(int dev_map_idx,
|
|
}
|
|
|
|
ds2_ap_params_obj = &ds2_dap_params[cache_device];
|
|
- pr_debug("%s: cached param - %p %p, cache_device %d\n", __func__,
|
|
+ pr_debug("%s: cached param - %pK %pK, cache_device %d\n", __func__,
|
|
&ds2_dap_params[cache_device], ds2_ap_params_obj,
|
|
cache_device);
|
|
params_value = kzalloc(params_length, GFP_KERNEL);
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-dts-eagle.c b/sound/soc/msm/qdsp6v2/msm-dts-eagle.c
|
|
index 3a6a9c2..465947f 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-dts-eagle.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-dts-eagle.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -470,7 +470,7 @@ static int _sendcache_pre(struct audio_client *ac)
|
|
err = -EINVAL;
|
|
if ((_depc_size == 0) || !_depc || (size == 0) ||
|
|
cmd == 0 || ((offset + size) > _depc_size) || (err != 0)) {
|
|
- eagle_precache_err("%s: primary device %i cache index %i general error - cache size = %u, cache ptr = %p, offset = %u, size = %u, cmd = %i",
|
|
+ eagle_precache_err("%s: primary device %i cache index %i general error - cache size = %u, cache ptr = %pK, offset = %u, size = %u, cmd = %i",
|
|
__func__, _device_primary, cidx, _depc_size, _depc,
|
|
offset, size, cmd);
|
|
return -EINVAL;
|
|
@@ -554,7 +554,7 @@ NT_MODE_GOTO:
|
|
err = -EINVAL;
|
|
if ((_depc_size == 0) || !_depc || (err != 0) || (size == 0) ||
|
|
(cmd == 0) || (offset + size) > _depc_size) {
|
|
- eagle_postcache_err("%s: primary device %i cache index %i port_id 0x%X general error - cache size = %u, cache ptr = %p, offset = %u, size = %u, cmd = %i",
|
|
+ eagle_postcache_err("%s: primary device %i cache index %i port_id 0x%X general error - cache size = %u, cache ptr = %pK, offset = %u, size = %u, cmd = %i",
|
|
__func__, _device_primary, cidx, port_id,
|
|
_depc_size, _depc, offset, size, cmd);
|
|
return -EINVAL;
|
|
@@ -1042,7 +1042,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
eagle_ioctl_info("%s: called with control 0x%X (allocate param cache)",
|
|
__func__, cmd);
|
|
if (copy_from_user((void *)&size, (void *)arg, sizeof(size))) {
|
|
- eagle_ioctl_err("%s: error copying size (src:%p, tgt:%p, size:%zu)",
|
|
+ eagle_ioctl_err("%s: error copying size (src:%pK, tgt:%pK, size:%zu)",
|
|
__func__, (void *)arg, &size, sizeof(size));
|
|
return -EFAULT;
|
|
} else if (size > DEPC_MAX_SIZE) {
|
|
@@ -1082,7 +1082,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
eagle_ioctl_info("%s: control 0x%X (get param)",
|
|
__func__, cmd);
|
|
if (copy_from_user((void *)&depd, (void *)arg, sizeof(depd))) {
|
|
- eagle_ioctl_err("%s: error copying dts_eagle_param_desc (src:%p, tgt:%p, size:%zu)",
|
|
+ eagle_ioctl_err("%s: error copying dts_eagle_param_desc (src:%pK, tgt:%pK, size:%zu)",
|
|
__func__, (void *)arg, &depd, sizeof(depd));
|
|
return -EFAULT;
|
|
}
|
|
@@ -1153,7 +1153,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
eagle_ioctl_info("%s: control 0x%X (set param)",
|
|
__func__, cmd);
|
|
if (copy_from_user((void *)&depd, (void *)arg, sizeof(depd))) {
|
|
- eagle_ioctl_err("%s: error copying dts_eagle_param_desc (src:%p, tgt:%p, size:%zu)",
|
|
+ eagle_ioctl_err("%s: error copying dts_eagle_param_desc (src:%pK, tgt:%pK, size:%zu)",
|
|
__func__, (void *)arg, &depd, sizeof(depd));
|
|
return -EFAULT;
|
|
}
|
|
@@ -1186,7 +1186,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
if (copy_from_user((void *)&_depc[offset],
|
|
(void *)(((char *)arg)+sizeof(depd)),
|
|
depd.size)) {
|
|
- eagle_ioctl_err("%s: error copying param to cache (src:%p, tgt:%p, size:%u)",
|
|
+ eagle_ioctl_err("%s: error copying param to cache (src:%pK, tgt:%pK, size:%u)",
|
|
__func__, ((char *)arg)+sizeof(depd),
|
|
&_depc[offset], depd.size);
|
|
return -EFAULT;
|
|
@@ -1205,7 +1205,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
eagle_ioctl_info("%s: with control 0x%X (set param cache block)",
|
|
__func__, cmd);
|
|
if (copy_from_user((void *)b_, (void *)arg, sizeof(b_))) {
|
|
- eagle_ioctl_err("%s: error copying cache block data (src:%p, tgt:%p, size:%zu)",
|
|
+ eagle_ioctl_err("%s: error copying cache block data (src:%pK, tgt:%pK, size:%zu)",
|
|
__func__, (void *)arg, b_, sizeof(b_));
|
|
return -EFAULT;
|
|
}
|
|
@@ -1236,7 +1236,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
eagle_ioctl_dbg("%s: with control 0x%X (set active device)",
|
|
__func__, cmd);
|
|
if (copy_from_user((void *)data, (void *)arg, sizeof(data))) {
|
|
- eagle_ioctl_err("%s: error copying active device data (src:%p, tgt:%p, size:%zu)",
|
|
+ eagle_ioctl_err("%s: error copying active device data (src:%pK, tgt:%pK, size:%zu)",
|
|
__func__, (void *)arg, data, sizeof(data));
|
|
return -EFAULT;
|
|
}
|
|
@@ -1258,7 +1258,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
__func__, cmd);
|
|
if (copy_from_user((void *)&target, (void *)arg,
|
|
sizeof(target))) {
|
|
- eagle_ioctl_err("%s: error reading license index. (src:%p, tgt:%p, size:%zu)",
|
|
+ eagle_ioctl_err("%s: error reading license index. (src:%pK, tgt:%pK, size:%zu)",
|
|
__func__, (void *)arg, &target, sizeof(target));
|
|
return -EFAULT;
|
|
}
|
|
@@ -1305,7 +1305,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
cmd);
|
|
if (copy_from_user((void *)target, (void *)arg,
|
|
sizeof(target))) {
|
|
- eagle_ioctl_err("%s: error reading license index (src:%p, tgt:%p, size:%zu)",
|
|
+ eagle_ioctl_err("%s: error reading license index (src:%pK, tgt:%pK, size:%zu)",
|
|
__func__, (void *)arg, target, sizeof(target));
|
|
return -EFAULT;
|
|
}
|
|
@@ -1348,7 +1348,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
(void *)&(((u32 *)_sec_blob[target[0]])[1]),
|
|
(void *)(((char *)arg)+sizeof(target)),
|
|
target[1])) {
|
|
- eagle_ioctl_err("%s: error copying license to index %u, size %u (src:%p, tgt:%p, size:%u)",
|
|
+ eagle_ioctl_err("%s: error copying license to index %u, size %u (src:%pK, tgt:%pK, size:%u)",
|
|
__func__, target[0], target[1],
|
|
((char *)arg)+sizeof(target),
|
|
&(((u32 *)_sec_blob[target[0]])[1]),
|
|
@@ -1365,7 +1365,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
cmd);
|
|
if (copy_from_user((void *)&target, (void *)arg,
|
|
sizeof(target))) {
|
|
- eagle_ioctl_err("%s: error reading license index (src:%p, tgt:%p, size:%zu)",
|
|
+ eagle_ioctl_err("%s: error reading license index (src:%pK, tgt:%pK, size:%zu)",
|
|
__func__, (void *)arg, &target, sizeof(target));
|
|
return -EFAULT;
|
|
}
|
|
@@ -1395,7 +1395,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
__func__, cmd);
|
|
if (copy_from_user((void *)&spec, (void *)arg,
|
|
sizeof(spec))) {
|
|
- eagle_ioctl_err("%s: error reading volume command specifier (src:%p, tgt:%p, size:%zu)",
|
|
+ eagle_ioctl_err("%s: error reading volume command specifier (src:%pK, tgt:%pK, size:%zu)",
|
|
__func__, (void *)arg, &spec, sizeof(spec));
|
|
return -EFAULT;
|
|
}
|
|
@@ -1417,7 +1417,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
if (copy_from_user((void *)&_vol_cmds_d[idx],
|
|
(void *)(((char *)arg) + sizeof(int)),
|
|
sizeof(struct vol_cmds_d))) {
|
|
- eagle_ioctl_err("%s: error reading volume command descriptor (src:%p, tgt:%p, size:%zu)",
|
|
+ eagle_ioctl_err("%s: error reading volume command descriptor (src:%pK, tgt:%pK, size:%zu)",
|
|
__func__, ((char *)arg) + sizeof(int),
|
|
&_vol_cmds_d[idx],
|
|
sizeof(struct vol_cmds_d));
|
|
@@ -1430,7 +1430,7 @@ int msm_dts_eagle_ioctl(unsigned int cmd, unsigned long arg)
|
|
if (copy_from_user((void *)_vol_cmds[idx],
|
|
(void *)(((char *)arg) + (sizeof(int) +
|
|
sizeof(struct vol_cmds_d))), size)) {
|
|
- eagle_ioctl_err("%s: error reading volume command string (src:%p, tgt:%p, size:%i)",
|
|
+ eagle_ioctl_err("%s: error reading volume command string (src:%pK, tgt:%pK, size:%i)",
|
|
__func__, ((char *)arg) + (sizeof(int) +
|
|
sizeof(struct vol_cmds_d)),
|
|
_vol_cmds[idx], size);
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-dts-srs-tm-config.c b/sound/soc/msm/qdsp6v2/msm-dts-srs-tm-config.c
|
|
index ddfbcec..7c35d19 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-dts-srs-tm-config.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-dts-srs-tm-config.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2014, 2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -292,7 +292,7 @@ static int reg_ion_mem(void)
|
|
&po.kvaddr);
|
|
if (rc != 0)
|
|
pr_err("%s: failed to allocate memory.\n", __func__);
|
|
- pr_debug("%s: exited ion_client = %p, ion_handle = %p, phys_addr = %lu, length = %d, vaddr = %p, rc = 0x%x\n",
|
|
+ pr_debug("%s: exited ion_client = %pK, ion_handle = %pK, phys_addr = %lu, length = %d, vaddr = %pK, rc = 0x%x\n",
|
|
__func__, ion_client, ion_handle, (long)po.paddr,
|
|
(unsigned int)po.size, po.kvaddr, rc);
|
|
return rc;
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-lsm-client.c b/sound/soc/msm/qdsp6v2/msm-lsm-client.c
|
|
index 79b92f6..32a16bf 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-lsm-client.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-lsm-client.c
|
|
@@ -1,5 +1,5 @@
|
|
/*
|
|
- * Copyright (c) 2013-2015, Linux Foundation. All rights reserved.
|
|
+ * Copyright (c) 2013-2016, Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -95,7 +95,7 @@ static int msm_lsm_queue_lab_buffer(struct lsm_priv *prtd, int i)
|
|
struct snd_soc_pcm_runtime *rtd;
|
|
|
|
if (!prtd || !prtd->lsm_client) {
|
|
- pr_err("%s: Invalid params prtd %p lsm client %p\n",
|
|
+ pr_err("%s: Invalid params prtd %pK lsm client %pK\n",
|
|
__func__, prtd, ((!prtd) ? NULL : prtd->lsm_client));
|
|
return -EINVAL;
|
|
}
|
|
@@ -109,7 +109,7 @@ static int msm_lsm_queue_lab_buffer(struct lsm_priv *prtd, int i)
|
|
if (!prtd->lsm_client->lab_buffer ||
|
|
i >= prtd->lsm_client->hw_params.period_count) {
|
|
dev_err(rtd->dev,
|
|
- "%s: Lab buffer not setup %p incorrect index %d period count %d\n",
|
|
+ "%s: Lab buffer not setup %pK incorrect index %d period count %d\n",
|
|
__func__, prtd->lsm_client->lab_buffer, i,
|
|
prtd->lsm_client->hw_params.period_count);
|
|
return -EINVAL;
|
|
@@ -136,7 +136,7 @@ static int lsm_lab_buffer_sanity(struct lsm_priv *prtd,
|
|
struct snd_soc_pcm_runtime *rtd;
|
|
|
|
if (!prtd || !read_done || !index) {
|
|
- pr_err("%s: Invalid params prtd %p read_done %p index %p\n",
|
|
+ pr_err("%s: Invalid params prtd %pK read_done %pK index %pK\n",
|
|
__func__, prtd, read_done, index);
|
|
return -EINVAL;
|
|
}
|
|
@@ -150,7 +150,7 @@ static int lsm_lab_buffer_sanity(struct lsm_priv *prtd,
|
|
|
|
if (!prtd->lsm_client->lab_enable || !prtd->lsm_client->lab_buffer) {
|
|
dev_err(rtd->dev,
|
|
- "%s: Lab not enabled %d invalid lab buffer %p\n",
|
|
+ "%s: Lab not enabled %d invalid lab buffer %pK\n",
|
|
__func__, prtd->lsm_client->lab_enable,
|
|
prtd->lsm_client->lab_buffer);
|
|
return -EINVAL;
|
|
@@ -164,7 +164,7 @@ static int lsm_lab_buffer_sanity(struct lsm_priv *prtd,
|
|
(prtd->lsm_client->lab_buffer[i].mem_map_handle ==
|
|
read_done->mem_map_handle)) {
|
|
dev_dbg(rtd->dev,
|
|
- "%s: Buffer found %pa memmap handle %d\n",
|
|
+ "%s: Buffer found %pK memmap handle %d\n",
|
|
__func__, &prtd->lsm_client->lab_buffer[i].phys,
|
|
prtd->lsm_client->lab_buffer[i].mem_map_handle);
|
|
if (read_done->total_size >
|
|
@@ -211,7 +211,7 @@ static void lsm_event_handler(uint32_t opcode, uint32_t token,
|
|
if (prtd->lsm_client->session != token ||
|
|
!read_done) {
|
|
dev_err(rtd->dev,
|
|
- "%s: EVENT_READ_DONE invalid callback, session %d callback %d payload %p",
|
|
+ "%s: EVENT_READ_DONE invalid callback, session %d callback %d payload %pK",
|
|
__func__, prtd->lsm_client->session,
|
|
token, read_done);
|
|
return;
|
|
@@ -310,7 +310,7 @@ static int msm_lsm_lab_buffer_alloc(struct lsm_priv *lsm, int alloc)
|
|
int ret = 0;
|
|
struct snd_dma_buffer *dma_buf = NULL;
|
|
if (!lsm) {
|
|
- pr_err("%s: Invalid param lsm %p\n", __func__, lsm);
|
|
+ pr_err("%s: Invalid param lsm %pK\n", __func__, lsm);
|
|
return -EINVAL;
|
|
}
|
|
if (alloc) {
|
|
@@ -778,7 +778,7 @@ static int msm_lsm_ioctl_shared(struct snd_pcm_substream *substream,
|
|
snd_model_v2.data, snd_model_v2.data_size)) {
|
|
dev_err(rtd->dev,
|
|
"%s: copy from user data failed\n"
|
|
- "data %p size %d\n", __func__,
|
|
+ "data %pK size %d\n", __func__,
|
|
snd_model_v2.data, snd_model_v2.data_size);
|
|
q6lsm_snd_model_buf_free(prtd->lsm_client);
|
|
rc = -EFAULT;
|
|
@@ -1798,7 +1798,7 @@ static int msm_lsm_hw_params(struct snd_pcm_substream *substream,
|
|
|
|
if (!prtd || !params) {
|
|
dev_err(rtd->dev,
|
|
- "%s: invalid params prtd %p params %p",
|
|
+ "%s: invalid params prtd %pK params %pK",
|
|
__func__, prtd, params);
|
|
return -EINVAL;
|
|
}
|
|
@@ -1840,7 +1840,7 @@ static snd_pcm_uframes_t msm_lsm_pcm_pointer(
|
|
|
|
if (!prtd) {
|
|
dev_err(rtd->dev,
|
|
- "%s: Invalid param %p\n", __func__, prtd);
|
|
+ "%s: Invalid param %pK\n", __func__, prtd);
|
|
return 0;
|
|
}
|
|
|
|
@@ -1868,7 +1868,7 @@ static int msm_lsm_pcm_copy(struct snd_pcm_substream *substream, int ch,
|
|
|
|
if (!prtd) {
|
|
dev_err(rtd->dev,
|
|
- "%s: Invalid param %p\n", __func__, prtd);
|
|
+ "%s: Invalid param %pK\n", __func__, prtd);
|
|
return -EINVAL;
|
|
}
|
|
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-afe-v2.c b/sound/soc/msm/qdsp6v2/msm-pcm-afe-v2.c
|
|
index 84c21f4a1..f1c96ef 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-pcm-afe-v2.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-pcm-afe-v2.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -387,7 +387,7 @@ static int msm_afe_open(struct snd_pcm_substream *substream)
|
|
pr_err("Failed to allocate memory for msm_audio\n");
|
|
return -ENOMEM;
|
|
} else
|
|
- pr_debug("prtd %p\n", prtd);
|
|
+ pr_debug("prtd %pK\n", prtd);
|
|
|
|
mutex_init(&prtd->lock);
|
|
spin_lock_init(&prtd->dsp_lock);
|
|
@@ -606,7 +606,7 @@ static int msm_afe_hw_params(struct snd_pcm_substream *substream,
|
|
return -ENOMEM;
|
|
}
|
|
|
|
- pr_debug("%s:buf = %p\n", __func__, buf);
|
|
+ pr_debug("%s:buf = %pK\n", __func__, buf);
|
|
dma_buf->dev.type = SNDRV_DMA_TYPE_DEV;
|
|
dma_buf->dev.dev = substream->pcm->card->dev;
|
|
dma_buf->private_data = NULL;
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-host-voice-v2.c b/sound/soc/msm/qdsp6v2/msm-pcm-host-voice-v2.c
|
|
index c190977..1dd18c6 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-pcm-host-voice-v2.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-pcm-host-voice-v2.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2013-2014, 2016 The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -504,7 +504,7 @@ static int hpcm_allocate_shared_memory(struct hpcm_drv *prtd)
|
|
|
|
sess->tp_mem_table.size = sizeof(struct vss_imemory_table_t);
|
|
|
|
- pr_debug("%s: data %p phys %pa\n", __func__,
|
|
+ pr_debug("%s: data %pK phys %pK\n", __func__,
|
|
sess->tp_mem_table.data, &sess->tp_mem_table.phys);
|
|
|
|
/* Split 4096 block into four 1024 byte blocks for each dai */
|
|
@@ -682,7 +682,7 @@ void hpcm_notify_evt_processing(uint8_t *data, char *session,
|
|
}
|
|
|
|
if (tp == NULL || tmd == NULL) {
|
|
- pr_err("%s: tp = %p or tmd = %p is null\n", __func__,
|
|
+ pr_err("%s: tp = %pK or tmd = %pK is null\n", __func__,
|
|
tp, tmd);
|
|
|
|
return;
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-lpa-v2.c b/sound/soc/msm/qdsp6v2/msm-pcm-lpa-v2.c
|
|
index 64d3fe0..ad7e114 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-pcm-lpa-v2.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-pcm-lpa-v2.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2014, 2016 The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -132,7 +132,7 @@ static void event_handler(uint32_t opcode,
|
|
pr_debug("%s:writing %d bytes of buffer[%d] to dsp 2\n",
|
|
__func__, prtd->pcm_count, prtd->out_head);
|
|
temp = buf[0].phys + (prtd->out_head * prtd->pcm_count);
|
|
- pr_debug("%s:writing buffer[%d] from 0x%pa\n",
|
|
+ pr_debug("%s:writing buffer[%d] from 0x%pK\n",
|
|
__func__, prtd->out_head, &temp);
|
|
if (prtd->meta_data_mode) {
|
|
memcpy(&output_meta_data, (char *)(buf->data +
|
|
@@ -623,7 +623,7 @@ static int msm_pcm_hw_params(struct snd_pcm_substream *substream,
|
|
if (buf == NULL || buf[0].data == NULL)
|
|
return -ENOMEM;
|
|
|
|
- pr_debug("%s:buf = %p\n", __func__, buf);
|
|
+ pr_debug("%s:buf = %pK\n", __func__, buf);
|
|
dma_buf->dev.type = SNDRV_DMA_TYPE_DEV;
|
|
dma_buf->dev.dev = substream->pcm->card->dev;
|
|
dma_buf->private_data = NULL;
|
|
diff --git a/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c
|
|
index 4eb3f2a..37461db 100644
|
|
--- a/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c
|
|
+++ b/sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -746,7 +746,7 @@ static int msm_pcm_capture_copy(struct snd_pcm_substream *substream,
|
|
pr_debug("%s: pcm stopped in_count 0\n", __func__);
|
|
return 0;
|
|
}
|
|
- pr_debug("Checking if valid buffer is available...%p\n",
|
|
+ pr_debug("Checking if valid buffer is available...%pK\n",
|
|
data);
|
|
data = q6asm_is_cpu_buf_avail(OUT, prtd->audio_client, &size, &idx);
|
|
bufptr = data;
|
|
@@ -903,7 +903,7 @@ static int msm_pcm_hw_params(struct snd_pcm_substream *substream,
|
|
if (buf == NULL || buf[0].data == NULL)
|
|
return -ENOMEM;
|
|
|
|
- pr_debug("%s:buf = %p\n", __func__, buf);
|
|
+ pr_debug("%s:buf = %pK\n", __func__, buf);
|
|
dma_buf->dev.type = SNDRV_DMA_TYPE_DEV;
|
|
dma_buf->dev.dev = substream->pcm->card->dev;
|
|
dma_buf->private_data = NULL;
|
|
diff --git a/sound/soc/msm/qdsp6v2/q6adm.c b/sound/soc/msm/qdsp6v2/q6adm.c
|
|
index 5d0fd0d..f029594 100644
|
|
--- a/sound/soc/msm/qdsp6v2/q6adm.c
|
|
+++ b/sound/soc/msm/qdsp6v2/q6adm.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -378,7 +378,7 @@ int adm_dts_eagle_get(int port_id, int copp_idx, int param_id,
|
|
}
|
|
|
|
if ((size == 0) || !data) {
|
|
- pr_err("DTS_EAGLE_ADM: %s - invalid size %u or pointer %p.\n",
|
|
+ pr_err("DTS_EAGLE_ADM: %s - invalid size %u or pointer %pK.\n",
|
|
__func__, size, data);
|
|
return -EINVAL;
|
|
}
|
|
@@ -1246,7 +1246,7 @@ static int32_t adm_callback(struct apr_client_data *data, void *priv)
|
|
payload = data->payload;
|
|
|
|
if (data->opcode == RESET_EVENTS) {
|
|
- pr_debug("%s: Reset event is received: %d %d apr[%p]\n",
|
|
+ pr_debug("%s: Reset event is received: %d %d apr[%pK]\n",
|
|
__func__,
|
|
data->reset_event, data->reset_proc, this_adm.apr);
|
|
if (this_adm.apr) {
|
|
@@ -1739,7 +1739,7 @@ static void remap_cal_data(struct cal_block_data *cal_block, int cal_index)
|
|
pr_err("%s: ADM mmap did not work! size = %zd ret %d\n",
|
|
__func__,
|
|
cal_block->map_data.map_size, ret);
|
|
- pr_debug("%s: ADM mmap did not work! addr = 0x%pa, size = %zd ret %d\n",
|
|
+ pr_debug("%s: ADM mmap did not work! addr = 0x%pK, size = %zd ret %d\n",
|
|
__func__,
|
|
&cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size, ret);
|
|
@@ -1802,7 +1802,7 @@ static void send_adm_custom_topology(void)
|
|
|
|
atomic_set(&this_adm.adm_stat, 0);
|
|
atomic_set(&this_adm.adm_cmd_err_code, 0);
|
|
- pr_debug("%s: Sending ADM_CMD_ADD_TOPOLOGIES payload = 0x%pa, size = %d\n",
|
|
+ pr_debug("%s: Sending ADM_CMD_ADD_TOPOLOGIES payload = 0x%pK, size = %d\n",
|
|
__func__, &cal_block->cal_data.paddr,
|
|
adm_top.payload_size);
|
|
result = apr_send_pkt(this_adm.apr, (uint32_t *)&adm_top);
|
|
@@ -1892,14 +1892,14 @@ static int send_adm_cal_block(int port_id, int copp_idx,
|
|
|
|
atomic_set(&this_adm.copp.stat[port_idx][copp_idx], 0);
|
|
atomic_set(&this_adm.copp.cmd_err_code[port_idx][copp_idx], 0);
|
|
- pr_debug("%s: Sending SET_PARAMS payload = 0x%pa, size = %d\n",
|
|
+ pr_debug("%s: Sending SET_PARAMS payload = 0x%pK, size = %d\n",
|
|
__func__, &cal_block->cal_data.paddr,
|
|
adm_params.payload_size);
|
|
result = apr_send_pkt(this_adm.apr, (uint32_t *)&adm_params);
|
|
if (result < 0) {
|
|
pr_err("%s: Set params failed port 0x%x result %d\n",
|
|
__func__, port_id, result);
|
|
- pr_debug("%s: Set params failed port = 0x%x payload = 0x%pa result %d\n",
|
|
+ pr_debug("%s: Set params failed port = 0x%x payload = 0x%pK result %d\n",
|
|
__func__, port_id, &cal_block->cal_data.paddr, result);
|
|
result = -EINVAL;
|
|
goto done;
|
|
@@ -1911,7 +1911,7 @@ static int send_adm_cal_block(int port_id, int copp_idx,
|
|
if (!result) {
|
|
pr_err("%s: Set params timed out port = 0x%x\n",
|
|
__func__, port_id);
|
|
- pr_debug("%s: Set params timed out port = 0x%x, payload = 0x%pa\n",
|
|
+ pr_debug("%s: Set params timed out port = 0x%x, payload = 0x%pK\n",
|
|
__func__, port_id, &cal_block->cal_data.paddr);
|
|
result = -EINVAL;
|
|
goto done;
|
|
@@ -2352,7 +2352,7 @@ int adm_open(int port_id, int path, int rate, int channel_mode, int topology,
|
|
res = adm_memory_map_regions(&this_adm.outband_memmap.paddr, 0,
|
|
(uint32_t *)&this_adm.outband_memmap.size, 1);
|
|
if (res < 0) {
|
|
- pr_err("%s: SRS adm_memory_map_regions failed ! addr = 0x%p, size = %d\n",
|
|
+ pr_err("%s: SRS adm_memory_map_regions failed ! addr = 0x%pK, size = %d\n",
|
|
__func__, (void *)this_adm.outband_memmap.paddr,
|
|
(uint32_t)this_adm.outband_memmap.size);
|
|
}
|
|
@@ -2781,7 +2781,7 @@ int adm_map_rtac_block(struct rtac_cal_block_data *cal_block)
|
|
pr_err("%s: RTAC mmap did not work! size = %d result %d\n",
|
|
__func__,
|
|
cal_block->map_data.map_size, result);
|
|
- pr_debug("%s: RTAC mmap did not work! addr = 0x%pa, size = %d\n",
|
|
+ pr_debug("%s: RTAC mmap did not work! addr = 0x%pK, size = %d\n",
|
|
__func__,
|
|
&cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size);
|
|
@@ -3963,7 +3963,7 @@ static int adm_source_tracking_alloc_map_memory(void)
|
|
(uint32_t *)&this_adm.sourceTrackingData.memmap.size,
|
|
1);
|
|
if (ret < 0) {
|
|
- pr_err("%s: failed to map memory, paddr = 0x%p, size = %d\n",
|
|
+ pr_err("%s: failed to map memory, paddr = 0x%pK, size = %d\n",
|
|
__func__,
|
|
(void *)this_adm.sourceTrackingData.memmap.paddr,
|
|
(uint32_t)this_adm.sourceTrackingData.memmap.size);
|
|
@@ -3983,7 +3983,7 @@ static int adm_source_tracking_alloc_map_memory(void)
|
|
goto done;
|
|
}
|
|
ret = 0;
|
|
- pr_debug("%s: paddr = 0x%p, size = %d, mem_map_handle = 0x%x\n",
|
|
+ pr_debug("%s: paddr = 0x%pK, size = %d, mem_map_handle = 0x%x\n",
|
|
__func__, (void *)this_adm.sourceTrackingData.memmap.paddr,
|
|
(uint32_t)this_adm.sourceTrackingData.memmap.size,
|
|
atomic_read(&this_adm.mem_map_handles
|
|
diff --git a/sound/soc/msm/qdsp6v2/q6afe.c b/sound/soc/msm/qdsp6v2/q6afe.c
|
|
index 860aab8..e5c7347 100644
|
|
--- a/sound/soc/msm/qdsp6v2/q6afe.c
|
|
+++ b/sound/soc/msm/qdsp6v2/q6afe.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -167,7 +167,7 @@ static int32_t afe_callback(struct apr_client_data *data, void *priv)
|
|
return -EINVAL;
|
|
}
|
|
if (data->opcode == RESET_EVENTS) {
|
|
- pr_debug("%s: reset event = %d %d apr[%p]\n",
|
|
+ pr_debug("%s: reset event = %d %d apr[%pK]\n",
|
|
__func__,
|
|
data->reset_event, data->reset_proc, this_afe.apr);
|
|
|
|
@@ -202,7 +202,7 @@ static int32_t afe_callback(struct apr_client_data *data, void *priv)
|
|
|
|
if ((data->payload_size < sizeof(this_afe.calib_data))
|
|
|| !payload || (data->token >= AFE_MAX_PORTS)) {
|
|
- pr_err("%s: Error: size %d payload %p token %d\n",
|
|
+ pr_err("%s: Error: size %d payload %pK token %d\n",
|
|
__func__, data->payload_size,
|
|
payload, data->token);
|
|
return -EINVAL;
|
|
@@ -541,7 +541,7 @@ static int afe_send_cal_block(u16 port_id, struct cal_block_data *cal_block)
|
|
populate_upper_32_bits(cal_block->cal_data.paddr);
|
|
afe_cal.param.mem_map_handle = cal_block->map_data.q6map_handle;
|
|
|
|
- pr_debug("%s: AFE cal sent for device port = 0x%x, cal size = %zd, cal addr = 0x%pa\n",
|
|
+ pr_debug("%s: AFE cal sent for device port = 0x%x, cal size = %zd, cal addr = 0x%pK\n",
|
|
__func__, port_id,
|
|
cal_block->cal_data.size, &cal_block->cal_data.paddr);
|
|
|
|
@@ -586,7 +586,7 @@ static int afe_send_custom_topology_block(struct cal_block_data *cal_block)
|
|
populate_upper_32_bits(cal_block->cal_data.paddr);
|
|
afe_cal.mem_map_handle = cal_block->map_data.q6map_handle;
|
|
|
|
- pr_debug("%s:cmd_id:0x%x calsize:%zd memmap_hdl:0x%x caladdr:0x%pa",
|
|
+ pr_debug("%s:cmd_id:0x%x calsize:%zd memmap_hdl:0x%x caladdr:0x%pK",
|
|
__func__, AFE_CMD_ADD_TOPOLOGIES, cal_block->cal_data.size,
|
|
afe_cal.mem_map_handle, &cal_block->cal_data.paddr);
|
|
|
|
@@ -1090,7 +1090,7 @@ static void remap_cal_data(struct cal_block_data *cal_block, int cal_index)
|
|
pr_err("%s: mmap did not work! size = %zd ret %d\n",
|
|
__func__,
|
|
cal_block->map_data.map_size, ret);
|
|
- pr_debug("%s: mmap did not work! addr = 0x%pa, size = %zd\n",
|
|
+ pr_debug("%s: mmap did not work! addr = 0x%pK, size = %zd\n",
|
|
__func__,
|
|
&cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size);
|
|
@@ -2843,7 +2843,7 @@ int q6afe_audio_client_buf_alloc_contiguous(unsigned int dir,
|
|
size_t len;
|
|
|
|
if (!(ac) || ((dir != IN) && (dir != OUT))) {
|
|
- pr_err("%s: ac %p dir %d\n", __func__, ac, dir);
|
|
+ pr_err("%s: ac %pK dir %d\n", __func__, ac, dir);
|
|
return -EINVAL;
|
|
}
|
|
|
|
@@ -2895,7 +2895,7 @@ int q6afe_audio_client_buf_alloc_contiguous(unsigned int dir,
|
|
buf[cnt].used = dir ^ 1;
|
|
buf[cnt].size = bufsz;
|
|
buf[cnt].actual_size = bufsz;
|
|
- pr_debug("%s: data[%p]phys[%pa][%p]\n", __func__,
|
|
+ pr_debug("%s: data[%pK]phys[%pK][%pK]\n", __func__,
|
|
buf[cnt].data,
|
|
&buf[cnt].phys,
|
|
&buf[cnt].phys);
|
|
@@ -2992,7 +2992,7 @@ int afe_cmd_memory_map(phys_addr_t dma_addr_p, u32 dma_buf_sz)
|
|
mregion_pl->shm_addr_msw = populate_upper_32_bits(dma_addr_p);
|
|
mregion_pl->mem_size_bytes = dma_buf_sz;
|
|
|
|
- pr_debug("%s: dma_addr_p 0x%pa , size %d\n", __func__,
|
|
+ pr_debug("%s: dma_addr_p 0x%pK , size %d\n", __func__,
|
|
&dma_addr_p, dma_buf_sz);
|
|
atomic_set(&this_afe.state, 1);
|
|
atomic_set(&this_afe.status, 0);
|
|
@@ -3116,7 +3116,7 @@ int q6afe_audio_client_buf_free_contiguous(unsigned int dir,
|
|
cnt = port->max_buf_cnt - 1;
|
|
|
|
if (port->buf[0].data) {
|
|
- pr_debug("%s: data[%p]phys[%pa][%p] , client[%p] handle[%p]\n",
|
|
+ pr_debug("%s: data[%pK]phys[%pK][%pK] , client[%pK] handle[%pK]\n",
|
|
__func__,
|
|
port->buf[0].data,
|
|
&port->buf[0].phys,
|
|
@@ -3371,7 +3371,7 @@ int afe_rt_proxy_port_write(phys_addr_t buf_addr_p,
|
|
ret = -ENODEV;
|
|
return ret;
|
|
}
|
|
- pr_debug("%s: buf_addr_p = 0x%pa bytes = %d\n", __func__,
|
|
+ pr_debug("%s: buf_addr_p = 0x%pK bytes = %d\n", __func__,
|
|
&buf_addr_p, bytes);
|
|
|
|
afecmd_wr.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
|
|
@@ -3407,7 +3407,7 @@ int afe_rt_proxy_port_read(phys_addr_t buf_addr_p,
|
|
ret = -ENODEV;
|
|
return ret;
|
|
}
|
|
- pr_debug("%s: buf_addr_p = 0x%pa bytes = %d\n", __func__,
|
|
+ pr_debug("%s: buf_addr_p = 0x%pK bytes = %d\n", __func__,
|
|
&buf_addr_p, bytes);
|
|
|
|
afecmd_rd.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
|
|
@@ -4757,7 +4757,7 @@ static int afe_map_cal_data(int32_t cal_type,
|
|
pr_err("%s: mmap did not work! size = %zd ret %d\n",
|
|
__func__,
|
|
cal_block->map_data.map_size, ret);
|
|
- pr_debug("%s: mmap did not work! addr = 0x%pa, size = %zd\n",
|
|
+ pr_debug("%s: mmap did not work! addr = 0x%pK, size = %zd\n",
|
|
__func__,
|
|
&cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size);
|
|
@@ -4904,7 +4904,7 @@ int afe_map_rtac_block(struct rtac_cal_block_data *cal_block)
|
|
result = afe_cmd_memory_map(cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size);
|
|
if (result < 0) {
|
|
- pr_err("%s: afe_cmd_memory_map failed for addr = 0x%pa, size = %d, err %d\n",
|
|
+ pr_err("%s: afe_cmd_memory_map failed for addr = 0x%pK, size = %d, err %d\n",
|
|
__func__, &cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size, result);
|
|
return result;
|
|
diff --git a/sound/soc/msm/qdsp6v2/q6asm.c b/sound/soc/msm/qdsp6v2/q6asm.c
|
|
index 1c6e938..ab34ac1 100644
|
|
--- a/sound/soc/msm/qdsp6v2/q6asm.c
|
|
+++ b/sound/soc/msm/qdsp6v2/q6asm.c
|
|
@@ -481,7 +481,7 @@ static int q6asm_map_cal_memory(struct cal_block_data *cal_block)
|
|
pr_err("%s: mmap did not work! size = %zd result %d\n",
|
|
__func__,
|
|
cal_block->map_data.map_size, result);
|
|
- pr_debug("%s: mmap did not work! addr = 0x%pa, size = %zd\n",
|
|
+ pr_debug("%s: mmap did not work! addr = 0x%pK, size = %zd\n",
|
|
__func__,
|
|
&cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size);
|
|
@@ -613,7 +613,7 @@ int send_asm_custom_topology(struct audio_client *ac)
|
|
asm_top.mem_map_handle = cal_block->map_data.q6map_handle;
|
|
asm_top.payload_size = cal_block->cal_data.size;
|
|
|
|
- pr_debug("%s: Sending ASM_CMD_ADD_TOPOLOGIES payload = %pa, size = %d, map handle = 0x%x\n",
|
|
+ pr_debug("%s: Sending ASM_CMD_ADD_TOPOLOGIES payload = %pK, size = %d, map handle = 0x%x\n",
|
|
__func__, &cal_block->cal_data.paddr,
|
|
asm_top.payload_size, asm_top.mem_map_handle);
|
|
|
|
@@ -621,7 +621,7 @@ int send_asm_custom_topology(struct audio_client *ac)
|
|
if (result < 0) {
|
|
pr_err("%s: Set topologies failed result %d\n",
|
|
__func__, result);
|
|
- pr_debug("%s: Set topologies failed payload = 0x%pa\n",
|
|
+ pr_debug("%s: Set topologies failed payload = 0x%pK\n",
|
|
__func__, &cal_block->cal_data.paddr);
|
|
goto unmap;
|
|
|
|
@@ -631,7 +631,7 @@ int send_asm_custom_topology(struct audio_client *ac)
|
|
(atomic_read(&ac->mem_state) <= 0), 5*HZ);
|
|
if (!result) {
|
|
pr_err("%s: Set topologies failed timeout\n", __func__);
|
|
- pr_debug("%s: Set topologies failed after timedout payload = 0x%pa\n",
|
|
+ pr_debug("%s: Set topologies failed after timedout payload = 0x%pK\n",
|
|
__func__, &cal_block->cal_data.paddr);
|
|
result = -ETIMEDOUT;
|
|
goto unmap;
|
|
@@ -707,7 +707,7 @@ int q6asm_map_rtac_block(struct rtac_cal_block_data *cal_block)
|
|
pr_err("%s: mmap did not work! size = %d result %d\n",
|
|
__func__,
|
|
cal_block->map_data.map_size, result);
|
|
- pr_debug("%s: mmap did not work! addr = 0x%pa, size = %d\n",
|
|
+ pr_debug("%s: mmap did not work! addr = 0x%pK, size = %d\n",
|
|
__func__,
|
|
&cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size);
|
|
@@ -844,7 +844,7 @@ int q6asm_audio_client_buf_free_contiguous(unsigned int dir,
|
|
}
|
|
|
|
if (port->buf[0].data) {
|
|
- pr_debug("%s: data[%p]phys[%pa][%p] , client[%p] handle[%p]\n",
|
|
+ pr_debug("%s: data[%pK]phys[%pK][%pK] , client[%pK] handle[%pK]\n",
|
|
__func__,
|
|
port->buf[0].data,
|
|
&port->buf[0].phys,
|
|
@@ -875,7 +875,7 @@ void q6asm_audio_client_free(struct audio_client *ac)
|
|
int loopcnt;
|
|
struct audio_port_data *port;
|
|
if (!ac) {
|
|
- pr_err("%s: ac %p\n", __func__, ac);
|
|
+ pr_err("%s: ac %pK\n", __func__, ac);
|
|
return;
|
|
}
|
|
if (!ac->session) {
|
|
@@ -1092,7 +1092,7 @@ int q6asm_audio_client_buf_alloc(unsigned int dir,
|
|
size_t len;
|
|
|
|
if (!(ac) || ((dir != IN) && (dir != OUT))) {
|
|
- pr_err("%s: ac %p dir %d\n", __func__, ac, dir);
|
|
+ pr_err("%s: ac %pK dir %d\n", __func__, ac, dir);
|
|
return -EINVAL;
|
|
}
|
|
|
|
@@ -1145,7 +1145,7 @@ int q6asm_audio_client_buf_alloc(unsigned int dir,
|
|
buf[cnt].used = 1;
|
|
buf[cnt].size = bufsz;
|
|
buf[cnt].actual_size = bufsz;
|
|
- pr_debug("%s: data[%p]phys[%pa][%p]\n",
|
|
+ pr_debug("%s: data[%pK]phys[%pK][%pK]\n",
|
|
__func__,
|
|
buf[cnt].data,
|
|
&buf[cnt].phys,
|
|
@@ -1182,7 +1182,7 @@ int q6asm_audio_client_buf_alloc_contiguous(unsigned int dir,
|
|
int bytes_to_alloc;
|
|
|
|
if (!(ac) || ((dir != IN) && (dir != OUT))) {
|
|
- pr_err("%s: ac %p dir %d\n", __func__, ac, dir);
|
|
+ pr_err("%s: ac %pK dir %d\n", __func__, ac, dir);
|
|
return -EINVAL;
|
|
}
|
|
|
|
@@ -1251,7 +1251,7 @@ int q6asm_audio_client_buf_alloc_contiguous(unsigned int dir,
|
|
buf[cnt].used = dir ^ 1;
|
|
buf[cnt].size = bufsz;
|
|
buf[cnt].actual_size = bufsz;
|
|
- pr_debug("%s: data[%p]phys[%pa][%p]\n",
|
|
+ pr_debug("%s: data[%pK]phys[%pK][%pK]\n",
|
|
__func__,
|
|
buf[cnt].data,
|
|
&buf[cnt].phys,
|
|
@@ -1294,7 +1294,7 @@ static int32_t q6asm_srvc_callback(struct apr_client_data *data, void *priv)
|
|
payload = data->payload;
|
|
|
|
if (data->opcode == RESET_EVENTS) {
|
|
- pr_debug("%s: Reset event is received: %d %d apr[%p]\n",
|
|
+ pr_debug("%s: Reset event is received: %d %d apr[%pK]\n",
|
|
__func__,
|
|
data->reset_event,
|
|
data->reset_proc,
|
|
@@ -1462,7 +1462,7 @@ static int32_t q6asm_callback(struct apr_client_data *data, void *priv)
|
|
return -EINVAL;
|
|
}
|
|
if (!q6asm_is_valid_audio_client(ac)) {
|
|
- pr_err("%s: audio client pointer is invalid, ac = %p\n",
|
|
+ pr_err("%s: audio client pointer is invalid, ac = %pK\n",
|
|
__func__, ac);
|
|
return -EINVAL;
|
|
}
|
|
@@ -1488,7 +1488,7 @@ static int32_t q6asm_callback(struct apr_client_data *data, void *priv)
|
|
atomic_set(&ac->reset, 1);
|
|
if (ac->apr == NULL)
|
|
ac->apr = ac->apr2;
|
|
- pr_debug("%s: Reset event is received: %d %d apr[%p]\n",
|
|
+ pr_debug("%s: Reset event is received: %d %d apr[%pK]\n",
|
|
__func__,
|
|
data->reset_event, data->reset_proc, ac->apr);
|
|
if (ac->cb)
|
|
@@ -1631,7 +1631,7 @@ static int32_t q6asm_callback(struct apr_client_data *data, void *priv)
|
|
payload[0] ||
|
|
populate_upper_32_bits(port->buf[data->token].phys) !=
|
|
payload[1]) {
|
|
- pr_debug("%s: Expected addr %pa\n",
|
|
+ pr_debug("%s: Expected addr %pK\n",
|
|
__func__, &port->buf[data->token].phys);
|
|
pr_err("%s: rxedl[0x%x] rxedu [0x%x]\n",
|
|
__func__, payload[0], payload[1]);
|
|
@@ -1717,7 +1717,7 @@ static int32_t q6asm_callback(struct apr_client_data *data, void *priv)
|
|
payload[READDONE_IDX_BUFADD_LSW] ||
|
|
populate_upper_32_bits(port->buf[token].phys) !=
|
|
payload[READDONE_IDX_BUFADD_MSW]) {
|
|
- dev_vdbg(ac->dev, "%s: Expected addr %pa\n",
|
|
+ dev_vdbg(ac->dev, "%s: Expected addr %pK\n",
|
|
__func__, &port->buf[token].phys);
|
|
pr_err("%s: rxedl[0x%x] rxedu[0x%x]\n",
|
|
__func__,
|
|
@@ -1802,7 +1802,7 @@ void *q6asm_is_cpu_buf_avail(int dir, struct audio_client *ac, uint32_t *size,
|
|
struct audio_port_data *port;
|
|
|
|
if (!ac || ((dir != IN) && (dir != OUT))) {
|
|
- pr_err("%s: ac %p dir %d\n", __func__, ac, dir);
|
|
+ pr_err("%s: ac %pK dir %d\n", __func__, ac, dir);
|
|
return NULL;
|
|
}
|
|
|
|
@@ -1829,7 +1829,7 @@ void *q6asm_is_cpu_buf_avail(int dir, struct audio_client *ac, uint32_t *size,
|
|
*size = port->buf[idx].actual_size;
|
|
*index = port->cpu_buf;
|
|
data = port->buf[idx].data;
|
|
- dev_vdbg(ac->dev, "%s: session[%d]index[%d] data[%p]size[%d]\n",
|
|
+ dev_vdbg(ac->dev, "%s: session[%d]index[%d] data[%pK]size[%d]\n",
|
|
__func__,
|
|
ac->session,
|
|
port->cpu_buf,
|
|
@@ -1854,7 +1854,7 @@ void *q6asm_is_cpu_buf_avail_nolock(int dir, struct audio_client *ac,
|
|
struct audio_port_data *port;
|
|
|
|
if (!ac || ((dir != IN) && (dir != OUT))) {
|
|
- pr_err("%s: ac %p dir %d\n", __func__, ac, dir);
|
|
+ pr_err("%s: ac %pK dir %d\n", __func__, ac, dir);
|
|
return NULL;
|
|
}
|
|
|
|
@@ -1881,7 +1881,7 @@ void *q6asm_is_cpu_buf_avail_nolock(int dir, struct audio_client *ac,
|
|
*size = port->buf[idx].actual_size;
|
|
*index = port->cpu_buf;
|
|
data = port->buf[idx].data;
|
|
- dev_vdbg(ac->dev, "%s: session[%d]index[%d] data[%p]size[%d]\n",
|
|
+ dev_vdbg(ac->dev, "%s: session[%d]index[%d] data[%pK]size[%d]\n",
|
|
__func__, ac->session, port->cpu_buf,
|
|
data, *size);
|
|
/*
|
|
@@ -1902,7 +1902,7 @@ int q6asm_is_dsp_buf_avail(int dir, struct audio_client *ac)
|
|
uint32_t idx;
|
|
|
|
if (!ac || (dir != OUT)) {
|
|
- pr_err("%s: ac %p dir %d\n", __func__, ac, dir);
|
|
+ pr_err("%s: ac %pK dir %d\n", __func__, ac, dir);
|
|
return ret;
|
|
}
|
|
|
|
@@ -2169,13 +2169,13 @@ int q6asm_open_write_compressed(struct audio_client *ac, uint32_t format,
|
|
struct asm_stream_cmd_open_write_compressed open;
|
|
|
|
if (ac == NULL) {
|
|
- pr_err("%s: ac[%p] NULL\n", __func__, ac);
|
|
+ pr_err("%s: ac[%pK] NULL\n", __func__, ac);
|
|
rc = -EINVAL;
|
|
goto fail_cmd;
|
|
}
|
|
|
|
if (ac->apr == NULL) {
|
|
- pr_err("%s: APR handle[%p] NULL\n", __func__, ac->apr);
|
|
+ pr_err("%s: APR handle[%pK] NULL\n", __func__, ac->apr);
|
|
rc = -EINVAL;
|
|
goto fail_cmd;
|
|
}
|
|
@@ -4032,7 +4032,7 @@ int q6asm_memory_map(struct audio_client *ac, phys_addr_t buf_add, int dir,
|
|
|
|
ac->port[dir].tmp_hdl = 0;
|
|
port = &ac->port[dir];
|
|
- pr_debug("%s: buf_add 0x%pa, bufsz: %d\n", __func__,
|
|
+ pr_debug("%s: buf_add 0x%pK, bufsz: %d\n", __func__,
|
|
&buf_add, bufsz);
|
|
mregions->shm_addr_lsw = lower_32_bits(buf_add);
|
|
mregions->shm_addr_msw = populate_upper_32_bits(buf_add);
|
|
@@ -4218,7 +4218,7 @@ static int q6asm_memory_map_regions(struct audio_client *ac, int dir,
|
|
q6asm_add_mmaphdr(ac, &mmap_regions->hdr, cmd_size, TRUE,
|
|
((ac->session << 8) | dir));
|
|
atomic_set(&ac->mem_state, 1);
|
|
- pr_debug("%s: mmap_region=0x%p token=0x%x\n", __func__,
|
|
+ pr_debug("%s: mmap_region=0x%pK token=0x%x\n", __func__,
|
|
mmap_regions, ((ac->session << 8) | dir));
|
|
|
|
mmap_regions->hdr.opcode = ASM_CMD_SHARED_MEM_MAP_REGIONS;
|
|
@@ -4274,7 +4274,7 @@ static int q6asm_memory_map_regions(struct audio_client *ac, int dir,
|
|
buffer_node[i].mmap_hdl = ac->port[dir].tmp_hdl;
|
|
list_add_tail(&buffer_node[i].list,
|
|
&ac->port[dir].mem_map_handle);
|
|
- pr_debug("%s: i=%d, bufadd[i] = 0x%pa, maphdl[i] = 0x%x\n",
|
|
+ pr_debug("%s: i=%d, bufadd[i] = 0x%pK, maphdl[i] = 0x%x\n",
|
|
__func__, i, &buffer_node[i].buf_phys_addr,
|
|
buffer_node[i].mmap_hdl);
|
|
}
|
|
@@ -4501,7 +4501,7 @@ int q6asm_dts_eagle_set(struct audio_client *ac, int param_id, uint32_t size,
|
|
struct asm_dts_eagle_param *ad;
|
|
|
|
if (!ac || ac->apr == NULL || (size == 0) || !data) {
|
|
- pr_err("DTS_EAGLE_ASM - %s: APR handle NULL, invalid size %u or pointer %p.\n",
|
|
+ pr_err("DTS_EAGLE_ASM - %s: APR handle NULL, invalid size %u or pointer %pK.\n",
|
|
__func__, size, data);
|
|
return -EINVAL;
|
|
}
|
|
@@ -4512,7 +4512,7 @@ int q6asm_dts_eagle_set(struct audio_client *ac, int param_id, uint32_t size,
|
|
__func__, sz);
|
|
return -ENOMEM;
|
|
}
|
|
- pr_debug("DTS_EAGLE_ASM - %s: ac %p param_id 0x%x size %u data %p m_id 0x%x\n",
|
|
+ pr_debug("DTS_EAGLE_ASM - %s: ac %pK param_id 0x%x size %u data %pK m_id 0x%x\n",
|
|
__func__, ac, param_id, size, data, m_id);
|
|
q6asm_add_hdr_async(ac, &ad->hdr, sz, 1);
|
|
ad->hdr.opcode = ASM_STREAM_CMD_SET_PP_PARAMS_V2;
|
|
@@ -4531,8 +4531,8 @@ int q6asm_dts_eagle_set(struct audio_client *ac, int param_id, uint32_t size,
|
|
if (po) {
|
|
struct list_head *ptr, *next;
|
|
struct asm_buffer_node *node;
|
|
- pr_debug("DTS_EAGLE_ASM - %s: using out of band memory (virtual %p, physical %lu)\n",
|
|
- __func__, po->kvaddr, (long)po->paddr);
|
|
+ pr_debug("DTS_EAGLE_ASM - %s: using out of band memory (virtual %pK, physical %pK)\n",
|
|
+ __func__, po->kvaddr, &po->paddr);
|
|
ad->param.data_payload_addr_lsw = lower_32_bits(po->paddr);
|
|
ad->param.data_payload_addr_msw = populate_upper_32_bits(
|
|
po->paddr);
|
|
@@ -4599,7 +4599,7 @@ int q6asm_dts_eagle_get(struct audio_client *ac, int param_id, uint32_t size,
|
|
(po ? 0 : size);
|
|
|
|
if (!ac || ac->apr == NULL || (size == 0) || !data) {
|
|
- pr_err("DTS_EAGLE_ASM - %s: APR handle NULL, invalid size %u or pointer %p\n",
|
|
+ pr_err("DTS_EAGLE_ASM - %s: APR handle NULL, invalid size %u or pointer %pK\n",
|
|
__func__, size, data);
|
|
return -EINVAL;
|
|
}
|
|
@@ -4609,7 +4609,7 @@ int q6asm_dts_eagle_get(struct audio_client *ac, int param_id, uint32_t size,
|
|
__func__, sz);
|
|
return -ENOMEM;
|
|
}
|
|
- pr_debug("DTS_EAGLE_ASM - %s: ac %p param_id 0x%x size %u data %p m_id 0x%x\n",
|
|
+ pr_debug("DTS_EAGLE_ASM - %s: ac %pK param_id 0x%x size %u data %pK m_id 0x%x\n",
|
|
__func__, ac, param_id, size, data, m_id);
|
|
q6asm_add_hdr(ac, &ad->hdr, sz, TRUE);
|
|
ad->hdr.opcode = ASM_STREAM_CMD_GET_PP_PARAMS_V2;
|
|
@@ -4634,8 +4634,8 @@ int q6asm_dts_eagle_get(struct audio_client *ac, int param_id, uint32_t size,
|
|
if (po) {
|
|
struct list_head *ptr, *next;
|
|
struct asm_buffer_node *node;
|
|
- pr_debug("DTS_EAGLE_ASM - %s: using out of band memory (virtual %p, physical %lu)\n",
|
|
- __func__, po->kvaddr, (long)po->paddr);
|
|
+ pr_debug("DTS_EAGLE_ASM - %s: using out of band memory (virtual %pK, physical %pK)\n",
|
|
+ __func__, po->kvaddr, &po->paddr);
|
|
ad->param.data_payload_addr_lsw = lower_32_bits(po->paddr);
|
|
ad->param.data_payload_addr_msw = populate_upper_32_bits(
|
|
po->paddr);
|
|
@@ -5066,7 +5066,7 @@ static int __q6asm_read(struct audio_client *ac, bool is_custom_len_reqd,
|
|
}
|
|
ab = &port->buf[dsp_buf];
|
|
|
|
- dev_vdbg(ac->dev, "%s: session[%d]dsp-buf[%d][%p]cpu_buf[%d][%pa]\n",
|
|
+ dev_vdbg(ac->dev, "%s: session[%d]dsp-buf[%d][%pK]cpu_buf[%d][%pK]\n",
|
|
__func__,
|
|
ac->session,
|
|
dsp_buf,
|
|
@@ -5092,7 +5092,7 @@ static int __q6asm_read(struct audio_client *ac, bool is_custom_len_reqd,
|
|
port->dsp_buf = q6asm_get_next_buf(ac, port->dsp_buf,
|
|
port->max_buf_cnt);
|
|
mutex_unlock(&port->lock);
|
|
- dev_vdbg(ac->dev, "%s: buf add[%pa] token[%d] uid[%d]\n",
|
|
+ dev_vdbg(ac->dev, "%s: buf add[%pK] token[%d] uid[%d]\n",
|
|
__func__, &ab->phys, read.hdr.token,
|
|
read.seq_id);
|
|
rc = apr_send_pkt(ac->apr, (uint32_t *) &read);
|
|
@@ -5144,7 +5144,7 @@ int q6asm_read_nolock(struct audio_client *ac)
|
|
dsp_buf = port->dsp_buf;
|
|
ab = &port->buf[dsp_buf];
|
|
|
|
- dev_vdbg(ac->dev, "%s: session[%d]dsp-buf[%d][%p]cpu_buf[%d][%pa]\n",
|
|
+ dev_vdbg(ac->dev, "%s: session[%d]dsp-buf[%d][%pK]cpu_buf[%d][%pK]\n",
|
|
__func__,
|
|
ac->session,
|
|
dsp_buf,
|
|
@@ -5170,7 +5170,7 @@ int q6asm_read_nolock(struct audio_client *ac)
|
|
|
|
port->dsp_buf = q6asm_get_next_buf(ac, port->dsp_buf,
|
|
port->max_buf_cnt);
|
|
- dev_vdbg(ac->dev, "%s: buf add[%pa] token[%d] uid[%d]\n",
|
|
+ dev_vdbg(ac->dev, "%s: buf add[%pK] token[%d] uid[%d]\n",
|
|
__func__, &ab->phys, read.hdr.token,
|
|
read.seq_id);
|
|
rc = apr_send_pkt(ac->apr, (uint32_t *) &read);
|
|
@@ -5233,7 +5233,7 @@ int q6asm_async_write(struct audio_client *ac,
|
|
else
|
|
lbuf_phys_addr = param->paddr;
|
|
|
|
- dev_vdbg(ac->dev, "%s: token[0x%x], buf_addr[%pa], buf_size[0x%x], ts_msw[0x%x], ts_lsw[0x%x], lbuf_phys_addr: 0x[%pa]\n",
|
|
+ dev_vdbg(ac->dev, "%s: token[0x%x], buf_addr[%pK], buf_size[0x%x], ts_msw[0x%x], ts_lsw[0x%x], lbuf_phys_addr: 0x[%pK]\n",
|
|
__func__,
|
|
write.hdr.token, ¶m->paddr,
|
|
write.buf_size, write.timestamp_msw,
|
|
@@ -5381,7 +5381,7 @@ int q6asm_write(struct audio_client *ac, uint32_t len, uint32_t msw_ts,
|
|
list);
|
|
write.mem_map_handle = buf_node->mmap_hdl;
|
|
|
|
- dev_vdbg(ac->dev, "%s: ab->phys[%pa]bufadd[0x%x] token[0x%x]buf_id[0x%x]buf_size[0x%x]mmaphdl[0x%x]"
|
|
+ dev_vdbg(ac->dev, "%s: ab->phys[%pK]bufadd[0x%x] token[0x%x]buf_id[0x%x]buf_size[0x%x]mmaphdl[0x%x]"
|
|
, __func__,
|
|
&ab->phys,
|
|
write.buf_addr_lsw,
|
|
@@ -5455,7 +5455,7 @@ int q6asm_write_nolock(struct audio_client *ac, uint32_t len, uint32_t msw_ts,
|
|
port->dsp_buf = q6asm_get_next_buf(ac, port->dsp_buf,
|
|
port->max_buf_cnt);
|
|
|
|
- dev_vdbg(ac->dev, "%s: ab->phys[%pa]bufadd[0x%x]token[0x%x] buf_id[0x%x]buf_size[0x%x]mmaphdl[0x%x]"
|
|
+ dev_vdbg(ac->dev, "%s: ab->phys[%pK]bufadd[0x%x]token[0x%x] buf_id[0x%x]buf_size[0x%x]mmaphdl[0x%x]"
|
|
, __func__,
|
|
&ab->phys,
|
|
write.buf_addr_lsw,
|
|
diff --git a/sound/soc/msm/qdsp6v2/q6core.c b/sound/soc/msm/qdsp6v2/q6core.c
|
|
index 0c85d60..41ebf63 100644
|
|
--- a/sound/soc/msm/qdsp6v2/q6core.c
|
|
+++ b/sound/soc/msm/qdsp6v2/q6core.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -184,7 +184,7 @@ void ocm_core_open(void)
|
|
if (q6core_lcl.core_handle_q == NULL)
|
|
q6core_lcl.core_handle_q = apr_register("ADSP", "CORE",
|
|
aprv2_core_fn_q, 0xFFFFFFFF, NULL);
|
|
- pr_debug("%s: Open_q %p\n", __func__, q6core_lcl.core_handle_q);
|
|
+ pr_debug("%s: Open_q %pK\n", __func__, q6core_lcl.core_handle_q);
|
|
if (q6core_lcl.core_handle_q == NULL) {
|
|
if (__ratelimit(&rl))
|
|
pr_err("%s: Unable to register CORE\n",
|
|
@@ -347,7 +347,7 @@ int core_dts_eagle_set(int size, char *data)
|
|
|
|
pr_debug("DTS_EAGLE_CORE - %s\n", __func__);
|
|
if (size <= 0 || !data) {
|
|
- pr_err("DTS_EAGLE_CORE - %s: invalid size %i or pointer %p.\n",
|
|
+ pr_err("DTS_EAGLE_CORE - %s: invalid size %i or pointer %pK.\n",
|
|
__func__, size, data);
|
|
return -EINVAL;
|
|
}
|
|
@@ -393,7 +393,7 @@ int core_dts_eagle_get(int id, int size, char *data)
|
|
|
|
pr_debug("DTS_EAGLE_CORE - %s\n", __func__);
|
|
if (size <= 0 || !data) {
|
|
- pr_err("DTS_EAGLE_CORE - %s: invalid size %i or pointer %p.\n",
|
|
+ pr_err("DTS_EAGLE_CORE - %s: invalid size %i or pointer %pK.\n",
|
|
__func__, size, data);
|
|
return -EINVAL;
|
|
}
|
|
diff --git a/sound/soc/msm/qdsp6v2/q6lsm.c b/sound/soc/msm/qdsp6v2/q6lsm.c
|
|
index 02ba8e4..fa2ab564 100644
|
|
--- a/sound/soc/msm/qdsp6v2/q6lsm.c
|
|
+++ b/sound/soc/msm/qdsp6v2/q6lsm.c
|
|
@@ -1,5 +1,5 @@
|
|
/*
|
|
- * Copyright (c) 2013-2015, Linux Foundation. All rights reserved.
|
|
+ * Copyright (c) 2013-2016, Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -134,7 +134,7 @@ static int q6lsm_callback(struct apr_client_data *data, void *priv)
|
|
uint32_t *payload;
|
|
|
|
if (!client || !data) {
|
|
- pr_err("%s: client %p data %p\n",
|
|
+ pr_err("%s: client %pK data %pK\n",
|
|
__func__, client, data);
|
|
WARN_ON(1);
|
|
return -EINVAL;
|
|
@@ -886,7 +886,7 @@ int q6lsm_register_sound_model(struct lsm_client *client,
|
|
rmb();
|
|
cmd.mem_map_handle = client->sound_model.mem_map_handle;
|
|
|
|
- pr_debug("%s: addr %pa, size %d, handle 0x%x\n", __func__,
|
|
+ pr_debug("%s: addr %pK, size %d, handle 0x%x\n", __func__,
|
|
&client->sound_model.phys, cmd.model_size, cmd.mem_map_handle);
|
|
rc = q6lsm_apr_send_pkt(client, client->apr, &cmd, true, NULL);
|
|
if (rc)
|
|
@@ -960,7 +960,7 @@ static int q6lsm_memory_map_regions(struct lsm_client *client,
|
|
int rc;
|
|
int cmd_size = 0;
|
|
|
|
- pr_debug("%s: dma_addr_p 0x%pa, dma_buf_sz %d, mmap_p 0x%p, session %d\n",
|
|
+ pr_debug("%s: dma_addr_p 0x%pK, dma_buf_sz %d, mmap_p 0x%pK, session %d\n",
|
|
__func__, &dma_addr_p, dma_buf_sz, mmap_p,
|
|
client->session);
|
|
if (CHECK_SESSION(client->session)) {
|
|
@@ -1240,7 +1240,7 @@ int q6lsm_snd_model_buf_alloc(struct lsm_client *client, size_t len,
|
|
if (cal_block == NULL)
|
|
goto fail;
|
|
|
|
- pr_debug("%s:Snd Model len = %zd cal size %zd phys addr %pa", __func__,
|
|
+ pr_debug("%s:Snd Model len = %zd cal size %zd phys addr %pK", __func__,
|
|
len, cal_block->cal_data.size,
|
|
&cal_block->cal_data.paddr);
|
|
if (!cal_block->cal_data.paddr) {
|
|
@@ -1295,8 +1295,8 @@ int q6lsm_snd_model_buf_alloc(struct lsm_client *client, size_t len,
|
|
memcpy((client->sound_model.data + pad_zero +
|
|
client->sound_model.size),
|
|
(uint32_t *)cal_block->cal_data.kvaddr, client->lsm_cal_size);
|
|
- pr_debug("%s: Copy cal start virt_addr %p phy_addr %pa\n"
|
|
- "Offset cal virtual Addr %p\n", __func__,
|
|
+ pr_debug("%s: Copy cal start virt_addr %pK phy_addr %pK\n"
|
|
+ "Offset cal virtual Addr %pK\n", __func__,
|
|
client->sound_model.data, &client->sound_model.phys,
|
|
(pad_zero + client->sound_model.data +
|
|
client->sound_model.size));
|
|
@@ -1610,7 +1610,7 @@ int q6lsm_lab_control(struct lsm_client *client, u32 enable)
|
|
u32 param_size;
|
|
|
|
if (!client) {
|
|
- pr_err("%s: invalid param client %p\n", __func__, client);
|
|
+ pr_err("%s: invalid param client %pK\n", __func__, client);
|
|
return -EINVAL;
|
|
}
|
|
/* enable/disable lab on dsp */
|
|
@@ -1667,7 +1667,7 @@ int q6lsm_stop_lab(struct lsm_client *client)
|
|
{
|
|
int rc = 0;
|
|
if (!client) {
|
|
- pr_err("%s: invalid param client %p\n", __func__, client);
|
|
+ pr_err("%s: invalid param client %pK\n", __func__, client);
|
|
return -EINVAL;
|
|
}
|
|
rc = q6lsm_cmd(client, LSM_SESSION_CMD_EOB, true);
|
|
@@ -1680,7 +1680,7 @@ int q6lsm_read(struct lsm_client *client, struct lsm_cmd_read *read)
|
|
{
|
|
int rc = 0;
|
|
if (!client || !read) {
|
|
- pr_err("%s: Invalid params client %p read %p\n", __func__,
|
|
+ pr_err("%s: Invalid params client %pK read %pK\n", __func__,
|
|
client, read);
|
|
return -EINVAL;
|
|
}
|
|
@@ -1750,7 +1750,7 @@ int q6lsm_lab_buffer_alloc(struct lsm_client *client, bool alloc)
|
|
kfree(client->lab_buffer);
|
|
client->lab_buffer = NULL;
|
|
} else {
|
|
- pr_debug("%s: Memory map handle %x phys %pa size %d\n",
|
|
+ pr_debug("%s: Memory map handle %x phys %pK size %d\n",
|
|
__func__,
|
|
client->lab_buffer[0].mem_map_handle,
|
|
&client->lab_buffer[0].phys,
|
|
diff --git a/sound/soc/msm/qdsp6v2/q6voice.c b/sound/soc/msm/qdsp6v2/q6voice.c
|
|
index 04909d3..face98c 100644
|
|
--- a/sound/soc/msm/qdsp6v2/q6voice.c
|
|
+++ b/sound/soc/msm/qdsp6v2/q6voice.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -348,7 +348,7 @@ static struct voice_data *voice_get_session(u32 session_id)
|
|
break;
|
|
}
|
|
|
|
- pr_debug("%s:session_id 0x%x session handle %p\n",
|
|
+ pr_debug("%s:session_id 0x%x session handle %pK\n",
|
|
__func__, session_id, v);
|
|
|
|
return v;
|
|
@@ -3087,7 +3087,7 @@ static int voice_map_cal_memory(struct cal_block_data *cal_block,
|
|
cal_block->map_data.map_size,
|
|
VOC_CAL_MEM_MAP_TOKEN);
|
|
if (result < 0) {
|
|
- pr_err("%s: Mmap did not work! addr = 0x%pa, size = %zd\n",
|
|
+ pr_err("%s: Mmap did not work! addr = 0x%pK, size = %zd\n",
|
|
__func__,
|
|
&cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size);
|
|
@@ -3120,7 +3120,7 @@ static int remap_cal_data(struct cal_block_data *cal_block,
|
|
goto done;
|
|
}
|
|
} else {
|
|
- pr_debug("%s: Cal block 0x%pa, size %zd already mapped. Q6 map handle = %d\n",
|
|
+ pr_debug("%s: Cal block 0x%pK, size %zd already mapped. Q6 map handle = %d\n",
|
|
__func__, &cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size,
|
|
cal_block->map_data.q6map_handle);
|
|
@@ -3318,7 +3318,7 @@ int voc_map_rtac_block(struct rtac_cal_block_data *cal_block)
|
|
if (!is_rtac_memory_allocated()) {
|
|
result = voice_alloc_rtac_mem_map_table();
|
|
if (result < 0) {
|
|
- pr_err("%s: RTAC alloc mem map table did not work! addr = 0x%pa, size = %d\n",
|
|
+ pr_err("%s: RTAC alloc mem map table did not work! addr = 0x%pK, size = %d\n",
|
|
__func__,
|
|
&cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size);
|
|
@@ -3333,7 +3333,7 @@ int voc_map_rtac_block(struct rtac_cal_block_data *cal_block)
|
|
cal_block->map_data.map_size,
|
|
VOC_RTAC_MEM_MAP_TOKEN);
|
|
if (result < 0) {
|
|
- pr_err("%s: RTAC mmap did not work! addr = 0x%pa, size = %d\n",
|
|
+ pr_err("%s: RTAC mmap did not work! addr = 0x%pK, size = %d\n",
|
|
__func__,
|
|
&cal_block->cal_data.paddr,
|
|
cal_block->map_data.map_size);
|
|
@@ -4444,7 +4444,7 @@ int voc_start_record(uint32_t port_id, uint32_t set, uint32_t session_id)
|
|
|
|
break;
|
|
}
|
|
- pr_debug("%s: port_id: %d, set: %d, v: %p\n",
|
|
+ pr_debug("%s: port_id: %d, set: %d, v: %pK\n",
|
|
__func__, port_id, set, v);
|
|
|
|
mutex_lock(&v->lock);
|
|
@@ -6510,12 +6510,12 @@ static int voice_alloc_oob_shared_mem(void)
|
|
cnt++;
|
|
}
|
|
|
|
- pr_debug("%s buf[0].data:[%p], buf[0].phys:[%pa], &buf[0].phys:[%p],\n",
|
|
+ pr_debug("%s buf[0].data:[%pK], buf[0].phys:[%pK], &buf[0].phys:[%pK],\n",
|
|
__func__,
|
|
(void *)v->shmem_info.sh_buf.buf[0].data,
|
|
&v->shmem_info.sh_buf.buf[0].phys,
|
|
(void *)&v->shmem_info.sh_buf.buf[0].phys);
|
|
- pr_debug("%s: buf[1].data:[%p], buf[1].phys[%pa], &buf[1].phys[%p]\n",
|
|
+ pr_debug("%s: buf[1].data:[%pK], buf[1].phys[%pK], &buf[1].phys[%pK]\n",
|
|
__func__,
|
|
(void *)v->shmem_info.sh_buf.buf[1].data,
|
|
&v->shmem_info.sh_buf.buf[1].phys,
|
|
@@ -6557,7 +6557,7 @@ static int voice_alloc_oob_mem_table(void)
|
|
}
|
|
|
|
v->shmem_info.memtbl.size = sizeof(struct vss_imemory_table_t);
|
|
- pr_debug("%s data[%p]phys[%pa][%p]\n", __func__,
|
|
+ pr_debug("%s data[%pK]phys[%pK][%pK]\n", __func__,
|
|
(void *)v->shmem_info.memtbl.data,
|
|
&v->shmem_info.memtbl.phys,
|
|
(void *)&v->shmem_info.memtbl.phys);
|
|
@@ -6909,7 +6909,7 @@ static int voice_alloc_cal_mem_map_table(void)
|
|
}
|
|
|
|
common.cal_mem_map_table.size = sizeof(struct vss_imemory_table_t);
|
|
- pr_debug("%s: data %p phys %pa\n", __func__,
|
|
+ pr_debug("%s: data %pK phys %pK\n", __func__,
|
|
common.cal_mem_map_table.data,
|
|
&common.cal_mem_map_table.phys);
|
|
|
|
@@ -6936,7 +6936,7 @@ static int voice_alloc_rtac_mem_map_table(void)
|
|
}
|
|
|
|
common.rtac_mem_map_table.size = sizeof(struct vss_imemory_table_t);
|
|
- pr_debug("%s: data %p phys %pa\n", __func__,
|
|
+ pr_debug("%s: data %pK phys %pK\n", __func__,
|
|
common.rtac_mem_map_table.data,
|
|
&common.rtac_mem_map_table.phys);
|
|
|
|
@@ -7537,7 +7537,7 @@ static int voice_alloc_source_tracking_shared_memory(void)
|
|
memset((void *)(common.source_tracking_sh_mem.sh_mem_block.data), 0,
|
|
common.source_tracking_sh_mem.sh_mem_block.size);
|
|
|
|
- pr_debug("%s: sh_mem_block: phys:[%pa], data:[0x%p], size:[%zd]\n",
|
|
+ pr_debug("%s: sh_mem_block: phys:[%pK], data:[0x%pK], size:[%zd]\n",
|
|
__func__,
|
|
&(common.source_tracking_sh_mem.sh_mem_block.phys),
|
|
(void *)(common.source_tracking_sh_mem.sh_mem_block.data),
|
|
@@ -7568,7 +7568,7 @@ static int voice_alloc_source_tracking_shared_memory(void)
|
|
memset((void *)(common.source_tracking_sh_mem.sh_mem_table.data), 0,
|
|
common.source_tracking_sh_mem.sh_mem_table.size);
|
|
|
|
- pr_debug("%s sh_mem_table: phys:[%pa], data:[0x%p], size:[%zd],\n",
|
|
+ pr_debug("%s sh_mem_table: phys:[%pK], data:[0x%pK], size:[%zd],\n",
|
|
__func__,
|
|
&(common.source_tracking_sh_mem.sh_mem_table.phys),
|
|
(void *)(common.source_tracking_sh_mem.sh_mem_table.data),
|
|
diff --git a/sound/soc/msm/qdsp6v2/rtac.c b/sound/soc/msm/qdsp6v2/rtac.c
|
|
index b1954a4..feed251 100644
|
|
--- a/sound/soc/msm/qdsp6v2/rtac.c
|
|
+++ b/sound/soc/msm/qdsp6v2/rtac.c
|
|
@@ -1,4 +1,4 @@
|
|
-/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
|
|
+/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
@@ -177,7 +177,7 @@ int rtac_allocate_cal_buffer(uint32_t cal_type)
|
|
}
|
|
|
|
if (rtac_cal[cal_type].cal_data.paddr != 0) {
|
|
- pr_err("%s: memory already allocated! cal_type %d, paddr 0x%pa\n",
|
|
+ pr_err("%s: memory already allocated! cal_type %d, paddr 0x%pK\n",
|
|
__func__, cal_type, &rtac_cal[cal_type].cal_data.paddr);
|
|
result = -EPERM;
|
|
goto done;
|
|
@@ -196,7 +196,7 @@ int rtac_allocate_cal_buffer(uint32_t cal_type)
|
|
goto done;
|
|
}
|
|
|
|
- pr_debug("%s: cal_type %d, paddr 0x%pa, kvaddr 0x%p, map_size 0x%x\n",
|
|
+ pr_debug("%s: cal_type %d, paddr 0x%pK, kvaddr 0x%pK, map_size 0x%x\n",
|
|
__func__, cal_type,
|
|
&rtac_cal[cal_type].cal_data.paddr,
|
|
rtac_cal[cal_type].cal_data.kvaddr,
|
|
@@ -226,7 +226,7 @@ int rtac_free_cal_buffer(uint32_t cal_type)
|
|
result = msm_audio_ion_free(rtac_cal[cal_type].map_data.ion_client,
|
|
rtac_cal[cal_type].map_data.ion_handle);
|
|
if (result < 0) {
|
|
- pr_err("%s: ION free for RTAC failed! cal_type %d, paddr 0x%pa\n",
|
|
+ pr_err("%s: ION free for RTAC failed! cal_type %d, paddr 0x%pK\n",
|
|
__func__, cal_type, &rtac_cal[cal_type].cal_data.paddr);
|
|
goto done;
|
|
}
|
|
@@ -671,7 +671,7 @@ static int get_voice_index(u32 mode, u32 handle)
|
|
/* ADM APR */
|
|
void rtac_set_adm_handle(void *handle)
|
|
{
|
|
- pr_debug("%s: handle = %p\n", __func__, handle);
|
|
+ pr_debug("%s: handle = %pK\n", __func__, handle);
|
|
|
|
mutex_lock(&rtac_adm_apr_mutex);
|
|
rtac_adm_apr_data.apr_handle = handle;
|
|
@@ -729,7 +729,7 @@ u32 send_adm_apr(void *buf, u32 opcode)
|
|
|
|
if (copy_from_user(&user_buf_size, (void *)buf,
|
|
sizeof(user_buf_size))) {
|
|
- pr_err("%s: Copy from user failed! buf = 0x%p\n",
|
|
+ pr_err("%s: Copy from user failed! buf = 0x%pK\n",
|
|
__func__, buf);
|
|
goto done;
|
|
}
|
|
@@ -829,7 +829,7 @@ u32 send_adm_apr(void *buf, u32 opcode)
|
|
memcpy(rtac_adm_buffer, &adm_params, sizeof(adm_params));
|
|
atomic_set(&rtac_adm_apr_data.cmd_state, 1);
|
|
|
|
- pr_debug("%s: Sending RTAC command ioctl 0x%x, paddr 0x%pa\n",
|
|
+ pr_debug("%s: Sending RTAC command ioctl 0x%x, paddr 0x%pK\n",
|
|
__func__, opcode,
|
|
&rtac_cal[ADM_RTAC_CAL].cal_data.paddr);
|
|
|
|
@@ -948,7 +948,7 @@ u32 send_rtac_asm_apr(void *buf, u32 opcode)
|
|
|
|
if (copy_from_user(&user_buf_size, (void *)buf,
|
|
sizeof(user_buf_size))) {
|
|
- pr_err("%s: Copy from user failed! buf = 0x%p\n",
|
|
+ pr_err("%s: Copy from user failed! buf = 0x%pK\n",
|
|
__func__, buf);
|
|
goto done;
|
|
}
|
|
@@ -1048,7 +1048,7 @@ u32 send_rtac_asm_apr(void *buf, u32 opcode)
|
|
memcpy(rtac_asm_buffer, &asm_params, sizeof(asm_params));
|
|
atomic_set(&rtac_asm_apr_data[session_id].cmd_state, 1);
|
|
|
|
- pr_debug("%s: Sending RTAC command ioctl 0x%x, paddr 0x%pa\n",
|
|
+ pr_debug("%s: Sending RTAC command ioctl 0x%x, paddr 0x%pK\n",
|
|
__func__, opcode,
|
|
&rtac_cal[ASM_RTAC_CAL].cal_data.paddr);
|
|
|
|
@@ -1188,7 +1188,7 @@ static u32 send_rtac_afe_apr(void *buf, uint32_t opcode)
|
|
|
|
if (copy_from_user(&user_afe_buf, (void *)buf,
|
|
sizeof(struct rtac_afe_user_data))) {
|
|
- pr_err("%s: Copy from user failed! buf = 0x%p\n",
|
|
+ pr_err("%s: Copy from user failed! buf = 0x%pK\n",
|
|
__func__, buf);
|
|
goto done;
|
|
}
|
|
@@ -1304,7 +1304,7 @@ static u32 send_rtac_afe_apr(void *buf, uint32_t opcode)
|
|
|
|
atomic_set(&rtac_afe_apr_data.cmd_state, 1);
|
|
|
|
- pr_debug("%s: Sending RTAC command ioctl 0x%x, paddr 0x%pa\n",
|
|
+ pr_debug("%s: Sending RTAC command ioctl 0x%x, paddr 0x%pK\n",
|
|
__func__, opcode,
|
|
&rtac_cal[AFE_RTAC_CAL].cal_data.paddr);
|
|
|
|
@@ -1428,7 +1428,7 @@ u32 send_voice_apr(u32 mode, void *buf, u32 opcode)
|
|
|
|
if (copy_from_user(&user_buf_size, (void *)buf,
|
|
sizeof(user_buf_size))) {
|
|
- pr_err("%s: Copy from user failed! buf = 0x%p\n",
|
|
+ pr_err("%s: Copy from user failed! buf = 0x%pK\n",
|
|
__func__, buf);
|
|
goto done;
|
|
}
|
|
@@ -1529,7 +1529,7 @@ u32 send_voice_apr(u32 mode, void *buf, u32 opcode)
|
|
memcpy(rtac_voice_buffer, &voice_params, sizeof(voice_params));
|
|
atomic_set(&rtac_voice_apr_data[mode].cmd_state, 1);
|
|
|
|
- pr_debug("%s: Sending RTAC command ioctl 0x%x, paddr 0x%pa\n",
|
|
+ pr_debug("%s: Sending RTAC command ioctl 0x%x, paddr 0x%pK\n",
|
|
__func__, opcode,
|
|
&rtac_cal[VOICE_RTAC_CAL].cal_data.paddr);
|
|
|
|
--
|
|
cgit v1.1
|
|
|