Re: [PATCH] ASoC: lpass-platform: initialize dma channel number

2016-11-08 Thread Kenneth Westfield
("ASoC: lpass-platform: Fix broken pcm data usage") > Signed-off-by: Arnd Bergmann <a...@arndb.de> > --- > sound/soc/qcom/lpass-platform.c | 3 +++ > 1 file changed, 3 insertions(+) Good catch. Acked-by: Kenneth Westfield <kwest...@codeaurora.org> -- Kenneth

Re: [PATCH] ASoC: lpass-platform: initialize dma channel number

2016-11-08 Thread Kenneth Westfield
("ASoC: lpass-platform: Fix broken pcm data usage") > Signed-off-by: Arnd Bergmann > --- > sound/soc/qcom/lpass-platform.c | 3 +++ > 1 file changed, 3 insertions(+) Good catch. Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qu

Re: [PATCH 2/3] ASoC: lpass-platform: Fix broken pcm data usage

2016-10-29 Thread Kenneth Westfield
linaro.org> > --- > sound/soc/qcom/lpass-platform.c | 151 > ++-- > sound/soc/qcom/lpass.h | 1 - > 2 files changed, 67 insertions(+), 85 deletions(-) After you address Mark's comments: Acked-by: Kenneth Westfield <kwest...@codeaurora.org> -- Kenn

Re: [PATCH 2/3] ASoC: lpass-platform: Fix broken pcm data usage

2016-10-29 Thread Kenneth Westfield
151 > ++-- > sound/soc/qcom/lpass.h | 1 - > 2 files changed, 67 insertions(+), 85 deletions(-) After you address Mark's comments: Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation

Re: [PATCH 1/3] ASoC: lpass-platform: use dma_ch instead of rdma_ch/wrdma_ch

2016-10-29 Thread Kenneth Westfield
> Signed-off-by: Srinivas Kandagatla <srinivas.kandaga...@linaro.org> > --- > sound/soc/qcom/lpass-platform.c | 53 > + > 1 file changed, 17 insertions(+), 36 deletions(-) Acked-by: Kenneth Westfield <kwest...@codeaurora.org> -- Kenne

Re: [PATCH 1/3] ASoC: lpass-platform: use dma_ch instead of rdma_ch/wrdma_ch

2016-10-29 Thread Kenneth Westfield
> Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/lpass-platform.c | 53 > + > 1 file changed, 17 insertions(+), 36 deletions(-) Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovati

Re: [PATCH v3 2/2] sound: lpass-platform: Move dma channel allocation to pcmops

2016-07-05 Thread Kenneth Westfield
result in below > crash: snip... > Signed-off-by: Srinivas Kandagatla <srinivas.kandaga...@linaro.org> > --- LGTM. Acked-by: Kenneth Westfield <kwest...@codeaurora.org> -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a m

Re: [PATCH v3 2/2] sound: lpass-platform: Move dma channel allocation to pcmops

2016-07-05 Thread Kenneth Westfield
result in below > crash: snip... > Signed-off-by: Srinivas Kandagatla > --- LGTM. Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v3 2/2] ASoC: msm8916: Add msm8916-wcd codec driver

2016-06-15 Thread Kenneth Westfield
h of the register maps? Srinivas, Mark has a good point. Also, by having distinct devices and drivers; you should make use of ASoC's supporting wrappers for regmap accesses. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v3 2/2] ASoC: msm8916: Add msm8916-wcd codec driver

2016-06-15 Thread Kenneth Westfield
h of the register maps? Srinivas, Mark has a good point. Also, by having distinct devices and drivers; you should make use of ASoC's supporting wrappers for regmap accesses. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH v2 2/2] sound: lpass-platform: Move dma channel allocation to pcmops

2016-06-14 Thread Kenneth Westfield
On Tue, Jun 14, 2016 at 06:34:50AM -0700, Srinivas Kandagatla wrote: > On 14/06/16 13:49, Kenneth Westfield wrote: > >On Tue, Jun 14, 2016 at 09:30:03AM +0100, Srinivas Kandagatla wrote: > >>- data = devm_kzalloc(soc_runtime->dev, sizeof(*data), GFP_KERNEL); > >&

Re: [alsa-devel] [PATCH v2 2/2] sound: lpass-platform: Move dma channel allocation to pcmops

2016-06-14 Thread Kenneth Westfield
On Tue, Jun 14, 2016 at 06:34:50AM -0700, Srinivas Kandagatla wrote: > On 14/06/16 13:49, Kenneth Westfield wrote: > >On Tue, Jun 14, 2016 at 09:30:03AM +0100, Srinivas Kandagatla wrote: > >>- data = devm_kzalloc(soc_runtime->dev, sizeof(*data), GFP_KERNEL); > >&

Re: [PATCH v3 1/2] ASoC: msm8916: Add codec Device Tree bindings.

2016-06-14 Thread Kenneth Westfield
r click and pop interrupt. > + "hphl_cnp_int" - hphl click and pop interrupt Please use labels that more closely match the HW spec: "cdc_spk_cnp_int" "cdc_spk_clip_int" "cdc_spk_ocp_int" "mbhc_ins_rem_det1" "mbhc_but_rel_det" "mbhc

Re: [PATCH v3 1/2] ASoC: msm8916: Add codec Device Tree bindings.

