> From: Jacob Meuser <jake...@sdf.lonestar.org>
> Subject: Re: How to test if
sound is working?
> To: misc@openbsd.org
> Date: Monday, November 8, 2010,
4:36 AM
> 
> it appears you don't get any sound because the outputs are
>
controlled
> by gpio pins.  see if the following fixes it.
> 
> 1. save this
mail as a plain text file somewhere.
> 2. make sure you have kernel sources
installed.  (see
> the faq if necessary)
> 3. cd /sys/dev/pci && patch -p 0 <
<path to
> this file>
> 4. build and install kernel. (see faq if necessary)
>
5. reboot
> 
> -- 
> jake...@sdf.lonestar.org
> SDF Public Access UNIX System
- http://sdf.lonestar.org
> 
> Index: azalia_codec.c
>
===================================================================
> RCS
file: /cvs/src/sys/dev/pci/azalia_codec.c,v
> retrieving revision 1.151
> diff
-u -p azalia_codec.c
> --- azalia_codec.c    10 Sep 2010 15:11:23
> -0000   
1.151
> +++ azalia_codec.c    8 Nov 2010 04:29:59
> -0000
> @@ -64,6 +64,13 @@
azalia_codec_init_vtbl(codec_t *this)
>      this->name = NULL;
>     
this->qrks = AZ_QRK_NONE;
>      switch (this->vid) {
> +    case 0x10134206:
> +        this->name =
> "Cirrus Logic CS4206";
> +        if (this->subid
>
== 0x106b4d00) {    /* APPLE_MBP55 */
> +           
> this->qrks |=
AZ_QRK_GPIO_UNMUTE_1 |
> +           
>     AZ_QRK_GPIO_UNMUTE_3;
> +        }
> +        break;
>      case 0x10ec0260:
>          this->name =
> "Realtek
ALC260";
>          break;
> 
> 

Just rebooted, tweaked mixerctl settings
several times, and nothing. Same results as
before...

For what it's worth,
when I patched azalia_codec, this is what it said:

Hmm...  Looks like a
unified diff to me...
The text leading up to this was:
--------------------------
|Index: azalia_codec.c
|===================================================================
|RCS
file: /cvs/src/sys/dev/pci/azalia_codec.c,v
|retrieving revision 1.151
|diff
-u -p azalia_codec.c
|--- azalia_codec.c    10 Sep 2010 15:11:23 -0000
1.151
|+++ azalia_codec.c    8 Nov 2010 04:29:59 -0000
--------------------------
Patching file azalia_codec.c using Plan A...
Hunk
#1 failed at 64.
1 out of 1 hunks failed--saving rejects to azalia_codec.c.rej
done

Dunno if that means anything.

Here is my current mixerctl settings:

$
mixerctl -v
inputs.dac-0:1_mute=off  [ off on ]
inputs.dac-0:1=250,250
inputs.dac-2:3_mute=off  [ off on ]
inputs.dac-2:3=250,250
record.adc-0:1_source=mic  [ mic ]
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=248,248 
outputs.hp_source=dac-0:1  [ dac-0:1 ]
outputs.hp_boost=on  [ off on ]
outputs.spkr_source=  [ ]
outputs.spkr2_source=dac-2:3  [ dac-2:3 ]
inputs.mic=170,170
outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50 input-vr80 ]
outputs.SPDIF_source=dig-dac-0:1  [ dig-dac-0:1 ]
outputs.hp_sense=plugged  [
unplugged plugged ]
outputs.spkr2_muters=hp  { hp }
outputs.master=250,250
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-0:1,dac-2:3  {
dac-0:1 dac-2:3 }
record.volume=250,250 
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-0:1  { adc-0:1 mic }
outputs.mode=analog  [ analog
digital ]

I change it up with different combos and restart my music player
each time to test.

Reply via email to