#ifndef TSTAMPING_H #define TSTAMPING_H #include "config.h" #ifdef HAVE_HARDWARE_TIMESTAMPING extern int set_sockopt_hwtimestamp(int sock, const char *dev); #else static inline int set_sockopt_hwtimestamp(int sock, const char *dev) { return -1; } #endif #endif /* TSTAMPING_H */ ://git.distanz.ch/cgit.cgi/linux/net-next.git/atom/?h=nds-private-remove' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2016-05-04 17:11:56 +0100
committerMark Brown <broonie@kernel.org>2016-05-04 17:51:31 +0100
commit721be3be2f75c69cf0f2d7826007a6eefee7dac3 (patch)
tree8a51c7afcad1a0ec96afa4b4ffb1414166b7fde2
parentedd713509ae46ffcf178e3b1431af1ca202be8ba (diff)
ASoC: wm_adsp: Detach compressed stream on free
If someone powers down the DSP core (through routing changes say) whilst a compressed record is in progress we can end up using a freed pointer to the buffer object. When a compressed audio stream is triggered we attach it to a buffer on a physical DSP. This patch adds a detach of the buffer from the stream when the stream is freed or when the DSP is powered down which avoids the situation where we use a buffer when it is no longer valid. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>