2016-06-14 Thread Kenneth Westfield
r click and pop interrupt. > + "hphl_cnp_int" - hphl click and pop interrupt Please use labels that more closely match the HW spec: "cdc_spk_cnp_int" "cdc_spk_clip_int" "cdc_spk_ocp_int" "mbhc_ins_rem_det1" "mbhc_but_rel_det" "mbhc

Re: [PATCH v2 2/2] sound: lpass-platform: Move dma channel allocation to pcmops

2016-06-14 Thread Kenneth Westfield
ages(SNDRV_DMA_TYPE_DEV, dev, size, > + >dma_buffer); > if (ret) { > - dev_err(soc_runtime->dev, > - "%s() error writing to wrdmactl reg: %d\n", > - __func__, ret); > - goto capture_reg_err; > + dev_err(dev, "can't alloc capture dma buffer\n"); Ditto. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v2 2/2] sound: lpass-platform: Move dma channel allocation to pcmops

2016-06-14 Thread Kenneth Westfield
ages(SNDRV_DMA_TYPE_DEV, dev, size, > + >dma_buffer); > if (ret) { > - dev_err(soc_runtime->dev, > - "%s() error writing to wrdmactl reg: %d\n", > - __func__, ret); > - goto capture_reg_err; > + dev_err(dev, "can't alloc capture dma buffer\n"); Ditto. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v1 1/2] sound: lpass-cpu: add module licence and description

2016-06-14 Thread Kenneth Westfield
Disabling lock debugging due to kernel taint > snd_soc_lpass_cpu: Unknown symbol regmap_write (err 0) > snd_soc_lpass_cpu: Unknown symbol devm_kmalloc (err 0) > ... > > Signed-off-by: Srinivas Kandagatla <srinivas.kandaga...@linaro.org> > --- Acked-by: Kenneth Westfield

Re: [PATCH v1 1/2] sound: lpass-cpu: add module licence and description

2016-06-14 Thread Kenneth Westfield
Disabling lock debugging due to kernel taint > snd_soc_lpass_cpu: Unknown symbol regmap_write (err 0) > snd_soc_lpass_cpu: Unknown symbol devm_kmalloc (err 0) > ... > > Signed-off-by: Srinivas Kandagatla > --- Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Inn

Re: [RFC v2 1/3] ASoC: msm8916: Add codec Device Tree bindings.

2016-05-30 Thread Kenneth Westfield
"ear_ocp_int", > + "hphr_ocp_int", > + "hphl_ocp_det", > + "ear_cnp_int", > + "hphr_cnp_int"

Re: [RFC v2 3/3] ASoC: msm8916: Add msm8916-wcd codec driver

2016-05-30 Thread Kenneth Westfield
rate = TX_I2S_CTL_TX_I2S_FS_RATE_F_192_KHZ; > + break; Supported rates need to match (mentioned above). > +static const struct snd_soc_dapm_route audio_map[] = { Please use consistent name prefixes for variables (msm8916_wcd_audio_map). > +static struct snd_soc_dai_driver msm89

Re: [RFC v2 1/3] ASoC: msm8916: Add codec Device Tree bindings.

2016-05-30 Thread Kenneth Westfield
"ear_ocp_int", > + "hphr_ocp_int", > + "hphl_ocp_det", > + "ear_cnp_int", > + "hphr_cnp_int", > + "hphl_cnp_int"; > + vddio-supply = <_l5>; > + vdd-tx-rx-supply = <_l5>; > + vdd-micbias-supply = <_l13>; > + qcom,lpass-codec-core = <_codec_core>; Is there a reason the PMIC codec holds a phandle reference to the SoC codec node? Rather than having the SoC codec hold a ref to the PMIC codec? > + #sound-dai-cells = <1>; > + }; > +}; > + > +soc { > + ... > + lpass_codec_core: lpass-codec{ > + compatible = "qcom,msm8916-lpass-codec", "syscon"; > + reg = <0x0771c000 0x400>; > + }; > + > +}; > -- > 2.8.2 > -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [RFC v2 3/3] ASoC: msm8916: Add msm8916-wcd codec driver

2016-05-30 Thread Kenneth Westfield
KHZ; > + break; Supported rates need to match (mentioned above). > +static const struct snd_soc_dapm_route audio_map[] = { Please use consistent name prefixes for variables (msm8916_wcd_audio_map). > +static struct snd_soc_dai_driver msm8916_wcd_codec_dai[] = { > +

Re: [PATCH v1 00/14] ASoC: qcom: Add capture support.

2016-02-10 Thread Kenneth Westfield
does cleanup the driver > to make easy to add capture support. > > Most of these patches are acked by Kenneth. > > These patches are tested on DB410C with Headset Mic, secondary mic. With the exception of patch 13 (ASoC: qcom: add mic support), apply my ack to all remaining patches:

Re: [PATCH v1 13/14] ASoC: qcom: add mic support

2016-02-10 Thread Kenneth Westfield
if (IS_ERR_VALUE(data->wrdma_ch)) > + goto capture_alloc_err; > + > + drvdata->substream[data->wrdma_ch] = csubstream; > + > + ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, > pcm->card->dev, > + size, >dma_buffer); > + if (ret) > + goto capture_alloc_err; ... and here as well. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v1 13/14] ASoC: qcom: add mic support

2016-02-10 Thread Kenneth Westfield
if (IS_ERR_VALUE(data->wrdma_ch)) > + goto capture_alloc_err; > + > + drvdata->substream[data->wrdma_ch] = csubstream; > + > + ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, > pcm->card->dev, > + size, >dma_buffer); > + if (ret) > + goto capture_alloc_err; ... and here as well. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v1 00/14] ASoC: qcom: Add capture support.

