FreeBSD kernel sound device code
pin_patch.h File Reference
#include "hdac.h"
Include dependency graph for pin_patch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pin_patch_t
 
struct  pin_machine_model_t
 
struct  model_pin_patch_t
 
struct  hdaa_model_pin_patch_t
 

Macros

#define PIN_SUBVENDOR(sv)   { .id = sv }
 
#define PIN_PATCH_STRING(n, patchstr)
 
#define PIN_OVERRIDE(n, newvalue)
 
#define PIN_PATCH_NOT_APPLICABLE(n)    PIN_PATCH_STRING(n, "as=15 misc=1 color=Black ctype=1/8 device=Speaker loc=Rear conn=None")
 
#define PIN_PATCH_HP_OUT(n)    PIN_PATCH_STRING(n, "seq=15 as=1 color=Green ctype=1/8 device=Headphones loc=Rear")
 
#define PIN_PATCH_HP(n)    PIN_PATCH_STRING(n, "seq=15 as=1 misc=1 color=Green ctype=1/8 device=Headphones loc=Rear")
 
#define PIN_PATCH_SPEAKER(n)    PIN_PATCH_STRING(n, "as=2 misc=1 ctype=ATAPI loc=Onboard conn=Fixed")
 
#define PIN_PATCH_BASS_SPEAKER(n)    PIN_PATCH_STRING(n, "as=3 misc=1 ctype=ATAPI loc=Onboard conn=Fixed")
 
#define PIN_PATCH_MIC_IN(n)    PIN_PATCH_STRING(n, "as=5 misc=9 color=Pink ctype=1/8 device=Mic loc=Rear")
 
#define PIN_PATCH_MIC_INTERNAL(n)    PIN_PATCH_STRING(n, "as=6 misc=1 ctype=Digital device=Mic loc=Internal conn=Fixed")
 
#define PIN_PATCH_MIC_FRONT(n)    PIN_PATCH_STRING(n, "as=4 misc=12 color=Pink ctype=1/8 device=Mic loc=Front")
 
#define PIN_PATCH_LINE_IN(n)    PIN_PATCH_STRING(n, "seq=1 as=3 color=Blue ctype=1/8 device=Line-in loc=Rear")
 
#define PIN_PATCH_LINE_OUT(n)    PIN_PATCH_STRING(n, "as=1 color=Green ctype=1/8 loc=Rear")
 
#define PIN_PATCH_SPDIF_OUT(n)    PIN_PATCH_STRING(n, "as=4 misc=1 color=Green ctype=Optical device=SPDIF-out loc=Rear")
 
#define PIN_PATCH_JACK_WO_DETECT(n)    PIN_PATCH_STRING(n, "seq=12 as=3 misc=1 color=Pink ctype=1/8 device=Mic loc=Rear")
 
#define PIN_PATCH_HPMIC_WO_DETECT(n)    PIN_PATCH_STRING(n, "seq=13 as=3 misc=1 color=Pink ctype=1/8 device=Mic loc=Rear")
 
#define PIN_PATCH_HPMIC_WITH_DETECT(n)    PIN_PATCH_STRING(n, "seq=12 as=3 color=Pink ctype=1/8 device=Mic loc=Rear")
 
#define PIN_PATCH_CLFE(n)    PIN_PATCH_STRING(n, "seq=1 as=1 misc=4 color=Black ctype=1/8 loc=Rear")
 
#define PIN_PATCH_SURROUND(n)    PIN_PATCH_STRING(n, "seq=2 as=1 misc=4 color=Orange ctype=1/8 loc=Rear")
 
#define PIN_PATCH_SUBWOOFER(n)    PIN_PATCH_STRING(n, "seq=1 as=1 misc=1 ctype=ATAPI device=Speaker loc=Onboard conn=Fixed")
 
#define PIN_PATCH_DOCK_LINE_OUT(n)    PIN_PATCH_STRING(n, "seq=15 as=3 color=Black ctype=1/8 loc=Ext-Rear")
 
#define PIN_PATCH_DOCK_HP(n)    PIN_PATCH_STRING(n, "seq=15 as=3 color=Black ctype=1/8 device=Headphones loc=Ext-Rear")
 
#define PIN_PATCH_DOCK_MIC_IN(n)    PIN_PATCH_STRING(n, "as=4 color=Black ctype=1/8 device=Mic loc=Ext-Left")
 

Enumerations

enum  { PIN_PATCH_TYPE_EOL , PIN_PATCH_TYPE_STRING , PIN_PATCH_TYPE_MASK , PIN_PATCH_TYPE_OVERRIDE }
 

Macro Definition Documentation

◆ PIN_OVERRIDE

#define PIN_OVERRIDE (   n,
  newvalue 
)
Value:
{ \
.nid = n, \
.patch.override = newvalue \
}
uint8_t n
@ PIN_PATCH_TYPE_OVERRIDE
Definition: pin_patch.h:93

Definition at line 43 of file pin_patch.h.

◆ PIN_PATCH_BASS_SPEAKER

#define PIN_PATCH_BASS_SPEAKER (   n)     PIN_PATCH_STRING(n, "as=3 misc=1 ctype=ATAPI loc=Onboard conn=Fixed")

Definition at line 56 of file pin_patch.h.

◆ PIN_PATCH_CLFE

#define PIN_PATCH_CLFE (   n)     PIN_PATCH_STRING(n, "seq=1 as=1 misc=4 color=Black ctype=1/8 loc=Rear")

Definition at line 76 of file pin_patch.h.

◆ PIN_PATCH_DOCK_HP

#define PIN_PATCH_DOCK_HP (   n)     PIN_PATCH_STRING(n, "seq=15 as=3 color=Black ctype=1/8 device=Headphones loc=Ext-Rear")

