diff options
author | Omair Mohammed Abdullah <omair.m.abdullah@intel.com> | 2011-12-23 09:06:36 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-23 13:07:46 +0400 |
commit | 3eafc959b32f71d3fe6b27c9eae7495a23acfc3a (patch) | |
tree | e2795eaae508fdb0dc69d95cb265005c4dcb94c4 /sound/core/sound.c | |
parent | 57bd9b8ddd434111918d3f7cb0b4297cd77f1b5b (diff) | |
download | linux-3eafc959b32f71d3fe6b27c9eae7495a23acfc3a.tar.xz |
ALSA: core: add support for compressed devices
Use the minor numbers 2 and 3 for audio compressed offload devices.
Also add support for these devices in core
Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/sound.c')
-rw-r--r-- | sound/core/sound.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/sound.c b/sound/core/sound.c index 828af353ea9f..28f35593a750 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c @@ -229,6 +229,7 @@ static int snd_kernel_minor(int type, struct snd_card *card, int dev) case SNDRV_DEVICE_TYPE_RAWMIDI: case SNDRV_DEVICE_TYPE_PCM_PLAYBACK: case SNDRV_DEVICE_TYPE_PCM_CAPTURE: + case SNDRV_DEVICE_TYPE_COMPRESS: if (snd_BUG_ON(!card)) return -EINVAL; minor = SNDRV_MINOR(card->number, type + dev); |