2016-02-10 Thread Kenneth Westfield
does cleanup the driver > to make easy to add capture support. > > Most of these patches are acked by Kenneth. > > These patches are tested on DB410C with Headset Mic, secondary mic. With the exception of patch 13 (ASoC: qcom: add mic support), apply my ack to all remaining patches:

Re: [alsa-devel] [PATCH RFC 15/15] ASoC: qcom: add mic support

2016-02-02 Thread Kenneth Westfield
ivas Kandagatla > --- > sound/soc/qcom/lpass-cpu.c | 113 +++ > sound/soc/qcom/lpass-platform.c | 166 > +--- > 2 files changed, 204 insertions(+), 75 deletions(-) Acked-by: Kenneth Westfield -- Kenneth Westfield Q

Re: [alsa-devel] [PATCH RFC 14/15] ASoC: qcom: apq8016-sbc: add mic support

2016-02-02 Thread Kenneth Westfield
d, 7 insertions(+), 3 deletions(-) Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH RFC 11/15] ASoC: qcom: add wrdma register definations

2016-02-02 Thread Kenneth Westfield
On Mon, Feb 01, 2016 at 09:29:26AM -0800, Srinivas Kandagatla wrote: > This patch adds wrdma registers into the lpaif-reg.h. > > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/lpass-lpaif-reg.h | 11 +++ > 1 file changed, 11 insertions(+) Acked-by:

Re: [alsa-devel] [PATCH RFC 09/15] ASoC: qcom: rename rdma_ch_bit_map to dma_ch_bit_map

2016-02-02 Thread Kenneth Westfield
ts on patch 3 (ASoC: qcom: rename rdmactl_audif_start to dmactrl_audif_start), I believe this change could be combined with that patch. Or at the very least, have this patch be sequenced directly after patch 3. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is

Re: [alsa-devel] [PATCH RFC 13/15] ASoC: qcom: apq8016: set the correct max register for regmap

2016-02-02 Thread Kenneth Westfield
m/lpass-cpu.c | 33 +++-- > 1 file changed, 31 insertions(+), 2 deletions(-) Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH RFC 12/15] ASoC: qcom: add generic bit masks for RDMA and WRDMA

2016-02-02 Thread Kenneth Westfield
PAIF_DMACTL_WPSCNT_SHIFT) > +#define LPAIF_DMACTL_WPSCNT_FOUR (3 << LPAIF_DMACTL_WPSCNT_SHIFT) > +#define LPAIF_DMACTL_WPSCNT_SIX (5 << LPAIF_DMACTL_WPSCNT_SHIFT) > +#define LPAIF_DMACTL_WPSCNT_EIGHT(7 << LPAIF_DMACTL_WPSCNT_SHIFT) > + > +#define LPAIF_DMACTL_A

Re: [alsa-devel] [PATCH RFC 07/15] ASoC: qcom: add mic related i2s control register defines

2016-02-02 Thread Kenneth Westfield
lt;< LPAIF_I2SCTL_MICMODE_SHIFT) > +#define LPAIF_I2SCTL_MICMODE_QUAD02 (6 << LPAIF_I2SCTL_MICMODE_SHIFT) > +#define LPAIF_I2SCTL_MICMODE_6CH (7 << LPAIF_I2SCTL_MICMODE_SHIFT) > +#define LPAIF_I2SCTL_MICMODE_8CH (8 << LPAIF_I2SCTL_MICMODE_SHIFT) LPAIF_I2SCTL_MICMODE_QUAD02 shoul

Re: [alsa-devel] [PATCH RFC 10/15] ASoC: qcom: apq8016: add wrdma support

2016-02-02 Thread Kenneth Westfield
ld be done in patch 3 (ASoC: qcom: rename rdmactl_audif_start to dmactrl_audif_start). The build should fail otherwise if bisecting between this patch and patch 3. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH RFC 08/15] ASoC: qcom: add wrdma dma channel start

2016-02-02 Thread Kenneth Westfield
* at different offset to ipq806x >**/ > u32 dmactl_audif_start; > + u32 wrdma_channel_start; This patch should come before patch 6 (ASoC: qcom: ipq806x: add wrdma related register offsets) as that patch references this field. -- Kenneth Westfield Qual

Re: [alsa-devel] [PATCH RFC 05/15] ASoC: qcom: ipq806x: add error in dma allocation.

2016-02-02 Thread Kenneth Westfield
return IPQ806X_LPAIF_RDMA_CHAN_MI2S; > + else/* Capture not supported */ > + return -EINVAL; > } The comment could be read as "Capture not supported by hardware", which isn't true. Maybe "Capture currently not implemented"? -- Kenneth Westfie

Re: [alsa-devel] [PATCH RFC 06/15] ASoC: qcom: ipq806x: add wrdma related register offsets

2016-02-02 Thread Kenneth Westfield
insertions(+) Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH RFC 04/15] ASoC: qcom: pass direction to dma allocation

