[alsa-devel] [RFC PATCH] ALSA: compress: Add SND_AUDIOCODEC_BESPOKE

Takashi Iwai tiwai at suse.de
Sat Oct 24 09:36:48 CEST 2015


On Tue, 20 Oct 2015 21:37:11 +0200,
Mark Brown wrote:
> 
> On Tue, Oct 20, 2015 at 12:47:58PM -0500, Pierre-Louis Bossart wrote:
> 
> > Since this is clearly an escape mechanism for a non-standard codec, maybe we
> > should use an ID that's not in sequence, eg 0x00001000.
> 
> 0xDEADBEEF.  Also the bikeshed should be purple :)

Oh, let's make it more brilliant like gold over shocking pink :)

Usually the number like 0x1000 makes sense only when the lower bits
are used for relevant purpose, e.g. as a sub-type definition for
BESPOKE.  So, type_is_bespoke() won't be "type == 0x1000" but
"type & 0x1000".


Takashi


More information about the Alsa-devel mailing list