diff options
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/endpoint.c | 15 | ||||
-rw-r--r-- | sound/usb/endpoint.h | 2 |
2 files changed, 6 insertions, 11 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index e84732c874cb..26856601422b 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb/endpoint.c | |||
@@ -946,28 +946,23 @@ void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep) | |||
946 | * | 946 | * |
947 | * @ep: the endpoint to deactivate | 947 | * @ep: the endpoint to deactivate |
948 | * | 948 | * |
949 | * If the endpoint is not currently in use, this functions will select the | 949 | * If the endpoint is not currently in use, this functions will |
950 | * alternate interface setting 0 for the interface of this endpoint. | 950 | * deactivate its associated URBs. |
951 | * | 951 | * |
952 | * In case of any active users, this functions does nothing. | 952 | * In case of any active users, this functions does nothing. |
953 | * | ||
954 | * Returns an error if usb_set_interface() failed, 0 in all other | ||
955 | * cases. | ||
956 | */ | 953 | */ |
957 | int snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep) | 954 | void snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep) |
958 | { | 955 | { |
959 | if (!ep) | 956 | if (!ep) |
960 | return -EINVAL; | 957 | return; |
961 | 958 | ||
962 | if (ep->use_count != 0) | 959 | if (ep->use_count != 0) |
963 | return 0; | 960 | return; |
964 | 961 | ||
965 | deactivate_urbs(ep, true); | 962 | deactivate_urbs(ep, true); |
966 | wait_clear_urbs(ep); | 963 | wait_clear_urbs(ep); |
967 | 964 | ||
968 | clear_bit(EP_FLAG_ACTIVATED, &ep->flags); | 965 | clear_bit(EP_FLAG_ACTIVATED, &ep->flags); |
969 | |||
970 | return 0; | ||
971 | } | 966 | } |
972 | 967 | ||
973 | /** | 968 | /** |
diff --git a/sound/usb/endpoint.h b/sound/usb/endpoint.h index 3bd02f0d226c..1c7e8ee48abc 100644 --- a/sound/usb/endpoint.h +++ b/sound/usb/endpoint.h | |||
@@ -22,7 +22,7 @@ int snd_usb_endpoint_start(struct snd_usb_endpoint *ep, bool can_sleep); | |||
22 | void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep); | 22 | void snd_usb_endpoint_stop(struct snd_usb_endpoint *ep); |
23 | void snd_usb_endpoint_sync_pending_stop(struct snd_usb_endpoint *ep); | 23 | void snd_usb_endpoint_sync_pending_stop(struct snd_usb_endpoint *ep); |
24 | int snd_usb_endpoint_activate(struct snd_usb_endpoint *ep); | 24 | int snd_usb_endpoint_activate(struct snd_usb_endpoint *ep); |
25 | int snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep); | 25 | void snd_usb_endpoint_deactivate(struct snd_usb_endpoint *ep); |
26 | void snd_usb_endpoint_free(struct list_head *head); | 26 | void snd_usb_endpoint_free(struct list_head *head); |
27 | 27 | ||
28 | int snd_usb_endpoint_implicit_feedback_sink(struct snd_usb_endpoint *ep); | 28 | int snd_usb_endpoint_implicit_feedback_sink(struct snd_usb_endpoint *ep); |