Skip to content

Commit 1e393ef

Browse files
committed
ALSA: rme9652: More constifications
Apply const prefix to the channel map tables. Just for minor optimization and no functional changes. Link: https://lore.kernel.org/r/20200105144823.29547-21-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent e315cc3 commit 1e393ef

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎sound/pci/rme9652/rme9652.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ struct snd_rme9652 {
229229
int last_spdif_sample_rate; /* so that we can catch externally ... */
230230
int last_adat_sample_rate; /* ... induced rate changes */
231231

232-
char *channel_map;
232+
const char *channel_map;
233233

234234
struct snd_card *card;
235235
struct snd_pcm *pcm;
@@ -246,20 +246,20 @@ struct snd_rme9652 {
246246
where the data for that channel can be read/written from/to.
247247
*/
248248

249-
static char channel_map_9652_ss[26] = {
249+
static const char channel_map_9652_ss[26] = {
250250
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
251251
18, 19, 20, 21, 22, 23, 24, 25
252252
};
253253

254-
static char channel_map_9636_ss[26] = {
254+
static const char channel_map_9636_ss[26] = {
255255
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
256256
/* channels 16 and 17 are S/PDIF */
257257
24, 25,
258258
/* channels 18-25 don't exist */
259259
-1, -1, -1, -1, -1, -1, -1, -1
260260
};
261261

262-
static char channel_map_9652_ds[26] = {
262+
static const char channel_map_9652_ds[26] = {
263263
/* ADAT channels are remapped */
264264
1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23,
265265
/* channels 12 and 13 are S/PDIF */
@@ -268,7 +268,7 @@ static char channel_map_9652_ds[26] = {
268268
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
269269
};
270270

271-
static char channel_map_9636_ds[26] = {
271+
static const char channel_map_9636_ds[26] = {
272272
/* ADAT channels are remapped */
273273
1, 3, 5, 7, 9, 11, 13, 15,
274274
/* channels 8 and 9 are S/PDIF */

0 commit comments

Comments
 (0)