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:
parent
98b0025e1a
commit
989ee16965
@ -717,7 +717,7 @@ aggch_setplayformat(kobj_t obj, void *data, u_int32_t format)
|
||||
}
|
||||
ch->wcreg_tpl = wcreg_tpl;
|
||||
ch->aputype = aputype;
|
||||
return format;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -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);
|
||||
|
||||
ch->fmt = format;
|
||||
return format;
|
||||
return 0;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
ch->fmt = format;
|
||||
return format;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user