2016-02-02 Thread Kenneth Westfield
> Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/lpass-apq8016.c | 3 ++- > sound/soc/qcom/lpass-ipq806x.c | 2 +- > sound/soc/qcom/lpass.h | 2 +- > 3 files changed, 4 insertions(+), 3 deletions(-) Acked-by: Kenneth Westfield -- Kenneth Westfield Q

Re: [alsa-devel] [PATCH RFC 03/15] ASoC: qcom: rename rdmactl_audif_start to dmactrl_audif_start

2016-02-02 Thread Kenneth Westfield
int ret, rdma_port = pcm_data->i2s_port + v->dmactl_audif_start; I was wondering why rdma_port had not been changed as well, until I saw that in a later patch. Would it make sense to combine all changes related to removing read-only indications from identifiers to one patch? -- K

Re: [alsa-devel] [PATCH RFC 02/15] ASoC: qcom: add wrdma register details to lpass_variant

2016-02-02 Thread Kenneth Westfield
+) Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH RFC 01/15] ASoC: qcom: use snd_dma_alloc/free* apis

2016-02-02 Thread Kenneth Westfield
DRV_DMA_TYPE_DEV, pcm->card->dev, > + size, >dma_buffer); > if (ret) > return ret; > Is there a particular reason for using the soundcard device (pcm-card->dev) rather than the platform device (rt->platform->dev) for me

Re: [alsa-devel] [PATCH RFC 00/15] ASoC: qcom: Add capture support.

2016-02-02 Thread Kenneth Westfield
does cleanup the driver > to make easy to add capture support. > > These patches are tested on DB410C with Headset Mic. Thanks for posting this. I went through the changes, and it mostly looks good minus some small, easy-to-fix nits. -- Kenneth Westfield Qualcomm Innovation Center, Inc. Th

Re: [alsa-devel] [PATCH RFC 09/15] ASoC: qcom: rename rdma_ch_bit_map to dma_ch_bit_map

2016-02-02 Thread Kenneth Westfield
deletions(-) As stated in my comments on patch 3 (ASoC: qcom: rename rdmactl_audif_start to dmactrl_audif_start), I believe this change could be combined with that patch. Or at the very least, have this patch be sequenced directly after patch 3. -- Kenneth Westfield Qualcomm Innovation Center, I

Re: [alsa-devel] [PATCH RFC 07/15] ASoC: qcom: add mic related i2s control register defines

2016-02-02 Thread Kenneth Westfield
lt;< LPAIF_I2SCTL_MICMODE_SHIFT) > +#define LPAIF_I2SCTL_MICMODE_QUAD02 (6 << LPAIF_I2SCTL_MICMODE_SHIFT) > +#define LPAIF_I2SCTL_MICMODE_6CH (7 << LPAIF_I2SCTL_MICMODE_SHIFT) > +#define LPAIF_I2SCTL_MICMODE_8CH (8 << LPAIF_I2SCTL_MICMODE_SHIFT) LPAIF_I2SCTL_MICMODE_QUAD02 shoul

Re: [alsa-devel] [PATCH RFC 10/15] ASoC: qcom: apq8016: add wrdma support

2016-02-02 Thread Kenneth Westfield
ld be done in patch 3 (ASoC: qcom: rename rdmactl_audif_start to dmactrl_audif_start). The build should fail otherwise if bisecting between this patch and patch 3. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH RFC 13/15] ASoC: qcom: apq8016: set the correct max register for regmap

2016-02-02 Thread Kenneth Westfield
--- > sound/soc/qcom/lpass-cpu.c | 33 +++-- > 1 file changed, 31 insertions(+), 2 deletions(-) Acked-by: Kenneth Westfield <kwest...@codeaurora.org> -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member o

Re: [alsa-devel] [PATCH RFC 03/15] ASoC: qcom: rename rdmactl_audif_start to dmactrl_audif_start

2016-02-02 Thread Kenneth Westfield
int ret, rdma_port = pcm_data->i2s_port + v->dmactl_audif_start; I was wondering why rdma_port had not been changed as well, until I saw that in a later patch. Would it make sense to combine all changes related to removing read-only indications from identifiers to one patch? -- K

Re: [alsa-devel] [PATCH RFC 12/15] ASoC: qcom: add generic bit masks for RDMA and WRDMA

2016-02-02 Thread Kenneth Westfield
PAIF_DMACTL_WPSCNT_SHIFT) > +#define LPAIF_DMACTL_WPSCNT_FOUR (3 << LPAIF_DMACTL_WPSCNT_SHIFT) > +#define LPAIF_DMACTL_WPSCNT_SIX (5 << LPAIF_DMACTL_WPSCNT_SHIFT) > +#define LPAIF_DMACTL_WPSCNT_EIGHT(7 << LPAIF_DMACTL_WPSCNT_SHIFT) > + > +#define LPAIF_DMACTL_A

Re: [alsa-devel] [PATCH RFC 05/15] ASoC: qcom: ipq806x: add error in dma allocation.

2016-02-02 Thread Kenneth Westfield
return IPQ806X_LPAIF_RDMA_CHAN_MI2S; > + else/* Capture not supported */ > + return -EINVAL; > } The comment could be read as "Capture not supported by hardware", which isn't true. Maybe "Capture currently not implemented"? -- Kenneth Westfie

