Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193270
b: refs/heads/master
c: 10e77dd
h: refs/heads/master
v: v3
  • Loading branch information
Jaroslav Kysela committed Mar 26, 2010
1 parent ca540ee commit a27cd43
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0bf0e5a6f304ac1bc93a80cdd68b4d91f3519eb5
refs/heads/master: 10e77ddac0e1f3b9cea04dfe8180f8641f329703
3 changes: 3 additions & 0 deletions trunk/Documentation/sound/alsa/HD-Audio.txt
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@ probing, the proc file is available, so you can get the raw codec
information before modified by the driver. Of course, the driver
isn't usable with `probe_only=1`. But you can continue the
configuration via hwdep sysfs file if hda-reconfig option is enabled.
Using `probe_only` mask 2 skips the reset of HDA codecs (use
`probe_only=3` as module option). The hwdep interface can be used
to determine the BIOS codec initialization.


hda-verb
Expand Down
10 changes: 2 additions & 8 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,15 +609,11 @@ int /*__devinit*/ snd_hda_bus_new(struct snd_card *card,
}
EXPORT_SYMBOL_HDA(snd_hda_bus_new);

#define is_hwio_config(codec) \
(codec->modelname && !strcmp(codec->modelname, "hwio"))
#ifdef CONFIG_SND_HDA_GENERIC
#define is_generic_config(codec) \
((codec->modelname && !strcmp(codec->modelname, "generic")) || \
is_hwio_config(codec))
(codec->modelname && !strcmp(codec->modelname, "generic"))
#else
#define is_generic_config(codec) \
is_hwio_config(codec)
#define is_generic_config(codec) 0
#endif

#ifdef MODULE
Expand Down Expand Up @@ -1117,8 +1113,6 @@ int snd_hda_codec_configure(struct hda_codec *codec)
}

if (is_generic_config(codec)) {
if (is_hwio_config(codec))
goto patched;
err = snd_hda_parse_generic_codec(codec);
goto patched;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2577,7 +2577,7 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci,

/* initialize chip */
azx_init_pci(chip);
azx_init_chip(chip, model[dev] == NULL || strcmp(model[dev], "hwio"));
azx_init_chip(chip, (probe_only[dev] & 2) == 0);

/* codec detection */
if (!chip->codec_mask) {
Expand Down Expand Up @@ -2666,7 +2666,7 @@ static int __devinit azx_probe(struct pci_dev *pci,
goto out_free;
}
#endif
if (!probe_only[dev]) {
if ((probe_only[dev] & 1) == 0) {
err = azx_codec_configure(chip);
if (err < 0)
goto out_free;
Expand Down

0 comments on commit a27cd43

Please sign in to comment.