diff options
| -rw-r--r-- | sound/firewire/oxfw/oxfw-pcm.c | 6 | ||||
| -rw-r--r-- | sound/firewire/oxfw/oxfw-proc.c | 2 | ||||
| -rw-r--r-- | sound/firewire/oxfw/oxfw-stream.c | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/sound/firewire/oxfw/oxfw-pcm.c b/sound/firewire/oxfw/oxfw-pcm.c index 9bc556b15a92..67ade0775a5b 100644 --- a/sound/firewire/oxfw/oxfw-pcm.c +++ b/sound/firewire/oxfw/oxfw-pcm.c | |||
| @@ -19,7 +19,7 @@ static int hw_rule_rate(struct snd_pcm_hw_params *params, | |||
| 19 | .min = UINT_MAX, .max = 0, .integer = 1 | 19 | .min = UINT_MAX, .max = 0, .integer = 1 |
| 20 | }; | 20 | }; |
| 21 | struct snd_oxfw_stream_formation formation; | 21 | struct snd_oxfw_stream_formation formation; |
| 22 | unsigned int i, err; | 22 | int i, err; |
| 23 | 23 | ||
| 24 | for (i = 0; i < SND_OXFW_STREAM_FORMAT_ENTRIES; i++) { | 24 | for (i = 0; i < SND_OXFW_STREAM_FORMAT_ENTRIES; i++) { |
| 25 | if (formats[i] == NULL) | 25 | if (formats[i] == NULL) |
| @@ -47,7 +47,7 @@ static int hw_rule_channels(struct snd_pcm_hw_params *params, | |||
| 47 | const struct snd_interval *r = | 47 | const struct snd_interval *r = |
| 48 | hw_param_interval_c(params, SNDRV_PCM_HW_PARAM_RATE); | 48 | hw_param_interval_c(params, SNDRV_PCM_HW_PARAM_RATE); |
| 49 | struct snd_oxfw_stream_formation formation; | 49 | struct snd_oxfw_stream_formation formation; |
| 50 | unsigned int i, j, err; | 50 | int i, j, err; |
| 51 | unsigned int count, list[SND_OXFW_STREAM_FORMAT_ENTRIES] = {0}; | 51 | unsigned int count, list[SND_OXFW_STREAM_FORMAT_ENTRIES] = {0}; |
| 52 | 52 | ||
| 53 | count = 0; | 53 | count = 0; |
| @@ -80,7 +80,7 @@ static int hw_rule_channels(struct snd_pcm_hw_params *params, | |||
| 80 | static void limit_channels_and_rates(struct snd_pcm_hardware *hw, u8 **formats) | 80 | static void limit_channels_and_rates(struct snd_pcm_hardware *hw, u8 **formats) |
| 81 | { | 81 | { |
| 82 | struct snd_oxfw_stream_formation formation; | 82 | struct snd_oxfw_stream_formation formation; |
| 83 | unsigned int i, err; | 83 | int i, err; |
| 84 | 84 | ||
| 85 | hw->channels_min = UINT_MAX; | 85 | hw->channels_min = UINT_MAX; |
| 86 | hw->channels_max = 0; | 86 | hw->channels_max = 0; |
diff --git a/sound/firewire/oxfw/oxfw-proc.c b/sound/firewire/oxfw/oxfw-proc.c index 604808e5526d..8ba4f9f262b8 100644 --- a/sound/firewire/oxfw/oxfw-proc.c +++ b/sound/firewire/oxfw/oxfw-proc.c | |||
| @@ -15,7 +15,7 @@ static void proc_read_formation(struct snd_info_entry *entry, | |||
| 15 | struct snd_oxfw_stream_formation formation, curr; | 15 | struct snd_oxfw_stream_formation formation, curr; |
| 16 | u8 *format; | 16 | u8 *format; |
| 17 | char flag; | 17 | char flag; |
| 18 | unsigned int i, err; | 18 | int i, err; |
| 19 | 19 | ||
| 20 | /* Show input. */ | 20 | /* Show input. */ |
| 21 | err = snd_oxfw_stream_get_current_formation(oxfw, | 21 | err = snd_oxfw_stream_get_current_formation(oxfw, |
diff --git a/sound/firewire/oxfw/oxfw-stream.c b/sound/firewire/oxfw/oxfw-stream.c index b77cf80f1678..bda845afb470 100644 --- a/sound/firewire/oxfw/oxfw-stream.c +++ b/sound/firewire/oxfw/oxfw-stream.c | |||
| @@ -61,7 +61,8 @@ static int set_stream_format(struct snd_oxfw *oxfw, struct amdtp_stream *s, | |||
| 61 | u8 **formats; | 61 | u8 **formats; |
| 62 | struct snd_oxfw_stream_formation formation; | 62 | struct snd_oxfw_stream_formation formation; |
| 63 | enum avc_general_plug_dir dir; | 63 | enum avc_general_plug_dir dir; |
| 64 | unsigned int i, err, len; | 64 | unsigned int len; |
| 65 | int i, err; | ||
| 65 | 66 | ||
| 66 | if (s == &oxfw->tx_stream) { | 67 | if (s == &oxfw->tx_stream) { |
| 67 | formats = oxfw->tx_stream_formats; | 68 | formats = oxfw->tx_stream_formats; |