Re: [alsa-devel] [PATCH RFC 06/15] ASoC: qcom: ipq806x: add wrdma related register offsets

2016-02-02 Thread Kenneth Westfield
4 > 1 file changed, 4 insertions(+) Acked-by: Kenneth Westfield <kwest...@codeaurora.org> -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH RFC 08/15] ASoC: qcom: add wrdma dma channel start

2016-02-02 Thread Kenneth Westfield
* at different offset to ipq806x >**/ > u32 dmactl_audif_start; > + u32 wrdma_channel_start; This patch should come before patch 6 (ASoC: qcom: ipq806x: add wrdma related register offsets) as that patch references this field. -- Kenneth Westfield Qual

Re: [alsa-devel] [PATCH RFC 11/15] ASoC: qcom: add wrdma register definations

2016-02-02 Thread Kenneth Westfield
e changed, 11 insertions(+) Acked-by: Kenneth Westfield <kwest...@codeaurora.org> -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH RFC 04/15] ASoC: qcom: pass direction to dma allocation

2016-02-02 Thread Kenneth Westfield
> Signed-off-by: Srinivas Kandagatla <srinivas.kandaga...@linaro.org> > --- > sound/soc/qcom/lpass-apq8016.c | 3 ++- > sound/soc/qcom/lpass-ipq806x.c | 2 +- > sound/soc/qcom/lpass.h | 2 +- > 3 files changed, 4 insertions(+), 3 deletions(-) Acked-by: Kennet

Re: [alsa-devel] [PATCH RFC 15/15] ASoC: qcom: add mic support

2016-02-02 Thread Kenneth Westfield
ivas Kandagatla <srinivas.kandaga...@linaro.org> > --- > sound/soc/qcom/lpass-cpu.c | 113 +++ > sound/soc/qcom/lpass-platform.c | 166 > +--- > 2 files changed, 204 insertions(+), 75 deletions(-) Acked-by: Kennet

Re: [alsa-devel] [PATCH RFC 14/15] ASoC: qcom: apq8016-sbc: add mic support

2016-02-02 Thread Kenneth Westfield
10 +++--- > 1 file changed, 7 insertions(+), 3 deletions(-) Acked-by: Kenneth Westfield <kwest...@codeaurora.org> -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH RFC 00/15] ASoC: qcom: Add capture support.

2016-02-02 Thread Kenneth Westfield
does cleanup the driver > to make easy to add capture support. > > These patches are tested on DB410C with Headset Mic. Thanks for posting this. I went through the changes, and it mostly looks good minus some small, easy-to-fix nits. -- Kenneth Westfield Qualcomm Innovation Center, Inc. Th

Re: [alsa-devel] [PATCH RFC 01/15] ASoC: qcom: use snd_dma_alloc/free* apis

2016-02-02 Thread Kenneth Westfield
DRV_DMA_TYPE_DEV, pcm->card->dev, > + size, >dma_buffer); > if (ret) > return ret; > Is there a particular reason for using the soundcard device (pcm-card->dev) rather than the platform device (rt->platform->dev) for me

Re: [alsa-devel] [PATCH RFC 02/15] ASoC: qcom: add wrdma register details to lpass_variant

2016-02-02 Thread Kenneth Westfield
+++ > 1 file changed, 3 insertions(+) Acked-by: Kenneth Westfield <kwest...@codeaurora.org> -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [alsa-devel] [PATCH 1/2] ASoC: qcom: change PTR_ERR argument

2015-09-03 Thread Kenneth Westfield
dev_warn(>dev, > "%s() error getting mi2s-osr-clk: %ld\n", > __func__, > PTR_ERR(drvdata->mi2s_osr_clk[dai_id])); > } > > Is that intentional? Yes, tha

Re: [alsa-devel] [PATCH 1/2] ASoC: qcom: change PTR_ERR argument

2015-09-03 Thread Kenneth Westfield
> > > just one minor: > the dev_warn() just before says: " error getting mi2s-osr-clk" may be it > should be "warnig ..." > That will make it more easy to rep for real error in a log. "error [gs]etting" could be re-phrased to "could not [gs]et&qu

Re: [alsa-devel] [PATCH 1/2] ASoC: qcom: change PTR_ERR argument

2015-09-03 Thread Kenneth Westfield
ERR(x) || ...) { > ... when any > when != IS_ERR(...) > ( >PTR_ERR(x) > | > * PTR_ERR(y) > ) > ... when any > } > // > > Signed-off-by: Julia Lawall > > --- The patch itself looks good. Thanks. Acked-by: Kenneth Westfield -- Kenneth Wes

Re: [alsa-devel] [PATCH 1/2] ASoC: qcom: change PTR_ERR argument

2015-09-03 Thread Kenneth Westfield
> > > just one minor: > the dev_warn() just before says: " error getting mi2s-osr-clk" may be it > should be "warnig ..." > That will make it more easy to rep for real error in a log. "error [gs]etting" could be re-phrased to "could not [gs]et&qu

Re: [alsa-devel] [PATCH 1/2] ASoC: qcom: change PTR_ERR argument

