mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-11 21:14:36 +08:00
audio: Remove unnecessary a2dp_sep_get_lock function
This commit is contained in:
parent
a174f7b53d
commit
b6ec5fea65
@ -1633,7 +1633,7 @@ unsigned int a2dp_config(struct avdtp *session, struct a2dp_sep *sep,
|
||||
}
|
||||
|
||||
if (l != NULL) {
|
||||
if (a2dp_sep_get_lock(tmp))
|
||||
if (tmp->locked)
|
||||
goto failed;
|
||||
setup->reconfigure = TRUE;
|
||||
if (avdtp_close(session, tmp->stream, FALSE) < 0) {
|
||||
@ -1872,11 +1872,6 @@ gboolean a2dp_sep_is_playing(struct a2dp_sep *sep)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean a2dp_sep_get_lock(struct a2dp_sep *sep)
|
||||
{
|
||||
return sep->locked;
|
||||
}
|
||||
|
||||
struct avdtp_stream *a2dp_sep_get_stream(struct a2dp_sep *sep)
|
||||
{
|
||||
return sep->stream;
|
||||
|
@ -90,6 +90,5 @@ gboolean a2dp_cancel(struct audio_device *dev, unsigned int id);
|
||||
|
||||
gboolean a2dp_sep_lock(struct a2dp_sep *sep, struct avdtp *session);
|
||||
gboolean a2dp_sep_unlock(struct a2dp_sep *sep, struct avdtp *session);
|
||||
gboolean a2dp_sep_get_lock(struct a2dp_sep *sep);
|
||||
gboolean a2dp_sep_is_playing(struct a2dp_sep *sep);
|
||||
struct avdtp_stream *a2dp_sep_get_stream(struct a2dp_sep *sep);
|
||||
|
Loading…
Reference in New Issue
Block a user