aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ice1712
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2009-05-06 11:22:07 -0400
committerTakashi Iwai <tiwai@suse.de>2009-05-06 11:22:07 -0400
commita5b7b5c1d05387ffeaf0487482806ec6c5968ac7 (patch)
tree965125f3cd113cf01a7c790a27244fbfb0de1168 /sound/pci/ice1712
parent92d71005e2f305d6dca126d8b8497e885b842dba (diff)
ALSA: ice1724 - Clean up definitions of DMA records
Rename some vt1724_pcm_reg records to more generic and consistent ones. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712')
-rw-r--r--sound/pci/ice1712/ice1724.c37
1 files changed, 21 insertions, 16 deletions
diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c
index 5c5ef7fa3e83..8afa043dab0e 100644
--- a/sound/pci/ice1712/ice1724.c
+++ b/sound/pci/ice1712/ice1724.c
@@ -855,20 +855,39 @@ static snd_pcm_uframes_t snd_vt1724_pcm_pointer(struct snd_pcm_substream *substr
855#endif 855#endif
856} 856}
857 857
858static const struct vt1724_pcm_reg vt1724_playback_pro_reg = { 858static const struct vt1724_pcm_reg vt1724_pdma0_reg = {
859 .addr = VT1724_MT_PLAYBACK_ADDR, 859 .addr = VT1724_MT_PLAYBACK_ADDR,
860 .size = VT1724_MT_PLAYBACK_SIZE, 860 .size = VT1724_MT_PLAYBACK_SIZE,
861 .count = VT1724_MT_PLAYBACK_COUNT, 861 .count = VT1724_MT_PLAYBACK_COUNT,
862 .start = VT1724_PDMA0_START, 862 .start = VT1724_PDMA0_START,
863}; 863};
864 864
865static const struct vt1724_pcm_reg vt1724_capture_pro_reg = { 865static const struct vt1724_pcm_reg vt1724_pdma4_reg = {
866 .addr = VT1724_MT_PDMA4_ADDR,
867 .size = VT1724_MT_PDMA4_SIZE,
868 .count = VT1724_MT_PDMA4_COUNT,
869 .start = VT1724_PDMA4_START,
870};
871
872static const struct vt1724_pcm_reg vt1724_rdma0_reg = {
866 .addr = VT1724_MT_CAPTURE_ADDR, 873 .addr = VT1724_MT_CAPTURE_ADDR,
867 .size = VT1724_MT_CAPTURE_SIZE, 874 .size = VT1724_MT_CAPTURE_SIZE,
868 .count = VT1724_MT_CAPTURE_COUNT, 875 .count = VT1724_MT_CAPTURE_COUNT,
869 .start = VT1724_RDMA0_START, 876 .start = VT1724_RDMA0_START,
870}; 877};
871 878
879static const struct vt1724_pcm_reg vt1724_rdma1_reg = {
880 .addr = VT1724_MT_RDMA1_ADDR,
881 .size = VT1724_MT_RDMA1_SIZE,
882 .count = VT1724_MT_RDMA1_COUNT,
883 .start = VT1724_RDMA1_START,
884};
885
886#define vt1724_playback_pro_reg vt1724_pdma0_reg
887#define vt1724_playback_spdif_reg vt1724_pdma4_reg
888#define vt1724_capture_pro_reg vt1724_rdma0_reg
889#define vt1724_capture_spdif_reg vt1724_rdma1_reg
890
872static const struct snd_pcm_hardware snd_vt1724_playback_pro = { 891static const struct snd_pcm_hardware snd_vt1724_playback_pro = {
873 .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | 892 .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |
874 SNDRV_PCM_INFO_BLOCK_TRANSFER | 893 SNDRV_PCM_INFO_BLOCK_TRANSFER |
@@ -1084,20 +1103,6 @@ static int __devinit snd_vt1724_pcm_profi(struct snd_ice1712 *ice, int device)
1084 * SPDIF PCM 1103 * SPDIF PCM
1085 */ 1104 */
1086 1105
1087static const struct vt1724_pcm_reg vt1724_playback_spdif_reg = {
1088 .addr = VT1724_MT_PDMA4_ADDR,
1089 .size = VT1724_MT_PDMA4_SIZE,
1090 .count = VT1724_MT_PDMA4_COUNT,
1091 .start = VT1724_PDMA4_START,
1092};
1093
1094static const struct vt1724_pcm_reg vt1724_capture_spdif_reg = {
1095 .addr = VT1724_MT_RDMA1_ADDR,
1096 .size = VT1724_MT_RDMA1_SIZE,
1097 .count = VT1724_MT_RDMA1_COUNT,
1098 .start = VT1724_RDMA1_START,
1099};
1100
1101/* update spdif control bits; call with reg_lock */ 1106/* update spdif control bits; call with reg_lock */
1102static void update_spdif_bits(struct snd_ice1712 *ice, unsigned int val) 1107static void update_spdif_bits(struct snd_ice1712 *ice, unsigned int val)
1103{ 1108{