ich.c (14055d2a091279e964e09367f7f41e34e1c2181f) | ich.c (851a904af5cd8e3633e18f70af19c49672a5f729) |
---|---|
1/*- 2 * Copyright (c) 2000 Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp> 3 * Copyright (c) 2001 Cameron Grant <cg@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 547 unchanged lines hidden (view full) --- 556/* Sysctl to control ac97 speed (some boards appear to end up using 557 * XTAL_IN rather than BIT_CLK for link timing). 558 */ 559 560static int 561ich_initsys(struct sc_info* sc) 562{ 563#ifdef SND_DYNSYSCTL | 1/*- 2 * Copyright (c) 2000 Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp> 3 * Copyright (c) 2001 Cameron Grant <cg@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 547 unchanged lines hidden (view full) --- 556/* Sysctl to control ac97 speed (some boards appear to end up using 557 * XTAL_IN rather than BIT_CLK for link timing). 558 */ 559 560static int 561ich_initsys(struct sc_info* sc) 562{ 563#ifdef SND_DYNSYSCTL |
564 /* XXX: this should move to a device specific sysctl "dev.pcm.X.yyy" 565 via device_get_sysctl_*() as discussed on multimedia@ in msg-id 566 <861wujij2q.fsf@xps.des.no> */ |
|
564 SYSCTL_ADD_INT(snd_sysctl_tree(sc->dev), 565 SYSCTL_CHILDREN(snd_sysctl_tree_top(sc->dev)), 566 OID_AUTO, "ac97rate", CTLFLAG_RW, 567 &sc->ac97rate, 48000, 568 "AC97 link rate (default = 48000)"); 569#endif /* SND_DYNSYSCTL */ 570 return 0; 571} --- 469 unchanged lines hidden --- | 567 SYSCTL_ADD_INT(snd_sysctl_tree(sc->dev), 568 SYSCTL_CHILDREN(snd_sysctl_tree_top(sc->dev)), 569 OID_AUTO, "ac97rate", CTLFLAG_RW, 570 &sc->ac97rate, 48000, 571 "AC97 link rate (default = 48000)"); 572#endif /* SND_DYNSYSCTL */ 573 return 0; 574} --- 469 unchanged lines hidden --- |