Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107002831
D48036.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48036.diff
View Options
diff --git a/sys/dev/sound/pcm/feeder_matrix.c b/sys/dev/sound/pcm/feeder_matrix.c
--- a/sys/dev/sound/pcm/feeder_matrix.c
+++ b/sys/dev/sound/pcm/feeder_matrix.c
@@ -177,55 +177,6 @@
}
}
-#ifdef FEEDMATRIX_GENERIC
-static void
-feed_matrix_apply_generic(struct feed_matrix_info *info,
- uint8_t *src, uint8_t *dst, uint32_t count)
-{
- intpcm64_t accum;
- intpcm_t v;
- int i, j;
-
- do {
- for (i = 0; info->matrix[i].chn[0] != SND_CHN_T_EOF;
- i++) {
- if (info->matrix[i].chn[0] == SND_CHN_T_NULL) {
- pcm_sample_write(dst, 0, info->out, true);
- dst += info->bps;
- continue;
- } else if (info->matrix[i].chn[1] ==
- SND_CHN_T_EOF) {
- v = pcm_sample_read(src +
- info->matrix[i].chn[0], info->in, true)
- pcm_sample_write(dst, v, info->out, true);
- dst += info->bps;
- continue;
- }
-
- accum = 0;
- for (j = 0;
- info->matrix[i].chn[j] != SND_CHN_T_EOF;
- j++) {
- v = pcm_sample_read(src +
- info->matrix[i].chn[j], info->in, true);
- accum += v;
- }
-
- accum = (accum * info->matrix[i].mul) >>
- info->matrix[i].shift;
-
- FEEDMATRIX_CLIP_CHECK(accum, 32);
-
- v = (accum > PCM_S32_MAX) ? PCM_S32_MAX :
- ((accum < PCM_S32_MIN) ? PCM_S32_MIN : accum);
- pcm_sample_write(dst, v, info->out, true);
- dst += info->bps;
- }
- src += info->ialign;
- } while (--count != 0);
-}
-#endif
-
static int
feed_matrix_setup(struct feed_matrix_info *info, struct pcmchan_matrix *m_in,
struct pcmchan_matrix *m_out)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 7:47 PM (9 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15327835
Default Alt Text
D48036.diff (1 KB)
Attached To
Mode
D48036: sound: Remove feed_matrix_apply_generic()
Attached
Detach File
Event Timeline
Log In to Comment