diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-06-17 11:17:18 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-24 05:53:43 -0400 |
commit | 768248256339da88d65088c8beffe1a3dcd9f1ca (patch) | |
tree | bcaa585a61ec370fcd7a204b993091cd6d8655c9 /Documentation/sound | |
parent | 4ea6fbc8eb23c3ae5fd2fb55a340ab85c8649bce (diff) |
ALSA: hda - Add description about patch loading
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Documentation/sound')
-rw-r--r-- | Documentation/sound/alsa/HD-Audio.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Documentation/sound/alsa/HD-Audio.txt b/Documentation/sound/alsa/HD-Audio.txt index 88b7433d2f11..8bc9867c0a3a 100644 --- a/Documentation/sound/alsa/HD-Audio.txt +++ b/Documentation/sound/alsa/HD-Audio.txt | |||
@@ -403,6 +403,52 @@ re-configure based on that state, run like below: | |||
403 | ------------------------------------------------------------------------ | 403 | ------------------------------------------------------------------------ |
404 | 404 | ||
405 | 405 | ||
406 | Early Patching | ||
407 | ~~~~~~~~~~~~~~ | ||
408 | When CONFIG_SND_HDA_PATCH_LOADER=y is set, you can pass a "patch" as a | ||
409 | firmware file for modifying the HD-audio setup before initializing the | ||
410 | codec. This can work basically like the reconfiguration via sysfs in | ||
411 | the above, but it does it before the first codec configuration. | ||
412 | |||
413 | The patch file looks like below: | ||
414 | |||
415 | ------------------------------------------------------------------------ | ||
416 | [codec] | ||
417 | 0x12345678 0xabcd1234 2 | ||
418 | |||
419 | [model] | ||
420 | auto | ||
421 | |||
422 | [pincfg] | ||
423 | 0x12 0x411111f0 | ||
424 | |||
425 | [verb] | ||
426 | 0x20 0x500 0x03 | ||
427 | 0x20 0x400 0xff | ||
428 | |||
429 | [hint] | ||
430 | hp_detect = yes | ||
431 | ------------------------------------------------------------------------ | ||
432 | |||
433 | The file needs to have a line `[codec]`. The next line should contain | ||
434 | three numbers indicating the codec vendor-id (0x12345678 in the | ||
435 | example), the codec subsystem-id (0xabcd1234) and the address (2) of | ||
436 | the codec. The rest patch entries are applied to this specified codec | ||
437 | until another codec entry is given. | ||
438 | |||
439 | The `[model]` line allows to change the model name of the each codec. | ||
440 | In the example above, it will be changed to model=auto. | ||
441 | Note that this overrides the module option. | ||
442 | |||
443 | After the `[pincfg]` line, the contents are parsed as the initial | ||
444 | default pin-configurations just like `user_pin_configs` sysfs above. | ||
445 | The values can be shown in user_pin_configs sysfs file, too. | ||
446 | |||
447 | Similarly, the lines after `[verb]` are parsed as `init_verbs` | ||
448 | sysfs entries, and the lines after `[hint]` are parsed as `hints` | ||
449 | sysfs entries, respectively. | ||
450 | |||
451 | |||
406 | Power-Saving | 452 | Power-Saving |
407 | ~~~~~~~~~~~~ | 453 | ~~~~~~~~~~~~ |
408 | The power-saving is a kind of auto-suspend of the device. When the | 454 | The power-saving is a kind of auto-suspend of the device. When the |