[alsa-devel] PATCH: Cleanup duplicate code

Mark Brown broonie at sirena.org.uk
Fri Jan 9 02:06:36 CET 2009

On Fri, Jan 09, 2009 at 12:37:22AM +0000, Ian Molton wrote:

> I noticed this function has been copied, 'cookie cutter' style in a lot 
> of codec drivers.

This looks good but please also make it print out an error saying what
fails if it detects a problem.  None of the existing code does this but
we've caught several bugs in existing drivers by adding such checks to
as part of the bulk registration functions that were added already so
it'd be good to do.

More information about the Alsa-devel mailing list