summaryrefslogtreecommitdiffstats
path: root/sound/firewire/fireworks
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-05-27 17:14:41 +0200
committerTakashi Iwai <tiwai@suse.de>2014-05-27 17:35:22 +0200
commita6b598bf4b4117597479cc0d6204df6d4d8f2635 (patch)
tree2e79ed3c5b28d60a962e7b552883fb590fc2718e /sound/firewire/fireworks
parentALSA: fireworks/bebob: Change type of argument for sampling rate (diff)
downloadlinux-a6b598bf4b4117597479cc0d6204df6d4d8f2635.tar.xz
linux-a6b598bf4b4117597479cc0d6204df6d4d8f2635.zip
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>
Diffstat (limited to 'sound/firewire/fireworks')
-rw-r--r--sound/firewire/fireworks/fireworks_pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/firewire/fireworks/fireworks_pcm.c b/sound/firewire/fireworks/fireworks_pcm.c
index ed211d062202..8a34753de210 100644
--- a/sound/firewire/fireworks/fireworks_pcm.c
+++ b/sound/firewire/fireworks/fireworks_pcm.c
@@ -195,8 +195,8 @@ end:
static int pcm_open(struct snd_pcm_substream *substream)
{
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;
err = snd_efw_stream_lock_try(efw);