Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47113
b: refs/heads/master
c: 0b51ba0
h: refs/heads/master
i:
  47111: b4c6f93
v: v3
  • Loading branch information
Adrian Bunk authored and Jaroslav Kysela committed Feb 9, 2007
1 parent 357514f commit 9d332d1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 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: 5cd575290b4481b3a6ea307afed760df60d01cbc
refs/heads/master: 0b51ba07e2e2866bfea40c5551a926dbefae64da
10 changes: 0 additions & 10 deletions trunk/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3690,16 +3690,6 @@ struct _snd_pcm_runtime {
</example>
</para>

<para>
Here, the chip instance is retrieved via
<function>snd_kcontrol_chip()</function> macro. This macro
just accesses to kcontrol-&gt;private_data. The
kcontrol-&gt;private_data field is
given as the argument of <function>snd_ctl_new()</function>
(see the later subsection
<link linkend="control-interface-constructor"><citetitle>Constructor</citetitle></link>).
</para>

<para>
The <structfield>value</structfield> field is depending on
the type of control as well as on info callback. For example,
Expand Down
1 change: 0 additions & 1 deletion trunk/include/sound/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ typedef int (*snd_kctl_ioctl_func_t) (struct snd_card * card,

void snd_ctl_notify(struct snd_card * card, unsigned int mask, struct snd_ctl_elem_id * id);

struct snd_kcontrol *snd_ctl_new(struct snd_kcontrol * kcontrol, unsigned int access);
struct snd_kcontrol *snd_ctl_new1(const struct snd_kcontrol_new * kcontrolnew, void * private_data);
void snd_ctl_free_one(struct snd_kcontrol * kcontrol);
int snd_ctl_add(struct snd_card * card, struct snd_kcontrol * kcontrol);
Expand Down
5 changes: 2 additions & 3 deletions trunk/sound/core/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ EXPORT_SYMBOL(snd_ctl_notify);
*
* Returns the pointer of the new instance, or NULL on failure.
*/
struct snd_kcontrol *snd_ctl_new(struct snd_kcontrol *control, unsigned int access)
static struct snd_kcontrol *snd_ctl_new(struct snd_kcontrol *control,
unsigned int access)
{
struct snd_kcontrol *kctl;
unsigned int idx;
Expand All @@ -201,8 +202,6 @@ struct snd_kcontrol *snd_ctl_new(struct snd_kcontrol *control, unsigned int acce
return kctl;
}

EXPORT_SYMBOL(snd_ctl_new);

/**
* snd_ctl_new1 - create a control instance from the template
* @ncontrol: the initialization record
Expand Down

0 comments on commit 9d332d1

Please sign in to comment.