Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273577
b: refs/heads/master
c: 746cdfb
h: refs/heads/master
i:
  273575: fbc027b
v: v3
  • Loading branch information
Dean Nelson authored and Jean Delvare committed Nov 4, 2011
1 parent 3ad2605 commit 2abc409
Show file tree
Hide file tree
Showing 23 changed files with 121 additions and 198 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: b2409fb6a49d1f633a8fc488e48043da7d3fd6a7
refs/heads/master: 746cdfbf01c0a30d59f6e1b6942d432658d7c7cd
17 changes: 0 additions & 17 deletions trunk/Documentation/devicetree/bindings/ata/calxeda-sata.txt

This file was deleted.

7 changes: 0 additions & 7 deletions trunk/drivers/ata/ahci_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,18 +202,11 @@ static int __devexit ahci_remove(struct platform_device *pdev)
return 0;
}

static const struct of_device_id ahci_of_match[] = {
{ .compatible = "calxeda,hb-ahci", },
{},
};
MODULE_DEVICE_TABLE(of, ahci_of_match);

static struct platform_driver ahci_driver = {
.remove = __devexit_p(ahci_remove),
.driver = {
.name = "ahci",
.owner = THIS_MODULE,
.of_match_table = ahci_of_match,
},
.id_table = ahci_devtype,
};
Expand Down
15 changes: 13 additions & 2 deletions trunk/drivers/hwmon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ config SENSORS_I5K_AMB

config SENSORS_F71805F
tristate "Fintek F71805F/FG, F71806F/FG and F71872F/FG"
depends on !PPC
help
If you say yes here you get support for hardware monitoring
features of the Fintek F71805F/FG, F71806F/FG and F71872F/FG
Expand All @@ -345,6 +346,7 @@ config SENSORS_F71805F

config SENSORS_F71882FG
tristate "Fintek F71882FG and compatibles"
depends on !PPC
help
If you say yes here you get support for hardware monitoring
features of many Fintek Super-I/O (LPC) chips. The currently
Expand Down Expand Up @@ -468,6 +470,7 @@ config SENSORS_IBMPEX

config SENSORS_IT87
tristate "ITE IT87xx and compatibles"
depends on !PPC
select HWMON_VID
help
If you say yes here you get support for ITE IT8705F, IT8712F,
Expand Down Expand Up @@ -824,6 +827,7 @@ config SENSORS_NTC_THERMISTOR

config SENSORS_PC87360
tristate "National Semiconductor PC87360 family"
depends on !PPC
select HWMON_VID
help
If you say yes here you get access to the hardware monitoring
Expand All @@ -837,6 +841,7 @@ config SENSORS_PC87360

config SENSORS_PC87427
tristate "National Semiconductor PC87427"
depends on !PPC
help
If you say yes here you get access to the hardware monitoring
functions of the National Semiconductor PC87427 Super-I/O chip.
Expand Down Expand Up @@ -928,7 +933,7 @@ config SENSORS_SMM665

config SENSORS_DME1737
tristate "SMSC DME1737, SCH311x and compatibles"
depends on I2C && EXPERIMENTAL
depends on I2C && EXPERIMENTAL && !PPC
select HWMON_VID
help
If you say yes here you get support for the hardware monitoring
Expand Down Expand Up @@ -970,6 +975,7 @@ config SENSORS_EMC6W201

config SENSORS_SMSC47M1
tristate "SMSC LPC47M10x and compatibles"
depends on !PPC
help
If you say yes here you get support for the integrated fan
monitoring and control capabilities of the SMSC LPC47B27x,
Expand Down Expand Up @@ -1003,7 +1009,7 @@ config SENSORS_SMSC47M192

config SENSORS_SMSC47B397
tristate "SMSC LPC47B397-NC"
depends on EXPERIMENTAL
depends on EXPERIMENTAL && !PPC
help
If you say yes here you get support for the SMSC LPC47B397-NC
sensor chip.
Expand All @@ -1017,6 +1023,7 @@ config SENSORS_SCH56XX_COMMON

config SENSORS_SCH5627
tristate "SMSC SCH5627"
depends on !PPC
select SENSORS_SCH56XX_COMMON
help
If you say yes here you get support for the hardware monitoring
Expand All @@ -1027,6 +1034,7 @@ config SENSORS_SCH5627

config SENSORS_SCH5636
tristate "SMSC SCH5636"
depends on !PPC
select SENSORS_SCH56XX_COMMON
help
SMSC SCH5636 Super I/O chips include an embedded microcontroller for
Expand Down Expand Up @@ -1150,6 +1158,7 @@ config SENSORS_VIA686A

config SENSORS_VT1211
tristate "VIA VT1211"
depends on !PPC
select HWMON_VID
help
If you say yes here then you get support for hardware monitoring
Expand Down Expand Up @@ -1262,6 +1271,7 @@ config SENSORS_W83L786NG

