feeder_matrix.c (193640) | feeder_matrix.c (243138) |
---|---|
1/*- 2 * Copyright (c) 2008-2009 Ariff Abdullah <ariff@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 47#endif 48#include <dev/sound/pcm/sound.h> 49#include <dev/sound/pcm/pcm.h> 50#include "feeder_if.h" 51 52#define SND_USE_FXDIV 53#include "snd_fxdiv_gen.h" 54 | 1/*- 2 * Copyright (c) 2008-2009 Ariff Abdullah <ariff@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 47#endif 48#include <dev/sound/pcm/sound.h> 49#include <dev/sound/pcm/pcm.h> 50#include "feeder_if.h" 51 52#define SND_USE_FXDIV 53#include "snd_fxdiv_gen.h" 54 |
55SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/feeder_matrix.c 193640 2009-06-07 19:12:08Z ariff $"); | 55SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/feeder_matrix.c 243138 2012-11-16 07:05:57Z mav $"); |
56#endif 57 58#define FEEDMATRIX_RESERVOIR (SND_CHN_MAX * PCM_32_BPS) 59 60#define SND_CHN_T_EOF 0x00e0fe0f 61#define SND_CHN_T_NULL 0x0e0e0e0e 62 63struct feed_matrix_info; --- 17 unchanged lines hidden (view full) --- 81 uint8_t reservoir[FEEDMATRIX_RESERVOIR]; 82}; 83 84static struct pcmchan_matrix feeder_matrix_maps[SND_CHN_MATRIX_MAX] = { 85 [SND_CHN_MATRIX_1_0] = SND_CHN_MATRIX_MAP_1_0, 86 [SND_CHN_MATRIX_2_0] = SND_CHN_MATRIX_MAP_2_0, 87 [SND_CHN_MATRIX_2_1] = SND_CHN_MATRIX_MAP_2_1, 88 [SND_CHN_MATRIX_3_0] = SND_CHN_MATRIX_MAP_3_0, | 56#endif 57 58#define FEEDMATRIX_RESERVOIR (SND_CHN_MAX * PCM_32_BPS) 59 60#define SND_CHN_T_EOF 0x00e0fe0f 61#define SND_CHN_T_NULL 0x0e0e0e0e 62 63struct feed_matrix_info; --- 17 unchanged lines hidden (view full) --- 81 uint8_t reservoir[FEEDMATRIX_RESERVOIR]; 82}; 83 84static struct pcmchan_matrix feeder_matrix_maps[SND_CHN_MATRIX_MAX] = { 85 [SND_CHN_MATRIX_1_0] = SND_CHN_MATRIX_MAP_1_0, 86 [SND_CHN_MATRIX_2_0] = SND_CHN_MATRIX_MAP_2_0, 87 [SND_CHN_MATRIX_2_1] = SND_CHN_MATRIX_MAP_2_1, 88 [SND_CHN_MATRIX_3_0] = SND_CHN_MATRIX_MAP_3_0, |
89 [SND_CHN_MATRIX_3_1] = SND_CHN_MATRIX_MAP_3_1, |
|
89 [SND_CHN_MATRIX_4_0] = SND_CHN_MATRIX_MAP_4_0, 90 [SND_CHN_MATRIX_4_1] = SND_CHN_MATRIX_MAP_4_1, 91 [SND_CHN_MATRIX_5_0] = SND_CHN_MATRIX_MAP_5_0, 92 [SND_CHN_MATRIX_5_1] = SND_CHN_MATRIX_MAP_5_1, 93 [SND_CHN_MATRIX_6_0] = SND_CHN_MATRIX_MAP_6_0, 94 [SND_CHN_MATRIX_6_1] = SND_CHN_MATRIX_MAP_6_1, | 90 [SND_CHN_MATRIX_4_0] = SND_CHN_MATRIX_MAP_4_0, 91 [SND_CHN_MATRIX_4_1] = SND_CHN_MATRIX_MAP_4_1, 92 [SND_CHN_MATRIX_5_0] = SND_CHN_MATRIX_MAP_5_0, 93 [SND_CHN_MATRIX_5_1] = SND_CHN_MATRIX_MAP_5_1, 94 [SND_CHN_MATRIX_6_0] = SND_CHN_MATRIX_MAP_6_0, 95 [SND_CHN_MATRIX_6_1] = SND_CHN_MATRIX_MAP_6_1, |
96 [SND_CHN_MATRIX_7_0] = SND_CHN_MATRIX_MAP_7_0, |
|
95 [SND_CHN_MATRIX_7_1] = SND_CHN_MATRIX_MAP_7_1 96}; 97 98static int feeder_matrix_default_ids[9] = { 99 [0] = SND_CHN_MATRIX_UNKNOWN, 100 [1] = SND_CHN_MATRIX_1, 101 [2] = SND_CHN_MATRIX_2, 102 [3] = SND_CHN_MATRIX_3, --- 723 unchanged lines hidden --- | 97 [SND_CHN_MATRIX_7_1] = SND_CHN_MATRIX_MAP_7_1 98}; 99 100static int feeder_matrix_default_ids[9] = { 101 [0] = SND_CHN_MATRIX_UNKNOWN, 102 [1] = SND_CHN_MATRIX_1, 103 [2] = SND_CHN_MATRIX_2, 104 [3] = SND_CHN_MATRIX_3, --- 723 unchanged lines hidden --- |