OSDN Git Service

aplay: Show usage if no parameter is passed
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 13 Nov 2012 12:05:39 +0000 (10:05 -0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Nov 2012 13:33:40 +0000 (14:33 +0100)
commitc6614dbdab1cbe541e7d6cd29f3922510e0b6981
treebba6aebd89a997f5b5760c62f093e09ccb6f5b3e
parentf2826072732951b1d4e1bacd8115f9e6a98932d5
aplay: Show usage if no parameter is passed

When aplay/arecord are called without any argument the application hangs forever.

Instead of hanging, print the usage and exit.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
aplay/aplay.c