config SENSORS_W83627HF
tristate "Winbond W83627HF, W83627THF, W83637HF, W83687THF, W83697HF"
depends on !PPC
select HWMON_VID
help
If you say yes here you get support for the Winbond W836X7 series
Expand All @@ -1273,6 +1283,7 @@ config SENSORS_W83627HF

config SENSORS_W83627EHF
tristate "Winbond W83627EHF/EHG/DHG, W83667HG, NCT6775F, NCT6776F"
depends on !PPC
select HWMON_VID
help
If you say yes here you get support for the hardware
Expand Down
28 changes: 12 additions & 16 deletions trunk/drivers/of/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,31 +310,27 @@ static const struct of_dev_auxdata *of_dev_lookup(const struct of_dev_auxdata *l
struct device_node *np)
{
struct resource res;

if (!lookup)
return NULL;

for(; lookup->name != NULL; lookup++) {
if (!of_device_is_compatible(np, lookup->compatible))
continue;
if (of_address_to_resource(np, 0, &res))
continue;
if (res.start != lookup->phys_addr)
continue;
pr_debug("%s: devname=%s\n", np->full_name, lookup->name);
return lookup;
if (lookup) {
for(; lookup->name != NULL; lookup++) {
if (!of_device_is_compatible(np, lookup->compatible))
continue;
if (of_address_to_resource(np, 0, &res))
continue;
if (res.start != lookup->phys_addr)
continue;
pr_debug("%s: devname=%s\n", np->full_name, lookup->name);
return lookup;
}
}

return NULL;
}

/**
* of_platform_bus_create() - Create a device for a node and its children.
* @bus: device node of the bus to instantiate
* @matches: match table for bus nodes
* @lookup: auxdata table for matching id and platform_data with device nodes
* disallow recursive creation of child buses
* @parent: parent for new device, or NULL for top level.
* @strict: require compatible property
*
* Creates a platform_device for the provided device_node, and optionally
* recursively create devices for all the child nodes.
Expand Down
10 changes: 0 additions & 10 deletions trunk/include/linux/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,16 +321,6 @@ static inline struct device_node *of_parse_phandle(struct device_node *np,
return NULL;
}

static inline int of_alias_get_id(struct device_node *np, const char *stem)
{
return -ENOSYS;
}

static inline int of_machine_is_compatible(const char *compat)
{
return 0;
}

#define of_match_ptr(_ptr) NULL
#define of_match_node(_matches, _node) NULL
#endif /* CONFIG_OF */
Expand Down
9 changes: 1 addition & 8 deletions trunk/sound/core/hwdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,7 @@ static int snd_hwdep_control_ioctl(struct snd_card *card,
if (get_user(device, (int __user *)arg))
return -EFAULT;
mutex_lock(&register_mutex);

if (device < 0)
device = 0;
else if (device < SNDRV_MINOR_HWDEPS)
device++;
else
device = SNDRV_MINOR_HWDEPS;

device = device < 0 ? 0 : device + 1;
while (device < SNDRV_MINOR_HWDEPS) {
if (snd_hwdep_search(card, device))
break;
Expand Down
2 changes: 2 additions & 0 deletions trunk/sound/pci/hda/hda_hwdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,8 @@ static int get_line_from_fw(char *buf, int size, struct firmware *fw)
}
if (!fw->size)
return 0;
if (size < fw->size)
size = fw->size;

for (len = 0; len < fw->size; len++) {
if (!*p)
Expand Down
4 changes: 0 additions & 4 deletions trunk/sound/pci/hda/hda_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,6 @@ struct auto_pin_cfg {
(cfg & AC_DEFCFG_SEQUENCE)
#define get_defcfg_device(cfg) \
((cfg & AC_DEFCFG_DEVICE) >> AC_DEFCFG_DEVICE_SHIFT)
#define get_defcfg_misc(cfg) \
((cfg & AC_DEFCFG_MISC) >> AC_DEFCFG_MISC_SHIFT)

/* bit-flags for snd_hda_parse_pin_def_config() behavior */
#define HDA_PINCFG_NO_HP_FIXUP (1 << 0) /* no HP-split */
Expand Down Expand Up @@ -511,8 +509,6 @@ int snd_hda_jack_detect(struct hda_codec *codec, hda_nid_t nid);
static inline bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid)
{
return (snd_hda_query_pin_caps(codec, nid) & AC_PINCAP_PRES_DETECT) &&
!(get_defcfg_misc(snd_hda_codec_get_pincfg(codec, nid) &
AC_DEFCFG_MISC_NO_PRESENCE)) &&
(get_wcaps(codec, nid) & AC_WCAP_UNSOL_CAP);
}

Expand Down
5 changes: 4 additions & 1 deletion trunk/sound/pci/hda/patch_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@ static int hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid)
unsigned int caps, config;
int pin_idx;
struct hdmi_spec_per_pin *per_pin;
struct hdmi_eld *eld;
int err;

caps = snd_hda_param_read(codec, pin_nid, AC_PAR_PIN_CAP);
Expand All @@ -1022,6 +1023,7 @@ static int hdmi_add_pin(struct hda_codec *codec, hda_nid_t pin_nid)

pin_idx = spec->num_pins;
per_pin = &spec->pins[pin_idx];
eld = &per_pin->sink_eld;

per_pin->pin_nid = pin_nid;

Expand Down Expand Up @@ -1574,7 +1576,7 @@ static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo,
struct snd_pcm_substream *substream)
{
int chs;
unsigned int dataDCC2, channel_id;
unsigned int dataDCC1, dataDCC2, channel_id;
int i;
struct hdmi_spec *spec = codec->spec;
struct hda_spdif_out *spdif =
Expand All @@ -1584,6 +1586,7 @@ static int nvhdmi_8ch_7x_pcm_prepare(struct hda_pcm_stream *hinfo,

chs = substream->runtime->channels;

dataDCC1 = AC_DIG1_ENABLE | AC_DIG1_COPYRIGHT;
dataDCC2 = 0x2;

/* turn off SPDIF once; otherwise the IEC958 bits won't be updated */
Expand Down
23 changes: 10 additions & 13 deletions trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,29 +1604,27 @@ static void alc_auto_init_digital(struct hda_codec *codec)
static void alc_auto_parse_digital(struct hda_codec *codec)
{
struct alc_spec *spec = codec->spec;
int i, err, nums;
int i, err;
hda_nid_t dig_nid;

/* support multiple SPDIFs; the secondary is set up as a slave */
nums = 0;
for (i = 0; i < spec->autocfg.dig_outs; i++) {
hda_nid_t conn[4];
err = snd_hda_get_connections(codec,
spec->autocfg.dig_out_pins[i],
conn, ARRAY_SIZE(conn));
if (err <= 0)
if (err < 0)
continue;
dig_nid = conn[0]; /* assume the first element is audio-out */
if (!nums) {
if (!i) {
spec->multiout.dig_out_nid = dig_nid;
spec->dig_out_type = spec->autocfg.dig_out_type[0];
} else {
spec->multiout.slave_dig_outs = spec->slave_dig_outs;
if (nums >= ARRAY_SIZE(spec->slave_dig_outs) - 1)
if (i >= ARRAY_SIZE(spec->slave_dig_outs) - 1)
break;
spec->slave_dig_outs[nums - 1] = dig_nid;
spec->slave_dig_outs[i - 1] = dig_nid;
}
nums++;
}

if (spec->autocfg.dig_in_pin) {
Expand Down Expand Up @@ -2272,7 +2270,6 @@ static int alc_build_pcms(struct hda_codec *codec)
struct alc_spec *spec = codec->spec;
struct hda_pcm *info = spec->pcm_rec;
const struct hda_pcm_stream *p;
bool have_multi_adcs;
int i;

codec->num_pcms = 1;
Expand Down Expand Up @@ -2351,11 +2348,8 @@ static int alc_build_pcms(struct hda_codec *codec)
/* If the use of more than one ADC is requested for the current
* model, configure a second analog capture-only PCM.
*/
have_multi_adcs = (spec->num_adc_nids > 1) &&
!spec->dyn_adc_switch && !spec->auto_mic &&
(!spec->input_mux || spec->input_mux->num_items > 1);
/* Additional Analaog capture for index #2 */
if (spec->alt_dac_nid || have_multi_adcs) {
if (spec->alt_dac_nid || spec->num_adc_nids > 1) {
codec->num_pcms = 3;
info = spec->pcm_rec + 2;
info->name = spec->stream_name_analog;
Expand All @@ -2371,7 +2365,7 @@ static int alc_build_pcms(struct hda_codec *codec)
alc_pcm_null_stream;
info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = 0;
}
if (have_multi_adcs) {
if (spec->num_adc_nids > 1) {
p = spec->stream_analog_alt_capture;
if (!p)
p = &alc_pcm_analog_alt_capture;
Expand Down Expand Up @@ -2663,6 +2657,7 @@ static int alc_auto_fill_adc_caps(struct hda_codec *codec)
hda_nid_t *adc_nids = spec->private_adc_nids;
hda_nid_t *cap_nids = spec->private_capsrc_nids;
int max_nums = ARRAY_SIZE(spec->private_adc_nids);
bool indep_capsrc = false;
int i, nums = 0;

nid = codec->start_nid;
Expand All @@ -2684,11 +2679,13 @@ static int alc_auto_fill_adc_caps(struct hda_codec *codec)
break;
if (type == AC_WID_AUD_SEL) {
cap_nids[nums] = src;
indep_capsrc = true;
break;
}
n = snd_hda_get_conn_list(codec, src, &list);
if (n > 1) {
cap_nids[nums] = src;
indep_capsrc = true;
break;
} else if (n != 1)
break;
Expand Down
Loading

0 comments on commit 2abc409

Please sign in to comment.