Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
To: Alexey Klimov <alexey.klimov@linaro.org>
Cc: Srinivas Kandagatla <srini@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
	Takashi Iwai <tiwai@suse.com>,
	linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org, kernel@oss.qualcomm.com,
	prasad.kumpatla@oss.qualcomm.com
Subject: Re: [PATCH v2] ASoC: codecs: lpass-macro: Add support for channel map mixer control
Date: Fri, 3 Oct 2025 12:30:45 +0530	[thread overview]
Message-ID: <ec31379a-4bc9-4cc5-b90e-ca380f5334aa@oss.qualcomm.com> (raw)
In-Reply-To: <DD71KONODHKJ.15RI1DXF5T6PJ@linaro.org>



On 10/1/2025 7:36 PM, Alexey Klimov wrote:
> On Tue Sep 2, 2025 at 7:23 AM BST, Mohammad Rafi Shaik wrote:
>> Introduce the channel map mixer control support for LPASS macro
>> codec Digital Audio Interfaces (DAIs). The channel map mixer controls
>> are required by APPS to configure usecase-specific audio routing and
> 
> What is APPS here? Will be good to have this abbreviation or acronym explained.
> 

Ack,

will write proper commit description.

>> channel mapping.
>>
>> Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
>> ---
>> Changes in v2:
>> - Updated patch with improved commit description..
>> - Link to v1: https://lore.kernel.org/linux-sound/20240930053111.3986838-1-quic_mohs@quicinc.com/
>> ---
>>   sound/soc/codecs/lpass-macro-common.c | 55 +++++++++++++++++++++++++++
>>   sound/soc/codecs/lpass-macro-common.h |  2 +
>>   sound/soc/codecs/lpass-rx-macro.c     | 12 ++++++
>>   sound/soc/codecs/lpass-tx-macro.c     |  9 +++++
>>   sound/soc/codecs/lpass-va-macro.c     |  9 +++++
>>   sound/soc/codecs/lpass-wsa-macro.c    | 12 ++++++
>>   6 files changed, 99 insertions(+)
>>
>> diff --git a/sound/soc/codecs/lpass-macro-common.c b/sound/soc/codecs/lpass-macro-common.c
>> index 6e3b8d0897dd..777af4885245 100644
>> --- a/sound/soc/codecs/lpass-macro-common.c
>> +++ b/sound/soc/codecs/lpass-macro-common.c
>> @@ -8,12 +8,67 @@
>>   #include <linux/platform_device.h>
>>   #include <linux/pm_domain.h>
>>   #include <linux/pm_runtime.h>
>> +#include <sound/control.h>
>> +#include <sound/pcm.h>
>> +#include <sound/soc.h>
>>   
>>   #include "lpass-macro-common.h"
>>   
>>   static DEFINE_MUTEX(lpass_codec_mutex);
>>   static enum lpass_codec_version lpass_codec_version;
>>   
>> +static int lpass_macro_chmap_ctl_get(struct snd_kcontrol *kcontrol,
>> +				     struct snd_ctl_elem_value *ucontrol)
>> +{
>> +	struct snd_pcm_chmap *info = snd_kcontrol_chip(kcontrol);
>> +	struct snd_soc_dai *dai = info->private_data;
>> +	u32 *chmap_data = NULL;
> 
> You probably don't need to set it to NULL here, if it will be overwritten
> by kzalloc() call few lines below
>

Ack,

will fix in next version.

Thanks & Regards,
Rafi.


>> +	u32 rx_ch_cnt = 0;
>> +	u32 tx_ch_cnt = 0;
>> +	u32 rx_ch, tx_ch;
>> +
>> +	chmap_data = kzalloc(sizeof(u32) * 2, GFP_KERNEL);
> 
> here.
> 
> [..]
> 
> Thanks,
> Alexey
> 
> 


  reply	other threads:[~2025-10-03  7:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-02  6:23 [PATCH v2] ASoC: codecs: lpass-macro: Add support for channel map mixer control Mohammad Rafi Shaik
2025-09-02 12:58 ` Konrad Dybcio
2025-09-29  5:52   ` Mohammad Rafi Shaik
2025-10-01 14:06 ` Alexey Klimov
2025-10-03  7:00   ` Mohammad Rafi Shaik [this message]
2025-10-04 13:10 ` Srinivas Kandagatla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ec31379a-4bc9-4cc5-b90e-ca380f5334aa@oss.qualcomm.com \
    --to=mohammad.rafi.shaik@oss.qualcomm.com \
    --cc=alexey.klimov@linaro.org \
    --cc=broonie@kernel.org \
    --cc=kernel@oss.qualcomm.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=prasad.kumpatla@oss.qualcomm.com \
    --cc=srini@kernel.org \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox