You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ALSA: constify snd_pcm_ops structures
Check for snd_pcm_ops structures that are only stored in the ops field of a snd_soc_platform_driver structure or passed as the third argument to snd_pcm_set_ops. The corresponding field or parameter is declared const, so snd_pcm_ops structures that have this property can be declared as const also. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @r disable optional_qualifier@ identifier i; position p; @@ static struct snd_pcm_ops i@p = { ... }; @ok1@ identifier r.i; struct snd_soc_platform_driver e; position p; @@ e.ops = &i@p; @ok2@ identifier r.i; expression e1, e2; position p; @@ snd_pcm_set_ops(e1, e2, &i@p) @bad@ position p != {r.p,ok1.p,ok2.p}; identifier r.i; struct snd_pcm_ops e; @@ e@i@p @depends on !bad disable optional_qualifier@ identifier r.i; @@ static +const struct snd_pcm_ops i = { ... }; // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
9d5262ae9b
commit
6769e988b0
+2
-2
@@ -563,7 +563,7 @@ static snd_pcm_uframes_t snd_als300_pointer(struct snd_pcm_substream *substream)
|
||||
return bytes_to_frames(substream->runtime, current_ptr);
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_als300_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_als300_playback_ops = {
|
||||
.open = snd_als300_playback_open,
|
||||
.close = snd_als300_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -574,7 +574,7 @@ static struct snd_pcm_ops snd_als300_playback_ops = {
|
||||
.pointer = snd_als300_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_als300_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_als300_capture_ops = {
|
||||
.open = snd_als300_capture_open,
|
||||
.close = snd_als300_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
+2
-2
@@ -672,7 +672,7 @@ static int snd_als4000_capture_close(struct snd_pcm_substream *substream)
|
||||
|
||||
/******************************************************************/
|
||||
|
||||
static struct snd_pcm_ops snd_als4000_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_als4000_playback_ops = {
|
||||
.open = snd_als4000_playback_open,
|
||||
.close = snd_als4000_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -683,7 +683,7 @@ static struct snd_pcm_ops snd_als4000_playback_ops = {
|
||||
.pointer = snd_als4000_playback_pointer
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_als4000_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_als4000_capture_ops = {
|
||||
.open = snd_als4000_capture_open,
|
||||
.close = snd_als4000_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
@@ -1138,7 +1138,7 @@ static int snd_card_asihpi_playback_close(struct snd_pcm_substream *substream)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_card_asihpi_playback_mmap_ops = {
|
||||
static const struct snd_pcm_ops snd_card_asihpi_playback_mmap_ops = {
|
||||
.open = snd_card_asihpi_playback_open,
|
||||
.close = snd_card_asihpi_playback_close,
|
||||
.ioctl = snd_card_asihpi_playback_ioctl,
|
||||
@@ -1305,7 +1305,7 @@ static int snd_card_asihpi_capture_close(struct snd_pcm_substream *substream)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_card_asihpi_capture_mmap_ops = {
|
||||
static const struct snd_pcm_ops snd_card_asihpi_capture_mmap_ops = {
|
||||
.open = snd_card_asihpi_capture_open,
|
||||
.close = snd_card_asihpi_capture_close,
|
||||
.ioctl = snd_card_asihpi_capture_ioctl,
|
||||
|
||||
+3
-3
@@ -1148,7 +1148,7 @@ static int snd_atiixp_spdif_close(struct snd_pcm_substream *substream)
|
||||
}
|
||||
|
||||
/* AC97 playback */
|
||||
static struct snd_pcm_ops snd_atiixp_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_atiixp_playback_ops = {
|
||||
.open = snd_atiixp_playback_open,
|
||||
.close = snd_atiixp_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1160,7 +1160,7 @@ static struct snd_pcm_ops snd_atiixp_playback_ops = {
|
||||
};
|
||||
|
||||
/* AC97 capture */
|
||||
static struct snd_pcm_ops snd_atiixp_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_atiixp_capture_ops = {
|
||||
.open = snd_atiixp_capture_open,
|
||||
.close = snd_atiixp_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1172,7 +1172,7 @@ static struct snd_pcm_ops snd_atiixp_capture_ops = {
|
||||
};
|
||||
|
||||
/* SPDIF playback */
|
||||
static struct snd_pcm_ops snd_atiixp_spdif_ops = {
|
||||
static const struct snd_pcm_ops snd_atiixp_spdif_ops = {
|
||||
.open = snd_atiixp_spdif_open,
|
||||
.close = snd_atiixp_spdif_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
@@ -947,7 +947,7 @@ static int snd_atiixp_capture_close(struct snd_pcm_substream *substream)
|
||||
|
||||
|
||||
/* AC97 playback */
|
||||
static struct snd_pcm_ops snd_atiixp_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_atiixp_playback_ops = {
|
||||
.open = snd_atiixp_playback_open,
|
||||
.close = snd_atiixp_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -959,7 +959,7 @@ static struct snd_pcm_ops snd_atiixp_playback_ops = {
|
||||
};
|
||||
|
||||
/* AC97 capture */
|
||||
static struct snd_pcm_ops snd_atiixp_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_atiixp_capture_ops = {
|
||||
.open = snd_atiixp_capture_open,
|
||||
.close = snd_atiixp_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
@@ -179,7 +179,7 @@ static struct pci_driver aw2_driver = {
|
||||
module_pci_driver(aw2_driver);
|
||||
|
||||
/* operators for playback PCM alsa interface */
|
||||
static struct snd_pcm_ops snd_aw2_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_aw2_playback_ops = {
|
||||
.open = snd_aw2_pcm_playback_open,
|
||||
.close = snd_aw2_pcm_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -191,7 +191,7 @@ static struct snd_pcm_ops snd_aw2_playback_ops = {
|
||||
};
|
||||
|
||||
/* operators for capture PCM alsa interface */
|
||||
static struct snd_pcm_ops snd_aw2_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_aw2_capture_ops = {
|
||||
.open = snd_aw2_pcm_capture_open,
|
||||
.close = snd_aw2_pcm_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
+3
-3
@@ -2090,7 +2090,7 @@ snd_azf3328_pcm_close(struct snd_pcm_substream *substream
|
||||
|
||||
/******************************************************************/
|
||||
|
||||
static struct snd_pcm_ops snd_azf3328_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_azf3328_playback_ops = {
|
||||
.open = snd_azf3328_pcm_playback_open,
|
||||
.close = snd_azf3328_pcm_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -2101,7 +2101,7 @@ static struct snd_pcm_ops snd_azf3328_playback_ops = {
|
||||
.pointer = snd_azf3328_pcm_pointer
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_azf3328_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_azf3328_capture_ops = {
|
||||
.open = snd_azf3328_pcm_capture_open,
|
||||
.close = snd_azf3328_pcm_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -2112,7 +2112,7 @@ static struct snd_pcm_ops snd_azf3328_capture_ops = {
|
||||
.pointer = snd_azf3328_pcm_pointer
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_azf3328_i2s_out_ops = {
|
||||
static const struct snd_pcm_ops snd_azf3328_i2s_out_ops = {
|
||||
.open = snd_azf3328_pcm_i2s_out_open,
|
||||
.close = snd_azf3328_pcm_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
@@ -1109,7 +1109,7 @@ snd_ca0106_pcm_pointer_capture(struct snd_pcm_substream *substream)
|
||||
}
|
||||
|
||||
/* operators */
|
||||
static struct snd_pcm_ops snd_ca0106_playback_front_ops = {
|
||||
static const struct snd_pcm_ops snd_ca0106_playback_front_ops = {
|
||||
.open = snd_ca0106_pcm_open_playback_front,
|
||||
.close = snd_ca0106_pcm_close_playback,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1120,7 +1120,7 @@ static struct snd_pcm_ops snd_ca0106_playback_front_ops = {
|
||||
.pointer = snd_ca0106_pcm_pointer_playback,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ca0106_capture_0_ops = {
|
||||
static const struct snd_pcm_ops snd_ca0106_capture_0_ops = {
|
||||
.open = snd_ca0106_pcm_open_0_capture,
|
||||
.close = snd_ca0106_pcm_close_capture,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1131,7 +1131,7 @@ static struct snd_pcm_ops snd_ca0106_capture_0_ops = {
|
||||
.pointer = snd_ca0106_pcm_pointer_capture,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ca0106_capture_1_ops = {
|
||||
static const struct snd_pcm_ops snd_ca0106_capture_1_ops = {
|
||||
.open = snd_ca0106_pcm_open_1_capture,
|
||||
.close = snd_ca0106_pcm_close_capture,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1142,7 +1142,7 @@ static struct snd_pcm_ops snd_ca0106_capture_1_ops = {
|
||||
.pointer = snd_ca0106_pcm_pointer_capture,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ca0106_capture_2_ops = {
|
||||
static const struct snd_pcm_ops snd_ca0106_capture_2_ops = {
|
||||
.open = snd_ca0106_pcm_open_2_capture,
|
||||
.close = snd_ca0106_pcm_close_capture,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1153,7 +1153,7 @@ static struct snd_pcm_ops snd_ca0106_capture_2_ops = {
|
||||
.pointer = snd_ca0106_pcm_pointer_capture,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ca0106_capture_3_ops = {
|
||||
static const struct snd_pcm_ops snd_ca0106_capture_3_ops = {
|
||||
.open = snd_ca0106_pcm_open_3_capture,
|
||||
.close = snd_ca0106_pcm_close_capture,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1164,7 +1164,7 @@ static struct snd_pcm_ops snd_ca0106_capture_3_ops = {
|
||||
.pointer = snd_ca0106_pcm_pointer_capture,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ca0106_playback_center_lfe_ops = {
|
||||
static const struct snd_pcm_ops snd_ca0106_playback_center_lfe_ops = {
|
||||
.open = snd_ca0106_pcm_open_playback_center_lfe,
|
||||
.close = snd_ca0106_pcm_close_playback,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1175,7 +1175,7 @@ static struct snd_pcm_ops snd_ca0106_playback_center_lfe_ops = {
|
||||
.pointer = snd_ca0106_pcm_pointer_playback,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ca0106_playback_unknown_ops = {
|
||||
static const struct snd_pcm_ops snd_ca0106_playback_unknown_ops = {
|
||||
.open = snd_ca0106_pcm_open_playback_unknown,
|
||||
.close = snd_ca0106_pcm_close_playback,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1186,7 +1186,7 @@ static struct snd_pcm_ops snd_ca0106_playback_unknown_ops = {
|
||||
.pointer = snd_ca0106_pcm_pointer_playback,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ca0106_playback_rear_ops = {
|
||||
static const struct snd_pcm_ops snd_ca0106_playback_rear_ops = {
|
||||
.open = snd_ca0106_pcm_open_playback_rear,
|
||||
.close = snd_ca0106_pcm_close_playback,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
+5
-5
@@ -1838,7 +1838,7 @@ static int snd_cmipci_capture_spdif_close(struct snd_pcm_substream *substream)
|
||||
/*
|
||||
*/
|
||||
|
||||
static struct snd_pcm_ops snd_cmipci_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_cmipci_playback_ops = {
|
||||
.open = snd_cmipci_playback_open,
|
||||
.close = snd_cmipci_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1849,7 +1849,7 @@ static struct snd_pcm_ops snd_cmipci_playback_ops = {
|
||||
.pointer = snd_cmipci_playback_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_cmipci_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_cmipci_capture_ops = {
|
||||
.open = snd_cmipci_capture_open,
|
||||
.close = snd_cmipci_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1860,7 +1860,7 @@ static struct snd_pcm_ops snd_cmipci_capture_ops = {
|
||||
.pointer = snd_cmipci_capture_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_cmipci_playback2_ops = {
|
||||
static const struct snd_pcm_ops snd_cmipci_playback2_ops = {
|
||||
.open = snd_cmipci_playback2_open,
|
||||
.close = snd_cmipci_playback2_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1871,7 +1871,7 @@ static struct snd_pcm_ops snd_cmipci_playback2_ops = {
|
||||
.pointer = snd_cmipci_capture_pointer, /* channel B */
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_cmipci_playback_spdif_ops = {
|
||||
static const struct snd_pcm_ops snd_cmipci_playback_spdif_ops = {
|
||||
.open = snd_cmipci_playback_spdif_open,
|
||||
.close = snd_cmipci_playback_spdif_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1882,7 +1882,7 @@ static struct snd_pcm_ops snd_cmipci_playback_spdif_ops = {
|
||||
.pointer = snd_cmipci_playback_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_cmipci_capture_spdif_ops = {
|
||||
static const struct snd_pcm_ops snd_cmipci_capture_spdif_ops = {
|
||||
.open = snd_cmipci_capture_spdif_open,
|
||||
.close = snd_cmipci_capture_spdif_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
+2
-2
@@ -951,7 +951,7 @@ static int snd_cs4281_capture_close(struct snd_pcm_substream *substream)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_cs4281_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_cs4281_playback_ops = {
|
||||
.open = snd_cs4281_playback_open,
|
||||
.close = snd_cs4281_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -962,7 +962,7 @@ static struct snd_pcm_ops snd_cs4281_playback_ops = {
|
||||
.pointer = snd_cs4281_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_cs4281_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_cs4281_capture_ops = {
|
||||
.open = snd_cs4281_capture_open,
|
||||
.close = snd_cs4281_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
@@ -372,7 +372,7 @@ ct_pcm_capture_pointer(struct snd_pcm_substream *substream)
|
||||
}
|
||||
|
||||
/* PCM operators for playback */
|
||||
static struct snd_pcm_ops ct_pcm_playback_ops = {
|
||||
static const struct snd_pcm_ops ct_pcm_playback_ops = {
|
||||
.open = ct_pcm_playback_open,
|
||||
.close = ct_pcm_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -385,7 +385,7 @@ static struct snd_pcm_ops ct_pcm_playback_ops = {
|
||||
};
|
||||
|
||||
/* PCM operators for capture */
|
||||
static struct snd_pcm_ops ct_pcm_capture_ops = {
|
||||
static const struct snd_pcm_ops ct_pcm_capture_ops = {
|
||||
.open = ct_pcm_capture_open,
|
||||
.close = ct_pcm_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
@@ -548,7 +548,7 @@ snd_emu10k1x_pcm_pointer(struct snd_pcm_substream *substream)
|
||||
}
|
||||
|
||||
/* operators */
|
||||
static struct snd_pcm_ops snd_emu10k1x_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_emu10k1x_playback_ops = {
|
||||
.open = snd_emu10k1x_playback_open,
|
||||
.close = snd_emu10k1x_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -694,7 +694,7 @@ snd_emu10k1x_pcm_pointer_capture(struct snd_pcm_substream *substream)
|
||||
return ptr;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_emu10k1x_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_emu10k1x_capture_ops = {
|
||||
.open = snd_emu10k1x_pcm_open_capture,
|
||||
.close = snd_emu10k1x_pcm_close_capture,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
@@ -1364,7 +1364,7 @@ static int snd_emu10k1_capture_efx_close(struct snd_pcm_substream *substream)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_emu10k1_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_emu10k1_playback_ops = {
|
||||
.open = snd_emu10k1_playback_open,
|
||||
.close = snd_emu10k1_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1376,7 +1376,7 @@ static struct snd_pcm_ops snd_emu10k1_playback_ops = {
|
||||
.page = snd_pcm_sgbuf_ops_page,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_emu10k1_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_emu10k1_capture_ops = {
|
||||
.open = snd_emu10k1_capture_open,
|
||||
.close = snd_emu10k1_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1388,7 +1388,7 @@ static struct snd_pcm_ops snd_emu10k1_capture_ops = {
|
||||
};
|
||||
|
||||
/* EFX playback */
|
||||
static struct snd_pcm_ops snd_emu10k1_efx_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_emu10k1_efx_playback_ops = {
|
||||
.open = snd_emu10k1_efx_playback_open,
|
||||
.close = snd_emu10k1_efx_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1455,7 +1455,7 @@ int snd_emu10k1_pcm_multi(struct snd_emu10k1 *emu, int device)
|
||||
}
|
||||
|
||||
|
||||
static struct snd_pcm_ops snd_emu10k1_capture_mic_ops = {
|
||||
static const struct snd_pcm_ops snd_emu10k1_capture_mic_ops = {
|
||||
.open = snd_emu10k1_capture_mic_open,
|
||||
.close = snd_emu10k1_capture_mic_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1550,7 +1550,7 @@ static struct snd_kcontrol_new snd_emu10k1_pcm_efx_voices_mask = {
|
||||
.put = snd_emu10k1_pcm_efx_voices_mask_put
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_emu10k1_capture_efx_ops = {
|
||||
static const struct snd_pcm_ops snd_emu10k1_capture_efx_ops = {
|
||||
.open = snd_emu10k1_capture_efx_open,
|
||||
.close = snd_emu10k1_capture_efx_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1791,7 +1791,7 @@ static int snd_emu10k1_fx8010_playback_close(struct snd_pcm_substream *substream
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_emu10k1_fx8010_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_emu10k1_fx8010_playback_ops = {
|
||||
.open = snd_emu10k1_fx8010_playback_open,
|
||||
.close = snd_emu10k1_fx8010_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
@@ -601,7 +601,7 @@ snd_p16v_pcm_pointer_capture(struct snd_pcm_substream *substream)
|
||||
}
|
||||
|
||||
/* operators */
|
||||
static struct snd_pcm_ops snd_p16v_playback_front_ops = {
|
||||
static const struct snd_pcm_ops snd_p16v_playback_front_ops = {
|
||||
.open = snd_p16v_pcm_open_playback_front,
|
||||
.close = snd_p16v_pcm_close_playback,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -612,7 +612,7 @@ static struct snd_pcm_ops snd_p16v_playback_front_ops = {
|
||||
.pointer = snd_p16v_pcm_pointer_playback,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_p16v_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_p16v_capture_ops = {
|
||||
.open = snd_p16v_pcm_open_capture,
|
||||
.close = snd_p16v_pcm_close_capture,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
+3
-3
@@ -1227,7 +1227,7 @@ static int snd_ensoniq_capture_close(struct snd_pcm_substream *substream)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_ensoniq_playback1_ops = {
|
||||
static const struct snd_pcm_ops snd_ensoniq_playback1_ops = {
|
||||
.open = snd_ensoniq_playback1_open,
|
||||
.close = snd_ensoniq_playback1_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1238,7 +1238,7 @@ static struct snd_pcm_ops snd_ensoniq_playback1_ops = {
|
||||
.pointer = snd_ensoniq_playback1_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ensoniq_playback2_ops = {
|
||||
static const struct snd_pcm_ops snd_ensoniq_playback2_ops = {
|
||||
.open = snd_ensoniq_playback2_open,
|
||||
.close = snd_ensoniq_playback2_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1249,7 +1249,7 @@ static struct snd_pcm_ops snd_ensoniq_playback2_ops = {
|
||||
.pointer = snd_ensoniq_playback2_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ensoniq_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_ensoniq_capture_ops = {
|
||||
.open = snd_ensoniq_capture_open,
|
||||
.close = snd_ensoniq_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
+2
-2
@@ -992,7 +992,7 @@ static int snd_es1938_playback_close(struct snd_pcm_substream *substream)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_es1938_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_es1938_playback_ops = {
|
||||
.open = snd_es1938_playback_open,
|
||||
.close = snd_es1938_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1003,7 +1003,7 @@ static struct snd_pcm_ops snd_es1938_playback_ops = {
|
||||
.pointer = snd_es1938_playback_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_es1938_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_es1938_capture_ops = {
|
||||
.open = snd_es1938_capture_open,
|
||||
.close = snd_es1938_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
+2
-2
@@ -1677,7 +1677,7 @@ static int snd_es1968_capture_close(struct snd_pcm_substream *substream)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_es1968_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_es1968_playback_ops = {
|
||||
.open = snd_es1968_playback_open,
|
||||
.close = snd_es1968_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1688,7 +1688,7 @@ static struct snd_pcm_ops snd_es1968_playback_ops = {
|
||||
.pointer = snd_es1968_pcm_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_es1968_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_es1968_capture_ops = {
|
||||
.open = snd_es1968_capture_open,
|
||||
.close = snd_es1968_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
+2
-2
@@ -691,7 +691,7 @@ static int snd_fm801_capture_close(struct snd_pcm_substream *substream)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_fm801_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_fm801_playback_ops = {
|
||||
.open = snd_fm801_playback_open,
|
||||
.close = snd_fm801_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -702,7 +702,7 @@ static struct snd_pcm_ops snd_fm801_playback_ops = {
|
||||
.pointer = snd_fm801_playback_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_fm801_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_fm801_capture_ops = {
|
||||
.open = snd_fm801_capture_open,
|
||||
.close = snd_fm801_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
@@ -696,7 +696,7 @@ static int azx_pcm_mmap(struct snd_pcm_substream *substream,
|
||||
return snd_pcm_lib_default_mmap(substream, area);
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops azx_pcm_ops = {
|
||||
static const struct snd_pcm_ops azx_pcm_ops = {
|
||||
.open = azx_pcm_open,
|
||||
.close = azx_pcm_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
@@ -847,7 +847,7 @@ static int snd_ice1712_capture_close(struct snd_pcm_substream *substream)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_ice1712_playback_ops = {
|
||||
static const struct snd_pcm_ops snd_ice1712_playback_ops = {
|
||||
.open = snd_ice1712_playback_open,
|
||||
.close = snd_ice1712_playback_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -858,7 +858,7 @@ static struct snd_pcm_ops snd_ice1712_playback_ops = {
|
||||
.pointer = snd_ice1712_playback_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ice1712_playback_ds_ops = {
|
||||
static const struct snd_pcm_ops snd_ice1712_playback_ds_ops = {
|
||||
.open = snd_ice1712_playback_ds_open,
|
||||
.close = snd_ice1712_playback_ds_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -869,7 +869,7 @@ static struct snd_pcm_ops snd_ice1712_playback_ds_ops = {
|
||||
.pointer = snd_ice1712_playback_ds_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ice1712_capture_ops = {
|
||||
static const struct snd_pcm_ops snd_ice1712_capture_ops = {
|
||||
.open = snd_ice1712_capture_open,
|
||||
.close = snd_ice1712_capture_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1228,7 +1228,7 @@ static int snd_ice1712_capture_pro_close(struct snd_pcm_substream *substream)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct snd_pcm_ops snd_ice1712_playback_pro_ops = {
|
||||
static const struct snd_pcm_ops snd_ice1712_playback_pro_ops = {
|
||||
.open = snd_ice1712_playback_pro_open,
|
||||
.close = snd_ice1712_playback_pro_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
@@ -1239,7 +1239,7 @@ static struct snd_pcm_ops snd_ice1712_playback_pro_ops = {
|
||||
.pointer = snd_ice1712_playback_pro_pointer,
|
||||
};
|
||||
|
||||
static struct snd_pcm_ops snd_ice1712_capture_pro_ops = {
|
||||
static const struct snd_pcm_ops snd_ice1712_capture_pro_ops = {
|
||||
.open = snd_ice1712_capture_pro_open,
|
||||
.close = snd_ice1712_capture_pro_close,
|
||||
.ioctl = snd_pcm_lib_ioctl,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user