summaryrefslogtreecommitdiff
path: root/src/pulsecore/remap_mmx.c
diff options
context:
space:
mode:
authorPeter Meerwald <p.meerwald@bct-electronic.com>2014-04-16 11:25:58 +0200
committerPeter Meerwald <pmeerw@pmeerw.net>2014-04-29 00:00:06 +0200
commit9362bdc8a1d5bd1ce213c517e1999644728193a2 (patch)
tree78b081573e84c8e2db552d53861714f071305799 /src/pulsecore/remap_mmx.c
parent937b4175c2aadf4076182126c8bb2499d347a30e (diff)
remap: Make resampler's remap structure more self-contained
Initialization of the remap structure now happens in one place Rename calc_map_table() to setup_remap(), copy sample format and channel specs; the remap structure is initialized when we know the work sample format of the resampler Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Diffstat (limited to 'src/pulsecore/remap_mmx.c')
-rw-r--r--src/pulsecore/remap_mmx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pulsecore/remap_mmx.c b/src/pulsecore/remap_mmx.c
index bf611a1bc..3d49045a6 100644
--- a/src/pulsecore/remap_mmx.c
+++ b/src/pulsecore/remap_mmx.c
@@ -105,7 +105,7 @@
static void remap_mono_to_stereo_mmx(pa_remap_t *m, void *dst, const void *src, unsigned n) {
pa_reg_x86 temp, temp2;
- switch (*m->format) {
+ switch (m->format) {
case PA_SAMPLE_FLOAT32NE:
{
__asm__ __volatile__ (
@@ -135,8 +135,8 @@ static void remap_mono_to_stereo_mmx(pa_remap_t *m, void *dst, const void *src,
static void init_remap_mmx(pa_remap_t *m) {
unsigned n_oc, n_ic;
- n_oc = m->o_ss->channels;
- n_ic = m->i_ss->channels;
+ n_oc = m->o_ss.channels;
+ n_ic = m->i_ss.channels;
/* find some common channel remappings, fall back to full matrix operation. */
if (n_ic == 1 && n_oc == 2 &&