From 4ff37d576bc43e4655e5ed02bc8016e266c9893d Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Tue, 13 Nov 2018 08:04:19 +1100 Subject: Rework PCM ops callback mechanism - Fix issues regarding PCM ops callbacks via AVIRT - As PCMs are created, the PCM ops are set according to the Audio Path's needs. A default PCM ops table is applied for all PCMs, which includes callbacks such as open, and hw_free, since AVIRT requires these for intermediate processing, whether or not a given Audio Path may need them. - Separate PCM ops into separate playback and capture ops tables Signed-off-by: Mark Farrugia --- sound/avirt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sound') diff --git a/sound/avirt.h b/sound/avirt.h index fd4ae32..0ebac86 100644 --- a/sound/avirt.h +++ b/sound/avirt.h @@ -44,7 +44,8 @@ struct snd_avirt_audiopath { const char *name; /* Pretty name */ unsigned int version[3]; /* Version - Major.Minor.Ext */ const struct snd_pcm_hardware *hw; /* ALSA PCM HW conf */ - const struct snd_pcm_ops *pcm_ops; /* ALSA PCM op table */ + const struct snd_pcm_ops *pcm_playback_ops; /* ALSA PCM playback ops */ + const struct snd_pcm_ops *pcm_capture_ops; /* ALSA PCM capture ops */ snd_avirt_audiopath_configure configure; /* Config callback function */ void *context; -- cgit 1.2.3-korg