Recent changes to newpcm require that the CHANNEL_SETFORMAT op return 0

for success, non-zero otherwise.  The maestro and maestro3 drivers were
returning the format code, which was being interpreted as a failure code.
Fixed.  No one seems to have noticed that the maestro driver was broken,
but I'll fix it anyways.

MFC after:	2 weeks
This commit is contained in:
scottl 2002-01-27 23:09:41 +00:00
parent 98b0025e1a
commit 989ee16965
2 changed files with 3 additions and 3 deletions

View File

@ -717,7 +717,7 @@ aggch_setplayformat(kobj_t obj, void *data, u_int32_t format)
} }
ch->wcreg_tpl = wcreg_tpl; ch->wcreg_tpl = wcreg_tpl;
ch->aputype = aputype; ch->aputype = aputype;
return format; return 0;
} }
static int static int

View File

@ -495,7 +495,7 @@ m3_pchan_setformat(kobj_t kobj, void *chdata, u_int32_t format)
m3_wr_assp_data(sc, ch->dac_data + SRC3_WORD_LENGTH_OFFSET, data); m3_wr_assp_data(sc, ch->dac_data + SRC3_WORD_LENGTH_OFFSET, data);
ch->fmt = format; ch->fmt = format;
return format; return 0;
} }
static int static int
@ -770,7 +770,7 @@ m3_rchan_setformat(kobj_t kobj, void *chdata, u_int32_t format)
m3_wr_assp_data(sc, ch->adc_data + SRC3_WORD_LENGTH_OFFSET, data); m3_wr_assp_data(sc, ch->adc_data + SRC3_WORD_LENGTH_OFFSET, data);
ch->fmt = format; ch->fmt = format;
return format; return 0;
} }
static int static int