diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-09-19 11:21:49 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-09-29 12:35:45 +0200 |
commit | 547e631ce3886175a33b5ccf67729bdd18e9b7e0 (patch) | |
tree | 8c48fda0c7a8c5442d00a100901bd1747e349155 /sound/firewire/amdtp.h | |
parent | 10b2b6dc1a6bb287411045c788f76d53f96c11bc (diff) | |
download | op-kernel-dev-547e631ce3886175a33b5ccf67729bdd18e9b7e0.zip op-kernel-dev-547e631ce3886175a33b5ccf67729bdd18e9b7e0.tar.gz |
ALSA: firewire-lib: return error code when amdtp_stream_set_parameters() detects error
Currently, amdtp_stream_set_parameters() returns no error even if wrong
arguments are given. This is not good for streaming layer because drivers
can continue processing ignoring capability of streaming layer.
This commit changes this function to return error code.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/amdtp.h')
-rw-r--r-- | sound/firewire/amdtp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/firewire/amdtp.h b/sound/firewire/amdtp.h index 4640d2b..3fb8db7 100644 --- a/sound/firewire/amdtp.h +++ b/sound/firewire/amdtp.h @@ -174,10 +174,10 @@ int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, enum cip_flags flags); void amdtp_stream_destroy(struct amdtp_stream *s); -void amdtp_stream_set_parameters(struct amdtp_stream *s, - unsigned int rate, - unsigned int pcm_channels, - unsigned int midi_ports); +int amdtp_stream_set_parameters(struct amdtp_stream *s, + unsigned int rate, + unsigned int pcm_channels, + unsigned int midi_ports); unsigned int amdtp_stream_get_max_payload(struct amdtp_stream *s); int amdtp_stream_start(struct amdtp_stream *s, int channel, int speed); |