19 Aug
2011
19 Aug
'11
2:30 p.m.
On 19/08/11 07:00, Lu Guanqun wrote:
When user specifies option 'help' or 'version', the program exists immediately. This is more expected way than the current one.
Signed-off-by: Lu Guanqun guanqun.lu@intel.com
alsaucm/usecase.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/alsaucm/usecase.c b/alsaucm/usecase.c index 1c94680..14a4be0 100644 --- a/alsaucm/usecase.c +++ b/alsaucm/usecase.c @@ -395,10 +395,10 @@ int main(int argc, char *argv[]) switch (c) { case 'h': dump_help(context);
break;
case OPT_VERSION: printf("%s: version " SND_UTIL_VERSION_STR "\n", command);my_exit(context, EXIT_SUCCESS);
break;
case 'c': if (context->card) free(context->card);my_exit(context, EXIT_SUCCESS);
Acked-by: Liam Girdwood lrg@ti.com