mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
ALSA: oxfw: use const qualifier for immutable argument
In the helper function, the first argument is immutable, thus it is preferable to use const qualifier. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20240218074128.95210-2-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
e8991d1d64
commit
5c0a35b26f
@ -515,7 +515,7 @@ int snd_oxfw_stream_get_current_formation(struct snd_oxfw *oxfw,
|
||||
* in AV/C Stream Format Information Specification 1.1 (Apr 2005, 1394TA)
|
||||
* Also 'Clause 12 AM824 sequence adaption layers' in IEC 61883-6:2005
|
||||
*/
|
||||
int snd_oxfw_stream_parse_format(u8 *format,
|
||||
int snd_oxfw_stream_parse_format(const u8 *format,
|
||||
struct snd_oxfw_stream_formation *formation)
|
||||
{
|
||||
unsigned int i, e, channels, type;
|
||||
|
@ -136,7 +136,7 @@ struct snd_oxfw_stream_formation {
|
||||
unsigned int pcm;
|
||||
unsigned int midi;
|
||||
};
|
||||
int snd_oxfw_stream_parse_format(u8 *format,
|
||||
int snd_oxfw_stream_parse_format(const u8 *format,
|
||||
struct snd_oxfw_stream_formation *formation);
|
||||
int snd_oxfw_stream_get_current_formation(struct snd_oxfw *oxfw,
|
||||
enum avc_general_plug_dir dir,
|
||||
|
Loading…
Reference in New Issue
Block a user