> This the refreshed version of the diff explained here:
> 
> https://marc.info/?l=openbsd-tech&m=141331392732184
> 
> I still need some help at least to check that this doesn't break
> the build of hppa, luna88k, sgi, sparc and vax.

Builds correctly on these arches once you fix this typo:

> Index: dev/ic/am7930.c

> @@ -287,38 +237,16 @@ am7930_set_params(void *addr, int setmod
>  int
>  am7930_query_encoding(void *addr, struct audio_encoding *fp)
>  {
> +     struct am7930_softc *sc = addr;
> +
>       switch (fp->index) {
>       case 0:
>               strlcpy(fp->name, AudioEmulaw, sizeof fp->name);
>               fp->encoding = AUDIO_ENCODING_ULAW;
> -             fp->precision = 8;
> -             fp->bps = 1;
> -             fp->msb = 1;
> +             fp->precision = sc->sc_glue->precision;
> +             fp->bps = AUDIO_BPS(p->precision);
                                    ^^
this should be fp->precision.

Reply via email to