diff options
author | Tim Blechmann <tim@klingt.org> | 2009-02-05 07:01:54 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-02-05 09:03:27 -0500 |
commit | e6161653094f14b1add10efe3493a2e526fe9538 (patch) | |
tree | be3865ba7941bcc57bf0b29ab892738ec08d60e8 /sound | |
parent | cade9f8a9cf1cd41f6f9e8850c6a0465a21248c3 (diff) |
ALSA: snd_pcm_new api cleanup
Impact: cleanup
snd_pcm_new takes a char *id argument, although it is not modifying
the string. it can therefore be declared as const char *id.
Signed-off-by: Tim Blechmann <tim@klingt.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index 192a433a2403..583453e2355c 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c | |||
@@ -692,7 +692,7 @@ EXPORT_SYMBOL(snd_pcm_new_stream); | |||
692 | * | 692 | * |
693 | * Returns zero if successful, or a negative error code on failure. | 693 | * Returns zero if successful, or a negative error code on failure. |
694 | */ | 694 | */ |
695 | int snd_pcm_new(struct snd_card *card, char *id, int device, | 695 | int snd_pcm_new(struct snd_card *card, const char *id, int device, |
696 | int playback_count, int capture_count, | 696 | int playback_count, int capture_count, |
697 | struct snd_pcm ** rpcm) | 697 | struct snd_pcm ** rpcm) |
698 | { | 698 | { |