Deleted Added
full compact
ac97.c (153865) ac97.c (154094)
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 */
26
27#include <dev/sound/pcm/sound.h>
28#include <dev/sound/pcm/ac97.h>
29#include <dev/sound/pcm/ac97_patch.h>
30
31#include "mixer_if.h"
32
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25 */
26
27#include <dev/sound/pcm/sound.h>
28#include <dev/sound/pcm/ac97.h>
29#include <dev/sound/pcm/ac97_patch.h>
30
31#include "mixer_if.h"
32
33SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/ac97.c 153865 2005-12-30 01:06:29Z ariff $");
33SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/ac97.c 154094 2006-01-07 05:20:46Z ariff $");
34
35MALLOC_DEFINE(M_AC97, "ac97", "ac97 codec");
36
37struct ac97mixtable_entry {
38 int reg:8; /* register index */
39 /* reg < 0 if inverted polarity */
40 unsigned bits:4; /* width of control field */
41 unsigned ofs:4; /* offset (only if stereo=0) */

--- 91 unchanged lines hidden (view full) ---

133 { 0x41445361, 0x00, 0, "AD1886", ad1886_patch },
134 { 0x41445362, 0x00, 0, "AD1887", 0 },
135 { 0x41445363, 0x00, 0, "AD1886A", 0 },
136 { 0x41445368, 0x00, 0, "AD1888", ad198x_patch },
137 { 0x41445370, 0x00, 0, "AD1980", ad198x_patch },
138 { 0x41445372, 0x00, 0, "AD1981A", 0 },
139 { 0x41445374, 0x00, 0, "AD1981B", 0 },
140 { 0x41445375, 0x00, 0, "AD1985", ad198x_patch },
34
35MALLOC_DEFINE(M_AC97, "ac97", "ac97 codec");
36
37struct ac97mixtable_entry {
38 int reg:8; /* register index */
39 /* reg < 0 if inverted polarity */
40 unsigned bits:4; /* width of control field */
41 unsigned ofs:4; /* offset (only if stereo=0) */

--- 91 unchanged lines hidden (view full) ---

133 { 0x41445361, 0x00, 0, "AD1886", ad1886_patch },
134 { 0x41445362, 0x00, 0, "AD1887", 0 },
135 { 0x41445363, 0x00, 0, "AD1886A", 0 },
136 { 0x41445368, 0x00, 0, "AD1888", ad198x_patch },
137 { 0x41445370, 0x00, 0, "AD1980", ad198x_patch },
138 { 0x41445372, 0x00, 0, "AD1981A", 0 },
139 { 0x41445374, 0x00, 0, "AD1981B", 0 },
140 { 0x41445375, 0x00, 0, "AD1985", ad198x_patch },
141 { 0x41445378, 0x00, 0, "AD1986", ad198x_patch },
141 { 0x414b4d00, 0x00, 1, "AK4540", 0 },
142 { 0x414b4d01, 0x00, 1, "AK4542", 0 },
143 { 0x414b4d02, 0x00, 1, "AK4543", 0 },
144 { 0x414b4d06, 0x00, 0, "AK4544A", 0 },
145 { 0x454b4d07, 0x00, 0, "AK4545", 0 },
146 { 0x414c4320, 0x0f, 0, "ALC100", 0 },
147 { 0x414c4730, 0x0f, 0, "ALC101", 0 },
148 { 0x414c4710, 0x0f, 0, "ALC200", 0 },

--- 818 unchanged lines hidden ---
142 { 0x414b4d00, 0x00, 1, "AK4540", 0 },
143 { 0x414b4d01, 0x00, 1, "AK4542", 0 },
144 { 0x414b4d02, 0x00, 1, "AK4543", 0 },
145 { 0x414b4d06, 0x00, 0, "AK4544A", 0 },
146 { 0x454b4d07, 0x00, 0, "AK4545", 0 },
147 { 0x414c4320, 0x0f, 0, "ALC100", 0 },
148 { 0x414c4730, 0x0f, 0, "ALC101", 0 },
149 { 0x414c4710, 0x0f, 0, "ALC200", 0 },

--- 818 unchanged lines hidden ---