Skip to content

Commit cae2bdb

Browse files
KailangYangtiwai
authored andcommitted
ALSA: hda/realtek: Add supported ALC257 for ChromeOS
ChromeOS want to support ALC257. Add codec ID to some relation function. Signed-off-by: Kailang Yang <kailang@realtek.com> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/99a88a7dbdb045fd9d934abeb6cec15f@realtek.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent baaacbf commit cae2bdb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3265,6 +3265,7 @@ static void alc_disable_headset_jack_key(struct hda_codec *codec)
32653265
case 0x10ec0230:
32663266
case 0x10ec0236:
32673267
case 0x10ec0256:
3268+
case 0x10ec0257:
32683269
case 0x19e58326:
32693270
alc_write_coef_idx(codec, 0x48, 0x0);
32703271
alc_update_coef_idx(codec, 0x49, 0x0045, 0x0);
@@ -3294,6 +3295,7 @@ static void alc_enable_headset_jack_key(struct hda_codec *codec)
32943295
case 0x10ec0230:
32953296
case 0x10ec0236:
32963297
case 0x10ec0256:
3298+
case 0x10ec0257:
32973299
case 0x19e58326:
32983300
alc_write_coef_idx(codec, 0x48, 0xd011);
32993301
alc_update_coef_idx(codec, 0x49, 0x007f, 0x0045);
@@ -6505,6 +6507,7 @@ static void alc_combo_jack_hp_jd_restart(struct hda_codec *codec)
65056507
case 0x10ec0236:
65066508
case 0x10ec0255:
65076509
case 0x10ec0256:
6510+
case 0x10ec0257:
65086511
case 0x19e58326:
65096512
alc_update_coef_idx(codec, 0x1b, 0x8000, 1 << 15); /* Reset HP JD */
65106513
alc_update_coef_idx(codec, 0x1b, 0x8000, 0 << 15);

0 commit comments

Comments
 (0)