.pointer = sst_soc_pointer,
.delay = sst_soc_delay,
.compress_ops = &sst_platform_compress_ops,
- .pcm_construct = sst_soc_pcm_new,
+ .pcm_new = sst_soc_pcm_new,
};
static int sst_platform_probe(struct platform_device *pdev)
#define MAX_PREALLOC_SIZE (32 * 1024 * 1024)
-static int avs_component_construct(struct snd_soc_component *component,
- struct snd_soc_pcm_runtime *rtd)
+static int avs_component_new(struct snd_soc_component *component,
+ struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
struct snd_pcm *pcm = rtd->pcm;
.open = avs_component_open,
.pointer = avs_component_pointer,
.mmap = avs_component_mmap,
- .pcm_construct = avs_component_construct,
+ .pcm_new = avs_component_new,
.module_get_upon_open = 1, /* increment refcount when a pcm is opened */
.topology_name_prefix = "intel/avs",
};
.open = avs_component_hda_open,
.pointer = avs_component_pointer,
.mmap = avs_component_mmap,
- .pcm_construct = avs_component_construct,
+ .pcm_new = avs_component_new,
/*
* hda platform component's probe() is dependent on
* codec->pcm_list_head, it needs to be initialized after codec
.buffer_bytes_max = CATPT_BUFFER_MAX_SIZE,
};
-static int catpt_component_pcm_construct(struct snd_soc_component *component,
- struct snd_soc_pcm_runtime *rtm)
+static int catpt_component_pcm_new(struct snd_soc_component *component,
+ struct snd_soc_pcm_runtime *rtm)
{
struct catpt_dev *cdev = dev_get_drvdata(component->dev);
static const struct snd_soc_component_driver catpt_comp_driver = {
.name = "catpt-platform",
- .pcm_construct = catpt_component_pcm_construct,
+ .pcm_new = catpt_component_pcm_new,
.open = catpt_component_open,
.pointer = catpt_component_pointer,
static const struct snd_soc_component_driver kmb_component = {
.name = "kmb",
- .pcm_construct = kmb_platform_pcm_new,
+ .pcm_new = kmb_platform_pcm_new,
.open = kmb_pcm_open,
.trigger = kmb_pcm_trigger,
.pointer = kmb_pcm_pointer,