Every card I've seen has had their channels swapped with respect
to the mixer. Ie: $ mixerctl -w outputs.master=0,191 Would result in the _right_ speaker being turned off. So, we will swap the left and right mixer channels to compensate for this.
This commit is contained in:
parent
ef2920350e
commit
e52f30dc7a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: esa.c,v 1.5 2002/01/13 14:44:15 jmcneill Exp $ */
|
||||
/* $NetBSD: esa.c,v 1.6 2002/01/13 15:07:28 jmcneill Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001, 2002 Jared D. McNeill <jmcneill@invisible.yi.org>
|
||||
|
@ -971,6 +971,18 @@ esa_attach(struct device *parent, struct device *self, void *aux)
|
|||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Every card I've seen has had their channels swapped with respect
|
||||
* to the mixer. Ie:
|
||||
* $ mixerctl -w outputs.master=0,191
|
||||
* Would result in the _right_ speaker being turned off.
|
||||
*
|
||||
* So, we will swap the left and right mixer channels to compensate
|
||||
* for this.
|
||||
*/
|
||||
sc->codec_flags |= AC97_HOST_SWAPPED_CHANNELS;
|
||||
sc->codec_flags |= AC97_HOST_DONT_READ;
|
||||
|
||||
/* Attach AC97 host interface */
|
||||
sc->host_if.arg = self;
|
||||
sc->host_if.attach = esa_attach_codec;
|
||||
|
|
Loading…
Reference in New Issue