Definition at line 84 of file pin_patch.h.

◆ PIN_PATCH_DOCK_LINE_OUT

#define PIN_PATCH_DOCK_LINE_OUT (   n)     PIN_PATCH_STRING(n, "seq=15 as=3 color=Black ctype=1/8 loc=Ext-Rear")

Definition at line 82 of file pin_patch.h.

◆ PIN_PATCH_DOCK_MIC_IN

#define PIN_PATCH_DOCK_MIC_IN (   n)     PIN_PATCH_STRING(n, "as=4 color=Black ctype=1/8 device=Mic loc=Ext-Left")

Definition at line 86 of file pin_patch.h.

◆ PIN_PATCH_HP

#define PIN_PATCH_HP (   n)     PIN_PATCH_STRING(n, "seq=15 as=1 misc=1 color=Green ctype=1/8 device=Headphones loc=Rear")

Definition at line 52 of file pin_patch.h.

◆ PIN_PATCH_HP_OUT

#define PIN_PATCH_HP_OUT (   n)     PIN_PATCH_STRING(n, "seq=15 as=1 color=Green ctype=1/8 device=Headphones loc=Rear")

Definition at line 50 of file pin_patch.h.

◆ PIN_PATCH_HPMIC_WITH_DETECT

#define PIN_PATCH_HPMIC_WITH_DETECT (   n)     PIN_PATCH_STRING(n, "seq=12 as=3 color=Pink ctype=1/8 device=Mic loc=Rear")

Definition at line 74 of file pin_patch.h.

◆ PIN_PATCH_HPMIC_WO_DETECT

#define PIN_PATCH_HPMIC_WO_DETECT (   n)     PIN_PATCH_STRING(n, "seq=13 as=3 misc=1 color=Pink ctype=1/8 device=Mic loc=Rear")

Definition at line 72 of file pin_patch.h.

◆ PIN_PATCH_JACK_WO_DETECT

#define PIN_PATCH_JACK_WO_DETECT (   n)     PIN_PATCH_STRING(n, "seq=12 as=3 misc=1 color=Pink ctype=1/8 device=Mic loc=Rear")

Definition at line 70 of file pin_patch.h.

◆ PIN_PATCH_LINE_IN

#define PIN_PATCH_LINE_IN (   n)     PIN_PATCH_STRING(n, "seq=1 as=3 color=Blue ctype=1/8 device=Line-in loc=Rear")

Definition at line 64 of file pin_patch.h.

◆ PIN_PATCH_LINE_OUT

#define PIN_PATCH_LINE_OUT (   n)     PIN_PATCH_STRING(n, "as=1 color=Green ctype=1/8 loc=Rear")

Definition at line 66 of file pin_patch.h.

◆ PIN_PATCH_MIC_FRONT

#define PIN_PATCH_MIC_FRONT (   n)     PIN_PATCH_STRING(n, "as=4 misc=12 color=Pink ctype=1/8 device=Mic loc=Front")

Definition at line 62 of file pin_patch.h.

◆ PIN_PATCH_MIC_IN

#define PIN_PATCH_MIC_IN (   n)     PIN_PATCH_STRING(n, "as=5 misc=9 color=Pink ctype=1/8 device=Mic loc=Rear")

Definition at line 58 of file pin_patch.h.

◆ PIN_PATCH_MIC_INTERNAL

#define PIN_PATCH_MIC_INTERNAL (   n)     PIN_PATCH_STRING(n, "as=6 misc=1 ctype=Digital device=Mic loc=Internal conn=Fixed")

Definition at line 60 of file pin_patch.h.

◆ PIN_PATCH_NOT_APPLICABLE

#define PIN_PATCH_NOT_APPLICABLE (   n)     PIN_PATCH_STRING(n, "as=15 misc=1 color=Black ctype=1/8 device=Speaker loc=Rear conn=None")

Definition at line 48 of file pin_patch.h.

◆ PIN_PATCH_SPDIF_OUT

#define PIN_PATCH_SPDIF_OUT (   n)     PIN_PATCH_STRING(n, "as=4 misc=1 color=Green ctype=Optical device=SPDIF-out loc=Rear")

Definition at line 68 of file pin_patch.h.

◆ PIN_PATCH_SPEAKER

#define PIN_PATCH_SPEAKER (   n)     PIN_PATCH_STRING(n, "as=2 misc=1 ctype=ATAPI loc=Onboard conn=Fixed")

Definition at line 54 of file pin_patch.h.

◆ PIN_PATCH_STRING

#define PIN_PATCH_STRING (   n,
  patchstr 
)
Value:
{ \
.nid = n, \
.patch.string = patchstr \
}
@ PIN_PATCH_TYPE_STRING
Definition: pin_patch.h:91

Definition at line 38 of file pin_patch.h.

◆ PIN_PATCH_SUBWOOFER

#define PIN_PATCH_SUBWOOFER (   n)     PIN_PATCH_STRING(n, "seq=1 as=1 misc=1 ctype=ATAPI device=Speaker loc=Onboard conn=Fixed")

Definition at line 80 of file pin_patch.h.

◆ PIN_PATCH_SURROUND

#define PIN_PATCH_SURROUND (   n)     PIN_PATCH_STRING(n, "seq=2 as=1 misc=4 color=Orange ctype=1/8 loc=Rear")

Definition at line 78 of file pin_patch.h.

◆ PIN_SUBVENDOR

#define PIN_SUBVENDOR (   sv)    { .id = sv }

Definition at line 35 of file pin_patch.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PIN_PATCH_TYPE_EOL 
PIN_PATCH_TYPE_STRING 
PIN_PATCH_TYPE_MASK 
PIN_PATCH_TYPE_OVERRIDE 

Definition at line 89 of file pin_patch.h.