From: Markus Elfring <Markus.Elfring@web.de>
To: Zhu Jun <zhujun2@cmss.chinamobile.com>,
linux-sound@vger.kernel.org, "Geoffrey D. Bennett" <g@b4.vu>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ALSA: scarlett2: Add error check after retrieving PEQ filter values
Date: Tue, 8 Oct 2024 07:43:24 +0200 [thread overview]
Message-ID: <8dc6b92a-7906-4f03-969d-b61ed981f4d9@web.de> (raw)
In-Reply-To: <20241008031947.10906-1-zhujun2@cmss.chinamobile.com>
Please check the subsystem specification once more.
> Add error check after retrieving PEQ filter values in scarlett2_update_filter_values
> that ensure function returns error if PEQ filter value retrieval fails
* It is usually preferred to end a sentence with a dot, isn't it?
* Would you like to add any tags (like “Fixes” and “Cc”) accordingly?
…
> +++ b/sound/usb/mixer_scarlett2.c
> @@ -5614,6 +5614,9 @@ static int scarlett2_update_filter_values(struct usb_mixer_interface *mixer)
> SCARLETT2_BIQUAD_COEFFS,
> peq_flt_values);
>
> + if (err < 0)
> + return err;
> +
> for (i = 0, dst_idx = 0; i < info->dsp_input_count; i++) {
…
I suggest to omit a blank line before the return value check.
Regards,
Markus
next prev parent reply other threads:[~2024-10-08 5:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-08 3:19 [PATCH] Sound:mixer_scarlett2:Add " Zhu Jun
2024-10-08 5:43 ` Markus Elfring [this message]
2024-10-09 7:32 [PATCH] ALSA: scarlett2: Add " Zhu Jun
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=8dc6b92a-7906-4f03-969d-b61ed981f4d9@web.de \
--to=markus.elfring@web.de \
--cc=g@b4.vu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
--cc=zhujun2@cmss.chinamobile.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
all inboxes | Powered by JetHome®