aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-05-27 11:14:40 -0400
committerTakashi Iwai <tiwai@suse.de>2014-05-27 11:35:13 -0400
commit4a286d55285fa865df3810f632bd5747dc6e8475 (patch)
tree7efe9ba1ce9aa4e22e21f795201ba6d8154ce7ab /sound
parent93219d0649703f4106bbc44b9bb71771475ee254 (diff)
ALSA: fireworks/bebob: Change type of argument for sampling rate
Originally, I intent to this argument given with 'struct snd_pcm_runtime.rate' or params_rate(). They return value of 'unsigned int'. So 'unsigned int' is better for the type of this argument. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/firewire/bebob/bebob.h2
-rw-r--r--sound/firewire/bebob/bebob_stream.c2
-rw-r--r--sound/firewire/fireworks/fireworks.h2
-rw-r--r--sound/firewire/fireworks/fireworks_stream.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/sound/firewire/bebob/bebob.h b/sound/firewire/bebob/bebob.h
index 91b26b0c649a..6aef1520d720 100644
--- a/sound/firewire/bebob/bebob.h
+++ b/sound/firewire/bebob/bebob.h
@@ -211,7 +211,7 @@ int snd_bebob_stream_discover(struct snd_bebob *bebob);
211int snd_bebob_stream_map(struct snd_bebob *bebob, 211int snd_bebob_stream_map(struct snd_bebob *bebob,
212 struct amdtp_stream *stream); 212 struct amdtp_stream *stream);
213int snd_bebob_stream_init_duplex(struct snd_bebob *bebob); 213int snd_bebob_stream_init_duplex(struct snd_bebob *bebob);
214int snd_bebob_stream_start_duplex(struct snd_bebob *bebob, int rate); 214int snd_bebob_stream_start_duplex(struct snd_bebob *bebob, unsigned int rate);
215void snd_bebob_stream_stop_duplex(struct snd_bebob *bebob); 215void snd_bebob_stream_stop_duplex(struct snd_bebob *bebob);
216void snd_bebob_stream_update_duplex(struct snd_bebob *bebob); 216void snd_bebob_stream_update_duplex(struct snd_bebob *bebob);
217void snd_bebob_stream_destroy_duplex(struct snd_bebob *bebob); 217void snd_bebob_stream_destroy_duplex(struct snd_bebob *bebob);
diff --git a/sound/firewire/bebob/bebob_stream.c b/sound/firewire/bebob/bebob_stream.c
index 452e93684e49..fbe938c79e3a 100644
--- a/sound/firewire/bebob/bebob_stream.c
+++ b/sound/firewire/bebob/bebob_stream.c
@@ -483,7 +483,7 @@ end:
483 return err; 483 return err;
484} 484}
485 485
486int snd_bebob_stream_start_duplex(struct snd_bebob *bebob, int rate) 486int snd_bebob_stream_start_duplex(struct snd_bebob *bebob, unsigned int rate)
487{ 487{
488 struct snd_bebob_rate_spec *rate_spec = bebob->spec->rate; 488 struct snd_bebob_rate_spec *rate_spec = bebob->spec->rate;
489 struct amdtp_stream *master, *slave; 489 struct amdtp_stream *master, *slave;
diff --git a/sound/firewire/fireworks/fireworks.h b/sound/firewire/fireworks/fireworks.h
index 14395e3e4669..d2b36be4d2f8 100644
--- a/sound/firewire/fireworks/fireworks.h
+++ b/sound/firewire/fireworks/fireworks.h
@@ -205,7 +205,7 @@ int snd_efw_command_get_sampling_rate(struct snd_efw *efw, unsigned int *rate);
205int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate); 205int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate);
206 206
207int snd_efw_stream_init_duplex(struct snd_efw *efw); 207int snd_efw_stream_init_duplex(struct snd_efw *efw);
208int snd_efw_stream_start_duplex(struct snd_efw *efw, int sampling_rate); 208int snd_efw_stream_start_duplex(struct snd_efw *efw, unsigned int rate);
209void snd_efw_stream_stop_duplex(struct snd_efw *efw); 209void snd_efw_stream_stop_duplex(struct snd_efw *efw);
210void snd_efw_stream_update_duplex(struct snd_efw *efw); 210void snd_efw_stream_update_duplex(struct snd_efw *efw);
211void snd_efw_stream_destroy_duplex(struct snd_efw *efw); 211void snd_efw_stream_destroy_duplex(struct snd_efw *efw);
diff --git a/sound/firewire/fireworks/fireworks_stream.c b/sound/firewire/fireworks/fireworks_stream.c
index eaab8f6bc8b6..541569022a7c 100644
--- a/sound/firewire/fireworks/fireworks_stream.c
+++ b/sound/firewire/fireworks/fireworks_stream.c
@@ -195,7 +195,7 @@ end:
195 return err; 195 return err;
196} 196}
197 197
198int snd_efw_stream_start_duplex(struct snd_efw *efw, int rate) 198int snd_efw_stream_start_duplex(struct snd_efw *efw, unsigned int rate)
199{ 199{
200 struct amdtp_stream *master, *slave; 200 struct amdtp_stream *master, *slave;
201 atomic_t *slave_substreams; 201 atomic_t *slave_substreams;