On Tue, May 14, 2013 at 02:37:36PM -0500, joshua stein wrote:
> On this Macbook Air, audio only works through the headphone jack,
> not through the speakers when the headphones are unplugged.
> 
>     $> mixerctl -a
>     inputs.dac-0:1_mute=off
>     inputs.dac-0:1=100,100
>     inputs.dac-2:3_mute=off
>     inputs.dac-2:3=100,100
>     record.adc-0:1_source=mic
>     record.adc-0:1_mute=off
>     record.adc-0:1=124,124
>     outputs.hp_source=dac-0:1
>     outputs.hp_boost=off
>     outputs.spkr_source=dac-2:3
>     inputs.mic=85,85
>     outputs.mic_dir=input-vr80
>     outputs.hp_sense=plugged
>     outputs.spkr_muters=
>     outputs.master=100,100
>     outputs.master.mute=off
>     outputs.master.slaves=dac-0:1,dac-2:3
>     record.volume=124,124
>     record.volume.mute=off
>     record.volume.slaves=adc-0:1
> 
> I guessed that outputs.spkr_source should be hp_source's value, but
> that gives an error:
> 
>     $> mixerctl outputs.spkr_source=dac-0:1
>     mixerctl: Bad enum value dac-0:1
> 
> Should I be able to change that or is there some other weird
> mixerctl voodoo I need to do to get audio through the speakers?

With apple machines it is more along the lines of what stupid
quirk does it need this time?

Perhaps something along the lines of

Index: azalia_codec.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
retrieving revision 1.152
diff -u -p -r1.152 azalia_codec.c
--- azalia_codec.c      30 Nov 2012 12:05:45 -0000      1.152
+++ azalia_codec.c      15 May 2013 03:51:07 -0000
@@ -66,7 +66,8 @@ azalia_codec_init_vtbl(codec_t *this)
        switch (this->vid) {
        case 0x10134206:
                this->name = "Cirrus Logic CS4206";
-               if (this->subid == 0xcb8910de) {        /* APPLE_MBA3_1 */
+               if (this->subid == 0xcb8910de ||        /* APPLE_MBA3_1 */
+                   this->subid == 0x72708086) {        /* APPLE_MBA4_1 */
                        this->qrks |= AZ_QRK_GPIO_UNMUTE_1 |
                            AZ_QRK_GPIO_UNMUTE_3;
                }

Reply via email to