commit | 3f78c4bf3ebb23a7cf4d0520808efc41dc061b14 | [log] [tgz] |
---|---|---|
author | Patrick Lai <plai@codeaurora.org> | Wed May 25 17:07:53 2011 -0700 |
committer | Bryan Huntsman <bryanh@codeaurora.org> | Mon Oct 03 09:58:58 2011 -0700 |
tree | de2d8893c9616797f4fa187c15f81bf8cb5531ca | |
parent | 5c4159724add60ba6541abc2cbc89b82cdb1fc1f [diff] |
ASoC: core: Add check before setting no_buffer flag Substream structure for either playback or capture is allocated only if DAIs of a given DAI link are defined to support playback or capture. Without this check, kernel will crash due to one of substream is NULL when DAI link has no_host_mode set to SND_SOC_DAI_LINK_NO_HOST. Signed-off-by: Patrick Lai <plai@codeaurora.org>