]> www.infradead.org Git - users/hch/dma-mapping.git/commitdiff
ALSA: Fix typos in comments across various files
authorYu Jiaoliang <yujiaoliang@vivo.com>
Tue, 24 Sep 2024 04:17:45 +0000 (12:17 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 30 Sep 2024 07:52:31 +0000 (09:52 +0200)
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>
Link: https://patch.msgid.link/20240924041749.3125507-1-yujiaoliang@vivo.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/compress_offload.c
sound/core/oss/rate.c
sound/core/pcm_native.c
sound/core/sound.c

index b8c0d6edbdd187e0b4114af824b01568cd398b26..bdf1d78de8338aad28c5098eeb26981518f4aab8 100644 (file)
@@ -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:
index 98269119347fed5010fe4e6a6a061855e83e33af..b56eeda5e30e778a51896cd1c082347ff33f6eda 100644 (file)
@@ -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,
index 5e1e6006707b46e3896f90de192a3584ee6e06cc..be50d8e83a08d832be611fec279d4bc655b030d8 100644 (file)
@@ -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;
index b9db9aa0bfcb583a143a88347ab7d4cdf37321fa..6531a67f13b3e70ea69987d88fd0e659d0054857 100644 (file)
@@ -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 */