projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e36e3b8
)
ALSA: cmipci: Implement channel mapping
author
Takashi Iwai
<tiwai@suse.de>
Fri, 3 Aug 2012 16:02:38 +0000
(18:02 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 6 Sep 2012 16:08:32 +0000
(18:08 +0200)
Simply enable the channel map according to the h/w capability.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/cmipci.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/cmipci.c
b/sound/pci/cmipci.c
index 7c25906b5f88c99648052479a079f5c49595feda..22122ff26e34aacabf963c731f645aabb5678158 100644
(file)
--- a/
sound/pci/cmipci.c
+++ b/
sound/pci/cmipci.c
@@
-1962,6
+1962,12
@@
static int __devinit snd_cmipci_pcm_spdif_new(struct cmipci *cm, int device)
snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
snd_dma_pci_data(cm->pci), 64*1024, 128*1024);
+ err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK,
+ snd_pcm_alt_chmaps, cm->max_channels, 0,
+ NULL);
+ if (err < 0)
+ return err;
+
return 0;
}