2015-09-03 Thread Kenneth Westfield
ERR(x) || ...) { > ... when any > when != IS_ERR(...) > ( >PTR_ERR(x) > | > * PTR_ERR(y) > ) > ... when any > } > // > > Signed-off-by: Julia Lawall <julia.law...@lip6.fr> > > --- The patch itself looks good. Thanks. Acked-by: Kenne

Re: [alsa-devel] [PATCH 1/2] ASoC: qcom: change PTR_ERR argument

2015-09-03 Thread Kenneth Westfield
dev_warn(>dev, > "%s() error getting mi2s-osr-clk: %ld\n", > __func__, > PTR_ERR(drvdata->mi2s_osr_clk[dai_id])); > } > > Is that intentional? Yes, tha

[PATCH 2/2] ASoC: qcom: remove Kconfig deps from variant configs

2015-06-18 Thread Kenneth Westfield
From: Kenneth Westfield Remove the SND_SOC_QCOM dependency from the variant configs. The board configs, which select the variants, already have this dependency. Signed-off-by: Kenneth Westfield --- sound/soc/qcom/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/qcom

[PATCH 1/2] ASoC: qcom: move board Kconfig deps to parent config

2015-06-18 Thread Kenneth Westfield
From: Kenneth Westfield Rather than have each board define the same set of dependencies; move the common dependencies to the SND_SOC_QCOM parent config. Signed-off-by: Kenneth Westfield --- sound/soc/qcom/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound

[PATCH 1/2] ASoC: qcom: move board Kconfig deps to parent config

2015-06-18 Thread Kenneth Westfield
From: Kenneth Westfield kwest...@codeaurora.org Rather than have each board define the same set of dependencies; move the common dependencies to the SND_SOC_QCOM parent config. Signed-off-by: Kenneth Westfield kwest...@codeaurora.org --- sound/soc/qcom/Kconfig | 5 +++-- 1 file changed, 3

[PATCH 2/2] ASoC: qcom: remove Kconfig deps from variant configs

2015-06-18 Thread Kenneth Westfield
From: Kenneth Westfield kwest...@codeaurora.org Remove the SND_SOC_QCOM dependency from the variant configs. The board configs, which select the variants, already have this dependency. Signed-off-by: Kenneth Westfield kwest...@codeaurora.org --- sound/soc/qcom/Kconfig | 2 -- 1 file changed, 2

[PATCH v2] ASoC: qcom: Remove QCOM dependency from LPASS variants

2015-06-02 Thread Kenneth Westfield
From: Kenneth Westfield Building with the following config options ... CONFIG_COMPILE_TEST=y # CONFIG_SND_SOC_QCOM is not set CONFIG_SND_SOC_LPASS_IPQ806X=m CONFIG_SND_SOC_STORM=m ... causes the following build warning: warning: (SND_SOC_STORM) selects SND_SOC_LPASS_IPQ806X which has

[PATCH v2] ASoC: qcom: Remove QCOM dependency from LPASS variants

2015-06-02 Thread Kenneth Westfield
From: Kenneth Westfield kwest...@codeaurora.org Building with the following config options ... CONFIG_COMPILE_TEST=y # CONFIG_SND_SOC_QCOM is not set CONFIG_SND_SOC_LPASS_IPQ806X=m CONFIG_SND_SOC_STORM=m ... causes the following build warning: warning: (SND_SOC_STORM) selects

[PATCH] ASoC: qcom: Remove QCOM dependency from LPASS variants

2015-06-01 Thread Kenneth Westfield
From: Kenneth Westfield Remove the dependency on SND_SOC_QCOM from the user- invisible LPASS variant options. This will fix randconfig build errors. Reported-by: Jim Davis Fixes: dc1ebd1811e9 ("ASoC: qcom: Add apq8016 lpass driver support") Fixes: 9bae4880acee ("ASoC: qco

[PATCH] ASoC: qcom: Remove QCOM dependency from LPASS variants

2015-06-01 Thread Kenneth Westfield
From: Kenneth Westfield kwest...@codeaurora.org Remove the dependency on SND_SOC_QCOM from the user- invisible LPASS variant options. This will fix randconfig build errors. Reported-by: Jim Davis jim.ep...@gmail.com Fixes: dc1ebd1811e9 (ASoC: qcom: Add apq8016 lpass driver support) Fixes

Re: [PATCH v2 00/13] ASoC: qcom: add support to apq8016 audio

2015-05-17 Thread Kenneth Westfield
, msm8916-mtp boards and Kenneth tested this patchset on > ipq806x Storm board too. Other than the two comments on patches 5 and 6, everything else looks fine to me. Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a

Re: [PATCH v2 06/13] ASoC: qcom: make osr clock optional

2015-05-17 Thread Kenneth Westfield
PTR_ERR(drvdata->mi2s_osr_clk[dai_id])); > } NIT: Perhaps make this a dev_warn or dev_notice log message, as it's no longer really an error. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora

Re: [PATCH v2 05/13] ASoC: qcom: support bitclk and osrclk per i2s port

2015-05-17 Thread Kenneth Westfield
> + if (IS_ERR(drvdata->mi2s_bit_clk[dai_id])) { > + dev_err(>dev, > + "%s() error getting mi2s-bit-clk: %ld\n", > + __func__, > PTR_ERR(drvdata->mi2s_bit_clk[i])); > +

Re: [PATCH v2 06/13] ASoC: qcom: make osr clock optional

2015-05-17 Thread Kenneth Westfield
])); } NIT: Perhaps make this a dev_warn or dev_notice log message, as it's no longer really an error. -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from

