lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e2c668dd-aad5-db06-cc92-e27c57cf598e@linaro.org>
Date:   Tue, 13 Mar 2018 13:51:28 +0000
From:   Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To:     Rohit Kumar <rohitkr@...eaurora.org>, andy.gross@...aro.org,
        broonie@...nel.org, linux-arm-msm@...r.kernel.org,
        alsa-devel@...a-project.org, robh+dt@...nel.org
Cc:     mark.rutland@....com, devicetree@...r.kernel.org,
        bgoswami@...eaurora.org, rohkumar@....qualcomm.com,
        gregkh@...uxfoundation.org, plai@...eaurora.org,
        lgirdwood@...il.com, tiwai@...e.com, david.brown@...aro.org,
        linux-arm-kernel@...ts.infradead.org, spatakok@....qualcomm.com,
        linux-kernel@...r.kernel.org
Subject: Re: [alsa-devel] [PATCH v4 07/24] ASoC: qdsp6: q6afe: Add q6afe
 driver

Thanks Rohit for the review,

On 13/03/18 11:29, Rohit Kumar wrote:
> 
> 
> On 3/10/2018 7:54 AM, srinivas.kandagatla@...aro.org wrote:
>> From: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
>>
>> This patch adds support to Q6AFE (Audio Front End) module on Q6DSP.
>>
> [..]
>> +        if (res->status) {
>> +            dev_err(afe->dev, "cmd = 0x%x returned error = 0x%x\n",
>> +                res->opcode, res->status);
>> +        }
>> +        switch (res->opcode) {
>> +        case AFE_PORT_CMD_SET_PARAM_V2:
>> +        case AFE_PORT_CMD_DEVICE_STOP:
>> +        case AFE_PORT_CMD_DEVICE_START:
> 
> case AFE_SVC_CMD_SET_PARAM: needs to be added
thanks for spotting this, Will add this back

>> +            port = afe_find_port(afe, data->token);
>> +            if (port) {
>> +                port->result = *res;
>> +                wake_up(&port->wait);
>> +            }
> [..]
>> +
>> +static int q6afe_port_set_param_v2(struct q6afe_port *port, void *data,
>> +                   int param_id, int psize)
>> +{

...
>> +    ret = afe_apr_send_pkt(afe, data, port);
>> +    if (ret)
>> +        dev_err(afe->dev, "AFE enable for port 0x%x failed %d\n",
> 
> we should add %s to distinguish different functions with similar error 
> logs. Also, q6afe_port_set_param_v2() can be called for different 
> purpose.  AFE enable for port 0x%x failed is suitable only for port 
> start failure. Error message needs to be updated here.
> 
q6afe_callback already has a extra level of error message which shows 
the opcode and error code in failure cases.

thanks,
srini

>> +               port_id, ret);
>> +
>> +
>> +    return ret;
>> +}
>> +

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