lx6464es.c (3eb66e91a25497065c5322b1268cbc3953642227) | lx6464es.c (5116b94af07a9775ed694562f354e931b2cc04d4) |
---|---|
1/* -*- linux-c -*- * 2 * 3 * ALSA driver for the digigram lx6464es interface 4 * 5 * Copyright (c) 2008, 2009 Tim Blechmann <tim@klingt.org> 6 * 7 * 8 * This program is free software; you can redistribute it and/or modify --- 840 unchanged lines hidden (view full) --- 849 850 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &lx_ops_playback); 851 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &lx_ops_capture); 852 853 pcm->info_flags = 0; 854 pcm->nonatomic = true; 855 strcpy(pcm->name, card_name); 856 | 1/* -*- linux-c -*- * 2 * 3 * ALSA driver for the digigram lx6464es interface 4 * 5 * Copyright (c) 2008, 2009 Tim Blechmann <tim@klingt.org> 6 * 7 * 8 * This program is free software; you can redistribute it and/or modify --- 840 unchanged lines hidden (view full) --- 849 850 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &lx_ops_playback); 851 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &lx_ops_capture); 852 853 pcm->info_flags = 0; 854 pcm->nonatomic = true; 855 strcpy(pcm->name, card_name); 856 |
857 err = snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, 858 snd_dma_pci_data(chip->pci), 859 size, size); 860 if (err < 0) 861 return err; | 857 snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, 858 snd_dma_pci_data(chip->pci), 859 size, size); |
862 863 chip->pcm = pcm; 864 chip->capture_stream.is_capture = 1; 865 866 return 0; 867} 868 869static int lx_control_playback_info(struct snd_kcontrol *kcontrol, --- 276 unchanged lines hidden --- | 860 861 chip->pcm = pcm; 862 chip->capture_stream.is_capture = 1; 863 864 return 0; 865} 866 867static int lx_control_playback_info(struct snd_kcontrol *kcontrol, --- 276 unchanged lines hidden --- |