]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
audio: spelling fixes
authorMichael Tokarev <mjt@tls.msk.ru>
Fri, 14 Jul 2023 11:30:34 +0000 (14:30 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 8 Sep 2023 10:08:52 +0000 (13:08 +0300)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
audio/mixeng.h
hw/audio/fmopl.c
hw/audio/fmopl.h
hw/audio/gusemu_hal.c
hw/audio/intel-hda-defs.h

index f9de7cffebeb9460e72e5327d77c780bcdafec5e..a5f56d2c268b1c3829f8bb96580255d63c65f4b5 100644 (file)
@@ -38,7 +38,7 @@ typedef struct st_sample st_sample;
 typedef void (t_sample) (struct st_sample *dst, const void *src, int samples);
 typedef void (f_sample) (void *dst, const struct st_sample *src, int samples);
 
-/* indices: [stereo][signed][swap endiannes][8, 16 or 32-bits] */
+/* indices: [stereo][signed][swap endianness][8, 16 or 32-bits] */
 extern t_sample *mixeng_conv[2][2][2][3];
 extern f_sample *mixeng_clip[2][2][2][3];
 
index 8a71a569fab0ecc3424ddc6e1896e24c8beadac1..a63ad0f04d57ea1b3e548b3077358484d7fb98ee 100644 (file)
@@ -355,7 +355,7 @@ static void set_algorithm( OPL_CH *CH)
        CH->connect2 = carrier;
 }
 
-/* ---------- frequency counter for operater update ---------- */
+/* ---------- frequency counter for operator update ---------- */
 static inline void CALC_FCSLOT(OPL_CH *CH,OPL_SLOT *SLOT)
 {
        int ksr;
@@ -640,7 +640,7 @@ static int OPLOpenTable( void )
                TL_TABLE[t] = TL_TABLE[TL_MAX+t] = 0;
        }
 
-       /* make sinwave table (total level offet) */
+       /* make sinwave table (total level offset) */
        /* degree 0 = degree 180                   = off */
        SIN_TABLE[0] = SIN_TABLE[SIN_ENT/2]         = &TL_TABLE[EG_ENT-1];
        for (s = 1;s <= SIN_ENT/4;s++){
@@ -1075,7 +1075,7 @@ FM_OPL *OPLCreate(int clock, int rate)
        char *ptr;
        FM_OPL *OPL;
        int state_size;
-       int max_ch = 9; /* normaly 9 channels */
+       int max_ch = 9; /* normally 9 channels */
 
        if( OPL_LockTable() ==-1) return NULL;
        /* allocate OPL state space */
@@ -1092,7 +1092,7 @@ FM_OPL *OPLCreate(int clock, int rate)
        OPL->clock = clock;
        OPL->rate  = rate;
        OPL->max_ch = max_ch;
-       /* init grobal tables */
+       /* init global tables */
        OPL_initialize(OPL);
        /* reset chip */
        OPLResetChip(OPL);
index e008e72d7adb2dc80bf0b598c0c2cd7404651fe5..89086b93f449e47da6976971f27320b06894ec4c 100644 (file)
@@ -69,7 +69,7 @@ typedef struct fm_opl_f {
        /* FM channel slots */
        OPL_CH *P_CH;           /* pointer of CH                     */
        int     max_ch;                 /* maximum channel                   */
-       /* Rhythm sention */
+       /* Rhythm section */
        uint8_t rhythm;         /* Rhythm mode , key flag */
        /* time tables */
        int32_t AR_TABLE[76];   /* attack rate tables  */
index 5b9a14ee21b668a3627aa2bfd2c6eca14ba0ea11..f159978b494696e04ea55551ad6420a20b1c78da 100644 (file)
@@ -154,7 +154,7 @@ unsigned int gus_read(GUSEmuState * state, int port, int size)
         case 0x8d:
             {
                 int             offset = 2 * (GUSregb(FunkSelReg3x3) & 0x0f);
-                offset += ((int) GUSregb(VoiceSelReg3x2) & 0x1f) << 5; /* = Voice*32 + Funktion*2 */
+                offset += ((int) GUSregb(VoiceSelReg3x2) & 0x1f) << 5; /* = Voice*32 + Function*2 */
                 value_read = GUSregw(offset);
             }
             break;
@@ -353,7 +353,7 @@ void gus_write(GUSEmuState * state, int port, int size, unsigned int data)
                     if (!(GUSregb(GUS4cReset) & 0x01))
                         break;  /* reset flag active? */
                     offset = 2 * (GUSregb(FunkSelReg3x3) & 0x0f);
-                    offset += (GUSregb(VoiceSelReg3x2) & 0x1f) << 5; /*  = Voice*32 + Funktion*2 */
+                    offset += (GUSregb(VoiceSelReg3x2) & 0x1f) << 5; /*  = Voice*32 + Function*2 */
                     GUSregw(offset) = (uint16_t) ((GUSregw(offset) & readmask) | writedata);
                 }
                 break;
index 2e37e5b8747d711d7988e65a258b562484e8e86c..261bdb48ff95164c3fdddf822990c1eb6062198d 100644 (file)
@@ -418,7 +418,7 @@ enum {
 #define AC_UNSOL_RES_CP_STATE          (1<<1)  /* content protection */
 #define AC_UNSOL_RES_CP_READY          (1<<0)  /* content protection */
 
-/* Pin widget capabilies */
+/* Pin widget capabilities */
 #define AC_PINCAP_IMP_SENSE            (1<<0)  /* impedance sense capable */
 #define AC_PINCAP_TRIG_REQ             (1<<1)  /* trigger required */
 #define AC_PINCAP_PRES_DETECT          (1<<2)  /* presence detect capable */
@@ -483,7 +483,7 @@ enum {
 #define AC_PWRST_D2                    0x02
 #define AC_PWRST_D3                    0x03
 
-/* Processing capabilies */
+/* Processing capabilities */
 #define AC_PCAP_BENIGN                 (1<<0)
 #define AC_PCAP_NUM_COEF               (0xff<<8)
 #define AC_PCAP_NUM_COEF_SHIFT         8