Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v2] ALSA: Fix typos in comments across various files
@ 2024-09-24  4:17 Yu Jiaoliang
  2024-09-30  7:52 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Yu Jiaoliang @ 2024-09-24  4:17 UTC (permalink / raw)
  To: Vinod Koul, Jaroslav Kysela, Takashi Iwai, Christian Brauner,
	Mark Brown, Al Viro, Pavel Hofman, alsa-devel, linux-sound,
	linux-kernel
  Cc: opensource.kernel

This patch fixes typos in comments within the ALSA subsystem.
These changes improve code readability without affecting
functionality.

Signed-off-by: Yu Jiaoliang <yujiaoliang@vivo.com>
---
v2: Update commit message.
---
 sound/core/compress_offload.c | 2 +-
 sound/core/oss/rate.c         | 2 +-
 sound/core/pcm_native.c       | 2 +-
 sound/core/sound.c            | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c
index b8c0d6edbdd1..bdf1d78de833 100644
--- a/sound/core/compress_offload.c
+++ b/sound/core/compress_offload.c
@@ -288,7 +288,7 @@ static ssize_t snd_compr_write(struct file *f, const char __user *buf,
 
 	stream = &data->stream;
 	guard(mutex)(&stream->device->lock);
-	/* write is allowed when stream is running or has been steup */
+	/* write is allowed when stream is running or has been setup */
 	switch (stream->runtime->state) {
 	case SNDRV_PCM_STATE_SETUP:
 	case SNDRV_PCM_STATE_PREPARED:
diff --git a/sound/core/oss/rate.c b/sound/core/oss/rate.c
index 98269119347f..b56eeda5e30e 100644
--- a/sound/core/oss/rate.c
+++ b/sound/core/oss/rate.c
@@ -294,7 +294,7 @@ static int rate_action(struct snd_pcm_plugin *plugin,
 	default:
 		break;
 	}
-	return 0;	/* silenty ignore other actions */
+	return 0;	/* silently ignore other actions */
 }
 
 int snd_pcm_plugin_build_rate(struct snd_pcm_substream *plug,
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
index 99e39b5359cc..b49bc89c0758 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
@@ -3115,7 +3115,7 @@ struct snd_pcm_sync_ptr32 {
 	} c;
 } __packed;
 
-/* recalcuate the boundary within 32bit */
+/* recalculate the boundary within 32bit */
 static snd_pcm_uframes_t recalculate_boundary(struct snd_pcm_runtime *runtime)
 {
 	snd_pcm_uframes_t boundary;
diff --git a/sound/core/sound.c b/sound/core/sound.c
index b9db9aa0bfcb..6531a67f13b3 100644
--- a/sound/core/sound.c
+++ b/sound/core/sound.c
@@ -133,7 +133,7 @@ static struct snd_minor *autoload_device(unsigned int minor)
 		/* /dev/aloadSEQ */
 		snd_request_other(minor);
 	}
-	mutex_lock(&sound_mutex); /* reacuire lock */
+	mutex_lock(&sound_mutex); /* reacquire lock */
 	return snd_minors[minor];
 }
 #else /* !CONFIG_MODULES */
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] ALSA: Fix typos in comments across various files
  2024-09-24  4:17 [PATCH v2] ALSA: Fix typos in comments across various files Yu Jiaoliang
@ 2024-09-30  7:52 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2024-09-30  7:52 UTC (permalink / raw)
  To: Yu Jiaoliang
  Cc: Vinod Koul, Jaroslav Kysela, Takashi Iwai, Christian Brauner,
	Mark Brown, Al Viro, Pavel Hofman, alsa-devel, linux-sound,
	linux-kernel, opensource.kernel

On Tue, 24 Sep 2024 06:17:45 +0200,
Yu Jiaoliang wrote:
> 
> This patch fixes typos in comments within the ALSA subsystem.
> These changes improve code readability without affecting
> functionality.
> 
> Signed-off-by: Yu Jiaoliang <yujiaoliang@vivo.com>
> ---
> v2: Update commit message.

Thanks, applied now.


Takashi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-30  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24  4:17 [PATCH v2] ALSA: Fix typos in comments across various files Yu Jiaoliang
2024-09-30  7:52 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox