via8233.c (ee8e8d867e174fc969604a930ab2caf74af409b7) | via8233.c (851a904af5cd8e3633e18f70af19c49672a5f729) |
---|---|
1/*- 2 * Copyright (c) 2002 Orion Hodson <orion@freebsd.org> 3 * Portions of this code derived from via82c686.c: 4 * Copyright (c) 2000 David Jones <dej@ox.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 172 unchanged lines hidden (view full) --- 181 return 0; 182} 183#endif /* SND_DYNSYSCTL */ 184 185static void 186via_init_sysctls(device_t dev) 187{ 188#ifdef SND_DYNSYSCTL | 1/*- 2 * Copyright (c) 2002 Orion Hodson <orion@freebsd.org> 3 * Portions of this code derived from via82c686.c: 4 * Copyright (c) 2000 David Jones <dej@ox.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 172 unchanged lines hidden (view full) --- 181 return 0; 182} 183#endif /* SND_DYNSYSCTL */ 184 185static void 186via_init_sysctls(device_t dev) 187{ 188#ifdef SND_DYNSYSCTL |
189 /* XXX: an user should be able to set this with a control tool, 190 if not done before 7.0-RELEASE, this needs to be converted to 191 a device specific sysctl "dev.pcm.X.yyy" via device_get_sysctl_*() 192 as discussed on multimedia@ in msg-id <861wujij2q.fsf@xps.des.no> */ |
|
189 SYSCTL_ADD_PROC(snd_sysctl_tree(dev), 190 SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), | 193 SYSCTL_ADD_PROC(snd_sysctl_tree(dev), 194 SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), |
191 OID_AUTO, "spdif_enabled", | 195 OID_AUTO, "_spdif_enabled", |
192 CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), 193 sysctl_via8233_spdif_enable, "I", 194 "Enable S/PDIF output on primary playback channel"); 195 SYSCTL_ADD_PROC(snd_sysctl_tree(dev), 196 SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), | 196 CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), 197 sysctl_via8233_spdif_enable, "I", 198 "Enable S/PDIF output on primary playback channel"); 199 SYSCTL_ADD_PROC(snd_sysctl_tree(dev), 200 SYSCTL_CHILDREN(snd_sysctl_tree_top(dev)), |
197 OID_AUTO, "via_dxs_src", | 201 OID_AUTO, "_via_dxs_src", |
198 CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), 199 sysctl_via8233_dxs_src, "I", 200 "Enable VIA DXS Sample Rate Converter"); 201#endif 202} 203 204static __inline u_int32_t 205via_rd(struct via_info *via, int regno, int size) --- 886 unchanged lines hidden --- | 202 CTLTYPE_INT | CTLFLAG_RW, dev, sizeof(dev), 203 sysctl_via8233_dxs_src, "I", 204 "Enable VIA DXS Sample Rate Converter"); 205#endif 206} 207 208static __inline u_int32_t 209via_rd(struct via_info *via, int regno, int size) --- 886 unchanged lines hidden --- |