Re: [PATCH v2 00/13] ASoC: qcom: add support to apq8016 audio

2015-05-17 Thread Kenneth Westfield
the two comments on patches 5 and 6, everything else looks fine to me. Acked-by: Kenneth Westfield kwest...@codeaurora.org -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v2 05/13] ASoC: qcom: support bitclk and osrclk per i2s port

2015-05-17 Thread Kenneth Westfield
, + %s() error getting mi2s-bit-clk: %ld\n, + __func__, PTR_ERR(drvdata-mi2s_bit_clk[i])); + return PTR_ERR(drvdata-mi2s_bit_clk[dai_id]); + } } -- Kenneth Westfield Qualcomm Innovation Center, Inc

Re: [alsa-devel] [PATCH] ASoC: skip legacy dai naming if dai driver has all the information

2015-05-15 Thread Kenneth Westfield
s can work around this issue by only using > dai->driver->id, but this patch attempts to fix the actual issue. > > Suggested-by: Lars-Peter Clausen > Signed-off-by: Srinivas Kandagatla > --- Acked-by: Kenneth Westfield -- Kenneth Westfield Qualcomm Innovation Center, Inc. The

Re: [alsa-devel] [PATCH] ASoC: skip legacy dai naming if dai driver has all the information

2015-05-15 Thread Kenneth Westfield
, but this patch attempts to fix the actual issue. Suggested-by: Lars-Peter Clausen l...@metafoo.de Signed-off-by: Srinivas Kandagatla srinivas.kandaga...@linaro.org --- Acked-by: Kenneth Westfield kwest...@codeaurora.org -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center

Re: [PATCH v1 02/13] ASoC: qcom: move ipq806x specific bits out of lpass driver.

2015-05-14 Thread Kenneth Westfield
x_lpass_cpu_platform_driver); +module_platform_driver(ipq806x_lpass_cpu_platform_driver); MODULE_DESCRIPTION("QTi LPASS CPU Driver"); MODULE_LICENSE("GPL v2"); ---><- > + > +MODULE_DESCRIPTION("QTi LPASS C

Re: [PATCH v1 11/13] ASoC: qcom: add apq8016 sound card support

2015-05-14 Thread Kenneth Westfield
select SND_SOC_LPASS_APQ8016 > + help > + Support for Qualcomm Technologies LPASS audio block in > + APQ8016 SOC-based systems. > + Say Y if you want to use audio devices on MI2S -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Inn

Re: [PATCH v1 05/13] ASoC: qcom: support bitclk and osrclk per i2s port

2015-05-14 Thread Kenneth Westfield
e, "mi2s-bit-clk%d", i); - else - sprintf(clk_name, "mi2s-bit-clk"); + for (i = 0; i < LPASS_MAX_MI2S_PORTS; i++) { + sprintf(clk_name, "mi2s-bit-clk%d", i); drvdata->mi2s_bit_clk[i] = devm_clk_get(>dev, clk_name);

Re: [PATCH v1 10/13] ASoC: qcom: Add apq8016 lpass driver support

2015-05-14 Thread Kenneth Westfield
__func__, > PTR_ERR(drvdata->pcnoc_sway_clk)); > + return PTR_ERR(drvdata->pcnoc_sway_clk); > + } > + > + ret = clk_prepare_enable(drvdata->pcnoc_sway_clk); > + if (ret) { > + dev_err(>dev, "%s() Error enabling ahbix_clk

Re: [PATCH v1 10/13] ASoC: qcom: Add apq8016 lpass driver support

2015-05-14 Thread Kenneth Westfield
; + } -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

Re: [PATCH v1 05/13] ASoC: qcom: support bitclk and osrclk per i2s port

2015-05-14 Thread Kenneth Westfield
-mi2s_bit_clk[i]); } } -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe

Re: [PATCH v1 11/13] ASoC: qcom: add apq8016 sound card support

2015-05-14 Thread Kenneth Westfield
LPASS audio block in + APQ8016 SOC-based systems. + Say Y if you want to use audio devices on MI2S -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v1 02/13] ASoC: qcom: move ipq806x specific bits out of lpass driver.

2015-05-14 Thread Kenneth Westfield
); + +MODULE_DESCRIPTION(QTi LPASS CPU Driver); +MODULE_LICENSE(GPL v2); -- Kenneth Westfield Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line unsubscribe linux

Re: [alsa-devel] [RFC PATCH 00/14] ASoC: qcom: add support to apq8016 audio

2015-05-11 Thread Kenneth Westfield
On Tue, May 05, 2015 at 11:54:16PM -0700, Srinivas Kandagatla wrote: > Hi Kenneth, > > On 06/05/15 06:47, Kenneth Westfield wrote: > >>> > >>>I will test the patches and let you know by Wednesday. Also, I posted > >>>some comments, but Patrick should

Re: [alsa-devel] [RFC PATCH 00/14] ASoC: qcom: add support to apq8016 audio

2015-05-11 Thread Kenneth Westfield
On Tue, May 05, 2015 at 11:54:16PM -0700, Srinivas Kandagatla wrote: Hi Kenneth, On 06/05/15 06:47, Kenneth Westfield wrote: I will test the patches and let you know by Wednesday. Also, I posted some comments, but Patrick should be posting his comments separately later next week

