diff options
Diffstat (limited to 'sound/pci/hda/patch_cirrus.c')
-rw-r--r-- | sound/pci/hda/patch_cirrus.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index 0d9c58f13560..bd8d46cca2b3 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
@@ -68,6 +68,7 @@ enum { | |||
68 | enum { | 68 | enum { |
69 | CS421X_CDB4210, | 69 | CS421X_CDB4210, |
70 | CS421X_SENSE_B, | 70 | CS421X_SENSE_B, |
71 | CS421X_STUMPY, | ||
71 | }; | 72 | }; |
72 | 73 | ||
73 | /* Vendor-specific processing widget */ | 74 | /* Vendor-specific processing widget */ |
@@ -538,6 +539,7 @@ static int patch_cs420x(struct hda_codec *codec) | |||
538 | /* CS4210 board names */ | 539 | /* CS4210 board names */ |
539 | static const struct hda_model_fixup cs421x_models[] = { | 540 | static const struct hda_model_fixup cs421x_models[] = { |
540 | { .id = CS421X_CDB4210, .name = "cdb4210" }, | 541 | { .id = CS421X_CDB4210, .name = "cdb4210" }, |
542 | { .id = CS421X_STUMPY, .name = "stumpy" }, | ||
541 | {} | 543 | {} |
542 | }; | 544 | }; |
543 | 545 | ||
@@ -559,6 +561,17 @@ static const struct hda_pintbl cdb4210_pincfgs[] = { | |||
559 | {} /* terminator */ | 561 | {} /* terminator */ |
560 | }; | 562 | }; |
561 | 563 | ||
564 | /* Stumpy ChromeBox */ | ||
565 | static const struct hda_pintbl stumpy_pincfgs[] = { | ||
566 | { 0x05, 0x022120f0 }, | ||
567 | { 0x06, 0x901700f0 }, | ||
568 | { 0x07, 0x02a120f0 }, | ||
569 | { 0x08, 0x77a70037 }, | ||
570 | { 0x09, 0x77a6003e }, | ||
571 | { 0x0a, 0x434510f0 }, | ||
572 | {} /* terminator */ | ||
573 | }; | ||
574 | |||
562 | /* Setup GPIO/SENSE for each board (if used) */ | 575 | /* Setup GPIO/SENSE for each board (if used) */ |
563 | static void cs421x_fixup_sense_b(struct hda_codec *codec, | 576 | static void cs421x_fixup_sense_b(struct hda_codec *codec, |
564 | const struct hda_fixup *fix, int action) | 577 | const struct hda_fixup *fix, int action) |
@@ -578,7 +591,11 @@ static const struct hda_fixup cs421x_fixups[] = { | |||
578 | [CS421X_SENSE_B] = { | 591 | [CS421X_SENSE_B] = { |
579 | .type = HDA_FIXUP_FUNC, | 592 | .type = HDA_FIXUP_FUNC, |
580 | .v.func = cs421x_fixup_sense_b, | 593 | .v.func = cs421x_fixup_sense_b, |
581 | } | 594 | }, |
595 | [CS421X_STUMPY] = { | ||
596 | .type = HDA_FIXUP_PINS, | ||
597 | .v.pins = stumpy_pincfgs, | ||
598 | }, | ||
582 | }; | 599 | }; |
583 | 600 | ||
584 | static const struct hda_verb cs421x_coef_init_verbs[] = { | 601 | static const struct hda_verb cs421x_coef_init_verbs[] = { |