Skip to content

Commit 864773f

Browse files
committed
ALSA: hda/generic: Drop obsoleted obey_preferred_dacs flag
Now we evaluate directly with preferred_dacs table, the flag is no longer used and merely a placeholder. Let's drop the definition and its users. Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 1c801e7 commit 864773f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

sound/pci/hda/hda_generic.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ struct hda_gen_spec {
232232
unsigned int power_down_unused:1; /* power down unused widgets */
233233
unsigned int dac_min_mute:1; /* minimal = mute for DACs */
234234
unsigned int suppress_vmaster:1; /* don't create vmaster kctls */
235-
unsigned int obey_preferred_dacs:1; /* obey preferred_dacs assignment */
236235

237236
/* other internal flags */
238237
unsigned int no_analog:1; /* digital I/O only */

sound/pci/hda/patch_realtek.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6645,10 +6645,8 @@ static void alc289_fixup_asus_ga401(struct hda_codec *codec,
66456645
};
66466646
struct alc_spec *spec = codec->spec;
66476647

6648-
if (action == HDA_FIXUP_ACT_PRE_PROBE) {
6648+
if (action == HDA_FIXUP_ACT_PRE_PROBE)
66496649
spec->gen.preferred_dacs = preferred_pairs;
6650-
spec->gen.obey_preferred_dacs = 1;
6651-
}
66526650
}
66536651

66546652
/* The DAC of NID 0x3 will introduce click/pop noise on headphones, so invalidate it */

0 commit comments

Comments
 (0)