[alsa-devel] [PATCH 2/5] ASoC: dwc: Don't allow negative use counts
rajeev kumar
rajeevkumar.linux at gmail.com
Thu Dec 4 07:43:46 CET 2014
On Thu, Dec 4, 2014 at 12:10 PM, rajeev kumar
<rajeevkumar.linux at gmail.com> wrote:
> On Wed, Dec 3, 2014 at 10:55 PM, Mark Brown <broonie at kernel.org> wrote:
>> On Wed, Dec 03, 2014 at 04:38:55PM +0000, Andrew Jackson wrote:
>>
>>> case SNDRV_PCM_TRIGGER_STOP:
>>> case SNDRV_PCM_TRIGGER_SUSPEND:
>>> case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
>>> - dev->active--;
>>> + if (dev->active > 0)
>>> + dev->active--;
>>
>> How is this triggering - this sounds like you're papering over some
>> other bug somewhere?
This check can be removed as it is not going to triggered.
B'rgds
~Rajeev
More information about the Alsa-devel
mailing list