diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-08-03 12:02:38 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-09-06 12:08:32 -0400 |
commit | f49921b894ec338696e47d985acc09df3cddbfd1 (patch) | |
tree | 8e9765b331e16dd227be125bdb75e86b5d577ef5 /sound/pci | |
parent | e36e3b86c78cee9c7435eb33e0ef8a788193e812 (diff) |
ALSA: cmipci: Implement channel mapping
Simply enable the channel map according to the h/w capability.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/cmipci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c index 7c25906b5f88..22122ff26e34 100644 --- 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) | |||
1962 | snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, | 1962 | snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, |
1963 | snd_dma_pci_data(cm->pci), 64*1024, 128*1024); | 1963 | snd_dma_pci_data(cm->pci), 64*1024, 128*1024); |
1964 | 1964 | ||
1965 | err = snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, | ||
1966 | snd_pcm_alt_chmaps, cm->max_channels, 0, | ||
1967 | NULL); | ||
1968 | if (err < 0) | ||
1969 | return err; | ||
1970 | |||
1965 | return 0; | 1971 | return 0; |
1966 | } | 1972 | } |
1967 | 1973 | ||