audio: Remove unnecessary a2dp_sep_get_lock function

This commit is contained in:
Johan Hedberg 2012-12-18 11:37:21 +02:00
parent a174f7b53d
commit b6ec5fea65
2 changed files with 1 additions and 7 deletions

View File

@ -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;

View File

@ -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);