Skip to content

Commit e26c6bc

Browse files
leoliu-ocopsiff
authored andcommitted
ALSA: hda: Add support of Zhaoxin SB HDAC
zhaoxin inclusion category: feature ------------------- Add some special initialization for Zhaoxin SB HDAC. Signed-off-by: LeoLiu-oc <leoliu-oc@zhaoxin.com>
1 parent 8cd3029 commit e26c6bc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sound/pci/hda/hda_intel.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,8 @@ static int check_position_fix(struct azx *chip, int fix)
16461646
}
16471647

16481648
/* Check VIA/ATI HD Audio Controller exist */
1649-
if (chip->driver_type == AZX_DRIVER_VIA) {
1649+
if (chip->driver_type == AZX_DRIVER_VIA ||
1650+
chip->driver_type == AZX_DRIVER_ZHAOXIN) {
16501651
dev_dbg(chip->card->dev, "Using VIACOMBO position fix\n");
16511652
return POS_FIX_VIACOMBO;
16521653
}
@@ -1800,7 +1801,8 @@ static void azx_check_snoop_available(struct azx *chip)
18001801

18011802
snoop = true;
18021803
if (azx_get_snoop_type(chip) == AZX_SNOOP_TYPE_NONE &&
1803-
chip->driver_type == AZX_DRIVER_VIA) {
1804+
(chip->driver_type == AZX_DRIVER_VIA ||
1805+
chip->driver_type == AZX_DRIVER_ZHAOXIN)) {
18041806
/* force to non-snoop mode for a new VIA controller
18051807
* when BIOS is set
18061808
*/

0 commit comments

Comments
 (0)