Robin Callender e792b1b0b8 USB: gadget: audio driver seg-fault fix
The included patch can be applied to the new usb gadget audio driver.

It addresses a seg-fault in uncovered in g_audio.ko.
The fault occurs in the function u_audio.c::gaudio_open_end_dev() when
device /dev/snd/pcmC0D0c (FILE_PCM_CAPTURE) is not present.

I suspect there may be similar problems with device /dev/snd/pcmC0D0p
(FILE_PCM_PLAYBACK) handling also.  I leave that for the developer(s),
as I was unsure as to the side-effects of not calling
playback_default_hw_params() in the initialization phase.

Signed-off-by: Robin Callender <robin_callender@hotmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-23 06:46:32 -07:00
..
2009-01-07 09:59:58 -08:00
2009-09-23 06:46:32 -07:00
2008-10-22 10:05:28 -07:00
2009-07-12 12:22:34 -07:00
2008-07-21 15:16:10 -07:00
2009-07-12 15:16:37 -07:00
2008-07-21 15:16:10 -07:00
2009-07-12 12:22:34 -07:00
2008-10-17 14:40:53 -07:00