Skip to content

Commit 5dddc07

Browse files
leoliu-oclanlanxiyiji
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 <[email protected]> Link: #255 (cherry picked from commit 08663d9) Signed-off-by: Wentao Guan <[email protected]>
1 parent 65b5fd7 commit 5dddc07

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sound/hda/controllers/intel.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,8 @@ static int check_position_fix(struct azx *chip, int fix)
15451545
}
15461546

15471547
/* Check VIA/ATI HD Audio Controller exist */
1548-
if (chip->driver_type == AZX_DRIVER_VIA) {
1548+
if (chip->driver_type == AZX_DRIVER_VIA ||
1549+
chip->driver_type == AZX_DRIVER_ZHAOXIN) {
15491550
dev_dbg(chip->card->dev, "Using VIACOMBO position fix\n");
15501551
return POS_FIX_VIACOMBO;
15511552
}
@@ -1699,7 +1700,7 @@ static void azx_check_snoop_available(struct azx *chip)
16991700

17001701
snoop = true;
17011702
if (azx_get_snoop_type(chip) == AZX_SNOOP_TYPE_NONE &&
1702-
chip->driver_type == AZX_DRIVER_VIA) {
1703+
(chip->driver_type == AZX_DRIVER_VIA || chip->driver_type == AZX_DRIVER_ZHAOXIN)) {
17031704
/* force to non-snoop mode for a new VIA controller
17041705
* when BIOS is set
17051706
*/

0 commit comments

Comments
 (0)