From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Takashi Iwai <tiwai@suse.de>
Cc: linux-sound@vger.kernel.org, Clemens Ladisch <clemens@ladisch.de>
Subject: Re: [PATCH 00/19] ALSA: firewire: Use auto-cleanup macros
Date: Thu, 28 Aug 2025 21:56:23 +0900 [thread overview]
Message-ID: <20250828125623.GA346302@workstation.local> (raw)
In-Reply-To: <20250827092017.29014-1-tiwai@suse.de>
Hi,
On Wed, Aug 27, 2025 at 11:19:54AM +0200, Takashi Iwai wrote:
> This is another patch set for cleaning up the code with the recent
> auto-cleanup macros like guard() & co, applied to FireWire sound
> drivers.
>
> Only code refactoring, and no behavior changes intended.
>
>
> Takashi
Thanks for the patchset. I have the similar series in my local, but not
yet completed. The patchset mostly looks good to me, but I can find
some nitpickings.
> ===
>
> Takashi Iwai (19):
> ALSA: firewire: bebob: Use guard() for mutex locks
> ALSA: firewire: dice: Use guard() for mutex locks
> ALSA: firewire: Use guard() for mutex locks
The patch title misses 'digi00x: '.
> ALSA: firewire: fireworks: Use guard() for mutex locks
> ALSA: firewire: motu: Use guard() for mutex locks
> ALSA: firewire: oxfw: Use guard() for mutex locks
> ALSA: firewire: tascam: Use guard() for mutex locks
> ALSA: firewire: fireface: Use guard() for mutex locks
> ALSA: firewire: isight: Use guard() for mutex locks
> ALSA: firewire: lib: Use guard() for mutex locks
> ALSA: firewire: bebob: Use guard() for spin locks
> ALSA: firewire: dice: Use guard() for spin locks
> ALSA: firewire: digi00x: Use guard() for spin locks
> ALSA: firewire: fireface: Use guard() for spin locks
> ALSA: firewire: fireworks: Use guard() for spin locks
> ALSA: firewire: motu: Use guard() for spin locks
> ALSA: firewire: oxfw: Use guard() for spin locks
> ALSA: firewire: tascam: Use guard() for spin locks
> ALSA: firewire: lib: Use guard() for spin locks
In my opinion, 'scoped_guard()' is available without blaces when the
inner component is just one line, however the above patches include
such lines. Additionally, some parts of scoped_guard() are followed by
useless blank line.
$ git grep -n -A2 scoped_guard sound/firewire/dice/dice-pcm.c
sound/firewire/dice/dice-pcm.c:199: scoped_guard(mutex, &dice->mutex) {
sound/firewire/dice/dice-pcm.c-200-
sound/firewire/dice/dice-pcm.c-201- // When source of clock is not internal or any stream is reserved for
--
sound/firewire/dice/dice-pcm.c:302: scoped_guard(mutex, &dice->mutex) {
sound/firewire/dice/dice-pcm.c-303- err = snd_dice_stream_start_duplex(dice);
sound/firewire/dice/dice-pcm.c-304- }
--
sound/firewire/dice/dice-pcm.c:316: scoped_guard(mutex, &dice->mutex) {
sound/firewire/dice/dice-pcm.c-317- err = snd_dice_stream_start_duplex(dice);
sound/firewire/dice/dice-pcm.c-318- }
Thanks
Takashi Sakamoto
next prev parent reply other threads:[~2025-08-28 12:56 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-27 9:19 [PATCH 00/19] ALSA: firewire: Use auto-cleanup macros Takashi Iwai
2025-08-27 9:19 ` [PATCH 01/19] ALSA: firewire: bebob: Use guard() for mutex locks Takashi Iwai
2025-08-27 9:19 ` [PATCH 02/19] ALSA: firewire: dice: " Takashi Iwai
2025-08-27 9:19 ` [PATCH 03/19] ALSA: firewire: " Takashi Iwai
2025-08-27 9:19 ` [PATCH 04/19] ALSA: firewire: fireworks: " Takashi Iwai
2025-08-27 9:19 ` [PATCH 05/19] ALSA: firewire: motu: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 06/19] ALSA: firewire: oxfw: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 07/19] ALSA: firewire: tascam: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 08/19] ALSA: firewire: fireface: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 09/19] ALSA: firewire: isight: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 10/19] ALSA: firewire: lib: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 11/19] ALSA: firewire: bebob: Use guard() for spin locks Takashi Iwai
2025-08-27 9:20 ` [PATCH 12/19] ALSA: firewire: dice: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 13/19] ALSA: firewire: digi00x: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 14/19] ALSA: firewire: fireface: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 15/19] ALSA: firewire: fireworks: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 16/19] ALSA: firewire: motu: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 17/19] ALSA: firewire: oxfw: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 18/19] ALSA: firewire: tascam: " Takashi Iwai
2025-08-27 9:20 ` [PATCH 19/19] ALSA: firewire: lib: " Takashi Iwai
2025-08-28 12:56 ` Takashi Sakamoto [this message]
2025-08-28 13:23 ` [PATCH 00/19] ALSA: firewire: Use auto-cleanup macros Takashi Iwai
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=20250828125623.GA346302@workstation.local \
--to=o-takashi@sakamocchi.jp \
--cc=clemens@ladisch.de \
--cc=linux-sound@vger.kernel.org \
--cc=tiwai@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.