ALSA: hda - Make position_fix as generic callback
... and move most parts into hda_intel.c from the generic controller code. This is a clean up, and there should be no functional change by this patch. Now, struct azx obtains the generic callbacks for getting the position and the delay. As default NULL, posbuf is read. These replace the old position_fix[], and each is implemented as a callback. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -25,9 +25,9 @@ static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream)
|
||||
{
|
||||
return substream->runtime->private_data;
|
||||
}
|
||||
unsigned int azx_get_position(struct azx *chip,
|
||||
struct azx_dev *azx_dev,
|
||||
bool with_check);
|
||||
unsigned int azx_get_position(struct azx *chip, struct azx_dev *azx_dev);
|
||||
unsigned int azx_get_pos_lpib(struct azx *chip, struct azx_dev *azx_dev);
|
||||
unsigned int azx_get_pos_posbuf(struct azx *chip, struct azx_dev *azx_dev);
|
||||
|
||||
/* Stream control. */
|
||||
void azx_stream_stop(struct azx *chip, struct azx_dev *azx_dev);
|
||||
|
Reference in New Issue
Block a user