瀏覽代碼

ALSA: fireworks/bebob: Use the same type of variables as function parameters

The second argument of snd_efw_command_get_sampling_rate() means sampling
rate and its type is 'unsigned int'. But 'int' variable is passed as parameter.
It's better to apply the same type for the variable as its argument.

Similally, the type of variable for snd_efw_command_get_clock_source() and
avc_bridgeco_get_plug_type() should be the same type as each argument.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Sakamoto 11 年之前
父節點
當前提交
a6b598bf4b
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 2 1
      sound/firewire/bebob/bebob_stream.c
  2. 2 2
      sound/firewire/fireworks/fireworks_pcm.c

+ 2 - 1
sound/firewire/bebob/bebob_stream.c

@@ -852,7 +852,8 @@ static int
 seek_msu_sync_input_plug(struct snd_bebob *bebob)
 seek_msu_sync_input_plug(struct snd_bebob *bebob)
 {
 {
 	u8 plugs[AVC_PLUG_INFO_BUF_BYTES], addr[AVC_BRIDGECO_ADDR_BYTES];
 	u8 plugs[AVC_PLUG_INFO_BUF_BYTES], addr[AVC_BRIDGECO_ADDR_BYTES];
-	unsigned int i, type;
+	unsigned int i;
+	enum avc_bridgeco_plug_type type;
 	int err;
 	int err;
 
 
 	/* Get the number of Music Sub Unit for both direction. */
 	/* Get the number of Music Sub Unit for both direction. */

+ 2 - 2
sound/firewire/fireworks/fireworks_pcm.c

@@ -195,8 +195,8 @@ end:
 static int pcm_open(struct snd_pcm_substream *substream)
 static int pcm_open(struct snd_pcm_substream *substream)
 {
 {
 	struct snd_efw *efw = substream->private_data;
 	struct snd_efw *efw = substream->private_data;
-	int sampling_rate;
-	unsigned int clock_source;
+	unsigned int sampling_rate;
+	enum snd_efw_clock_source clock_source;
 	int err;
 	int err;
 
 
 	err = snd_efw_stream_lock_try(efw);
 	err = snd_efw_stream_lock_try(efw);