Re: [RFC PATCH 00/14] ASoC: qcom: add support to apq8016 audio

2015-05-05 Thread Kenneth Westfield
On Sat, May 02, 2015 at 04:57:04PM -0700, Kenneth Westfield wrote: > On Thu, Apr 30, 2015 at 06:15:48PM +0100, Srinivas Kandagatla wrote: > > Hi All, > > > > This patchset adds apq8016 audio support into lpass driver. Existing > Lpass > > driver can not be used as-it

Re: [alsa-devel] [RFC PATCH 03/14] ASoC: qcom: move ipq806x specific bits out of lpass driver.

2015-05-05 Thread Kenneth Westfield
On Tue, May 05, 2015 at 12:17:23AM -0700, Srinivas Kandagatla wrote: > On 05/05/15 06:19, Kenneth Westfield wrote: > >>>> >+enum lpaif_i2s_ports { > >>>> >+ LPAIF_I2S_PORT_MIN = 0, > >>>>

Re: [alsa-devel] [RFC PATCH 14/14] ASoC: qcom: document apq8016 machine driver bindings

2015-05-05 Thread Kenneth Westfield
On Tue, May 05, 2015 at 12:17:01AM -0700, Srinivas Kandagatla wrote: > On 03/05/15 01:03, Kenneth Westfield wrote: > >On Thu, Apr 30, 2015 at 06:18:26PM +0100, Srinivas Kandagatla wrote: > >>This patch adds bindings for apq8016 machine driver. > >>On APQ8016 4 MI2S can

Re: [alsa-devel] [RFC PATCH 03/14] ASoC: qcom: move ipq806x specific bits out of lpass driver.

2015-05-05 Thread Kenneth Westfield
On Tue, May 05, 2015 at 12:16:46AM -0700, Srinivas Kandagatla wrote: > On 03/05/15 00:57, Kenneth Westfield wrote: > >On Thu, Apr 30, 2015 at 06:16:53PM +0100, Srinivas Kandagatla wrote: > >>This patch tries to make the lpass driver more generic by moving the > >&g

Re: [alsa-devel] [RFC PATCH 03/14] ASoC: qcom: move ipq806x specific bits out of lpass driver.

2015-05-05 Thread Kenneth Westfield
On Tue, May 05, 2015 at 12:17:23AM -0700, Srinivas Kandagatla wrote: On 05/05/15 06:19, Kenneth Westfield wrote: +enum lpaif_i2s_ports { + LPAIF_I2S_PORT_MIN = 0, + + LPAIF_I2S_PORT_CODEC_SPK= 0, + LPAIF_I2S_PORT_CODEC_MIC= 1

Re: [RFC PATCH 00/14] ASoC: qcom: add support to apq8016 audio

2015-05-05 Thread Kenneth Westfield
On Sat, May 02, 2015 at 04:57:04PM -0700, Kenneth Westfield wrote: On Thu, Apr 30, 2015 at 06:15:48PM +0100, Srinivas Kandagatla wrote: Hi All, This patchset adds apq8016 audio support into lpass driver. Existing Lpass driver can not be used as-it-is for apq8016 as it contains code

Re: [alsa-devel] [RFC PATCH 14/14] ASoC: qcom: document apq8016 machine driver bindings

2015-05-05 Thread Kenneth Westfield
On Tue, May 05, 2015 at 12:17:01AM -0700, Srinivas Kandagatla wrote: On 03/05/15 01:03, Kenneth Westfield wrote: On Thu, Apr 30, 2015 at 06:18:26PM +0100, Srinivas Kandagatla wrote: This patch adds bindings for apq8016 machine driver. On APQ8016 4 MI2S can be configured to different sinks like

Re: [alsa-devel] [RFC PATCH 03/14] ASoC: qcom: move ipq806x specific bits out of lpass driver.

2015-05-05 Thread Kenneth Westfield
On Tue, May 05, 2015 at 12:16:46AM -0700, Srinivas Kandagatla wrote: On 03/05/15 00:57, Kenneth Westfield wrote: On Thu, Apr 30, 2015 at 06:16:53PM +0100, Srinivas Kandagatla wrote: This patch tries to make the lpass driver more generic by moving the ipq806x specific bits out of the cpu

Re: [RFC PATCH 03/14] ASoC: qcom: move ipq806x specific bits out of lpass driver.

2015-05-04 Thread Kenneth Westfield
On Sat, May 02, 2015 at 04:57:38PM -0700, Kenneth Westfield wrote: > On Thu, Apr 30, 2015 at 06:16:53PM +0100, Srinivas Kandagatla wrote: > > This patch tries to make the lpass driver more generic by moving the > > ipq806x specific bits out of the cpu and platform driver, also allow

Re: [RFC PATCH 03/14] ASoC: qcom: move ipq806x specific bits out of lpass driver.

2015-05-04 Thread Kenneth Westfield
On Sat, May 02, 2015 at 04:57:38PM -0700, Kenneth Westfield wrote: On Thu, Apr 30, 2015 at 06:16:53PM +0100, Srinivas Kandagatla wrote: This patch tries to make the lpass driver more generic by moving the ipq806x specific bits out of the cpu and platform driver, also allows the SOC

  1   2   >