[PATCH 6/6] audio/jack: simplify the re-init code path

2020-06-13 Thread Geoffrey McRae
Instead of checking for the audodev state in each code path, centralize the check into the initialize function itself to make it safe to call it at any time. Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/audio

[PATCH 6/6] audio/jack: simplify the re-init code path

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index b2b53985ae..72ed7c4929 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -395,6 +395,10 @@ static int qjack_clie

[PATCH 6/6] audio/jack: simplify the re-init code path

2020-06-11 Thread Geoffrey McRae
Signed-off-by: Geoffrey McRae --- audio/jackaudio.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index b2b53985ae..72ed7c4929 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -395,6 +395,10 @@ static int qjack_clie