Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305799
b: refs/heads/master
c: e9148dd
h: refs/heads/master
i:
  305797: 4cf5591
  305795: 9cfc506
  305791: 3a31328
v: v3
  • Loading branch information
Clemens Ladisch authored and Takashi Iwai committed May 14, 2012
1 parent 081e53d commit 6a04f98
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 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: 76fb87894828756e069a43ce55f775a6c893a53d
refs/heads/master: e9148dddc3c7b6121300319c3e31f9380d459be8
14 changes: 14 additions & 0 deletions trunk/sound/firewire/amdtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,20 @@ int amdtp_out_stream_start(struct amdtp_out_stream *s, int channel, int speed)
}
EXPORT_SYMBOL(amdtp_out_stream_start);

/**
* amdtp_out_stream_pcm_pointer - get the PCM buffer position
* @s: the AMDTP output stream that transports the PCM data
*
* Returns the current buffer position, in frames.
*/
unsigned long amdtp_out_stream_pcm_pointer(struct amdtp_out_stream *s)
{
fw_iso_context_flush_completions(s->context);

return ACCESS_ONCE(s->pcm_buffer_pointer);
}
EXPORT_SYMBOL(amdtp_out_stream_pcm_pointer);

/**
* amdtp_out_stream_update - update the stream after a bus reset
* @s: the AMDTP output stream
Expand Down
13 changes: 1 addition & 12 deletions trunk/sound/firewire/amdtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ void amdtp_out_stream_stop(struct amdtp_out_stream *s);
void amdtp_out_stream_set_pcm_format(struct amdtp_out_stream *s,
snd_pcm_format_t format);
void amdtp_out_stream_pcm_prepare(struct amdtp_out_stream *s);
unsigned long amdtp_out_stream_pcm_pointer(struct amdtp_out_stream *s);
void amdtp_out_stream_pcm_abort(struct amdtp_out_stream *s);

/**
Expand Down Expand Up @@ -140,18 +141,6 @@ static inline void amdtp_out_stream_pcm_trigger(struct amdtp_out_stream *s,
ACCESS_ONCE(s->pcm) = pcm;
}

/**
* amdtp_out_stream_pcm_pointer - get the PCM buffer position
* @s: the AMDTP output stream that transports the PCM data
*
* Returns the current buffer position, in frames.
*/
static inline unsigned long
amdtp_out_stream_pcm_pointer(struct amdtp_out_stream *s)
{
return ACCESS_ONCE(s->pcm_buffer_pointer);
}

static inline bool cip_sfc_is_base_44100(enum cip_sfc sfc)
{
return sfc & 1;
Expand Down

0 comments on commit 6a04f98

Please sign in to comment.