ASoC: sb16: Simplify snd_sb16dsp_pcm()
All callers of snd_sb16dsp_pcm() always pass the pcm field of the first parameter as the last parameter. Simplify the function by moving this inside the function itself. This makes the code a bit shorter and cleaner. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
8c77629996
commit
92533f1888
+1
-1
@@ -320,7 +320,7 @@ irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip);
|
||||
int snd_sb8dsp_midi(struct snd_sb *chip, int device);
|
||||
|
||||
/* sb16_init.c */
|
||||
int snd_sb16dsp_pcm(struct snd_sb *chip, int device, struct snd_pcm ** rpcm);
|
||||
int snd_sb16dsp_pcm(struct snd_sb *chip, int device);
|
||||
const struct snd_pcm_ops *snd_sb16dsp_get_pcm_ops(int direction);
|
||||
int snd_sb16dsp_configure(struct snd_sb *chip);
|
||||
/* sb16.c */
|
||||
|
||||
Reference in New Issue
Block a user