diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-02-23 03:42:57 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-02-23 03:42:57 -0500 |
commit | 346ff70fdbe9093947b9494fe714c89cafcceade (patch) | |
tree | 6c961c9c8956a291cad2e40c9b442022b2863769 /sound/pci/hda/hda_hwdep.c | |
parent | c17a1abae2f29047a0f57324240b01609489261b (diff) |
ALSA: hda - Rename {override,cur}_pin with {user,driver}_pin
Rename from override_pin and cur_pin with user_pin and driver_pin,
respectively, to be a bit more intuitive.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_hwdep.c')
-rw-r--r-- | sound/pci/hda/hda_hwdep.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sound/pci/hda/hda_hwdep.c b/sound/pci/hda/hda_hwdep.c index 71039a6dec2..c660383ef38 100644 --- a/sound/pci/hda/hda_hwdep.c +++ b/sound/pci/hda/hda_hwdep.c | |||
@@ -109,7 +109,7 @@ static void clear_hwdep_elements(struct hda_codec *codec) | |||
109 | for (i = 0; i < codec->hints.used; i++, head++) | 109 | for (i = 0; i < codec->hints.used; i++, head++) |
110 | kfree(*head); | 110 | kfree(*head); |
111 | snd_array_free(&codec->hints); | 111 | snd_array_free(&codec->hints); |
112 | snd_array_free(&codec->override_pins); | 112 | snd_array_free(&codec->user_pins); |
113 | } | 113 | } |
114 | 114 | ||
115 | static void hwdep_free(struct snd_hwdep *hwdep) | 115 | static void hwdep_free(struct snd_hwdep *hwdep) |
@@ -142,7 +142,7 @@ int /*__devinit*/ snd_hda_create_hwdep(struct hda_codec *codec) | |||
142 | 142 | ||
143 | snd_array_init(&codec->init_verbs, sizeof(struct hda_verb), 32); | 143 | snd_array_init(&codec->init_verbs, sizeof(struct hda_verb), 32); |
144 | snd_array_init(&codec->hints, sizeof(char *), 32); | 144 | snd_array_init(&codec->hints, sizeof(char *), 32); |
145 | snd_array_init(&codec->override_pins, sizeof(struct hda_pincfg), 16); | 145 | snd_array_init(&codec->user_pins, sizeof(struct hda_pincfg), 16); |
146 | 146 | ||
147 | return 0; | 147 | return 0; |
148 | } | 148 | } |
@@ -340,29 +340,29 @@ static ssize_t init_pin_configs_show(struct device *dev, | |||
340 | return pin_configs_show(codec, &codec->init_pins, buf); | 340 | return pin_configs_show(codec, &codec->init_pins, buf); |
341 | } | 341 | } |
342 | 342 | ||
343 | static ssize_t override_pin_configs_show(struct device *dev, | 343 | static ssize_t user_pin_configs_show(struct device *dev, |
344 | struct device_attribute *attr, | 344 | struct device_attribute *attr, |
345 | char *buf) | 345 | char *buf) |
346 | { | 346 | { |
347 | struct snd_hwdep *hwdep = dev_get_drvdata(dev); | 347 | struct snd_hwdep *hwdep = dev_get_drvdata(dev); |
348 | struct hda_codec *codec = hwdep->private_data; | 348 | struct hda_codec *codec = hwdep->private_data; |
349 | return pin_configs_show(codec, &codec->override_pins, buf); | 349 | return pin_configs_show(codec, &codec->user_pins, buf); |
350 | } | 350 | } |
351 | 351 | ||
352 | static ssize_t cur_pin_configs_show(struct device *dev, | 352 | static ssize_t driver_pin_configs_show(struct device *dev, |
353 | struct device_attribute *attr, | 353 | struct device_attribute *attr, |
354 | char *buf) | 354 | char *buf) |
355 | { | 355 | { |
356 | struct snd_hwdep *hwdep = dev_get_drvdata(dev); | 356 | struct snd_hwdep *hwdep = dev_get_drvdata(dev); |
357 | struct hda_codec *codec = hwdep->private_data; | 357 | struct hda_codec *codec = hwdep->private_data; |
358 | return pin_configs_show(codec, &codec->cur_pins, buf); | 358 | return pin_configs_show(codec, &codec->driver_pins, buf); |
359 | } | 359 | } |
360 | 360 | ||
361 | #define MAX_PIN_CONFIGS 32 | 361 | #define MAX_PIN_CONFIGS 32 |
362 | 362 | ||
363 | static ssize_t override_pin_configs_store(struct device *dev, | 363 | static ssize_t user_pin_configs_store(struct device *dev, |
364 | struct device_attribute *attr, | 364 | struct device_attribute *attr, |
365 | const char *buf, size_t count) | 365 | const char *buf, size_t count) |
366 | { | 366 | { |
367 | struct snd_hwdep *hwdep = dev_get_drvdata(dev); | 367 | struct snd_hwdep *hwdep = dev_get_drvdata(dev); |
368 | struct hda_codec *codec = hwdep->private_data; | 368 | struct hda_codec *codec = hwdep->private_data; |
@@ -373,7 +373,7 @@ static ssize_t override_pin_configs_store(struct device *dev, | |||
373 | return -EINVAL; | 373 | return -EINVAL; |
374 | if (!nid) | 374 | if (!nid) |
375 | return -EINVAL; | 375 | return -EINVAL; |
376 | err = snd_hda_add_pincfg(codec, &codec->override_pins, nid, cfg); | 376 | err = snd_hda_add_pincfg(codec, &codec->user_pins, nid, cfg); |
377 | if (err < 0) | 377 | if (err < 0) |
378 | return err; | 378 | return err; |
379 | return count; | 379 | return count; |
@@ -397,8 +397,8 @@ static struct device_attribute codec_attrs[] = { | |||
397 | CODEC_ATTR_WO(init_verbs), | 397 | CODEC_ATTR_WO(init_verbs), |
398 | CODEC_ATTR_WO(hints), | 398 | CODEC_ATTR_WO(hints), |
399 | CODEC_ATTR_RO(init_pin_configs), | 399 | CODEC_ATTR_RO(init_pin_configs), |
400 | CODEC_ATTR_RW(override_pin_configs), | 400 | CODEC_ATTR_RW(user_pin_configs), |
401 | CODEC_ATTR_RO(cur_pin_configs), | 401 | CODEC_ATTR_RO(driver_pin_configs), |
402 | CODEC_ATTR_WO(reconfig), | 402 | CODEC_ATTR_WO(reconfig), |
403 | CODEC_ATTR_WO(clear), | 403 | CODEC_ATTR_WO(clear), |
404 | }; | 404 | }; |