Lines Matching refs:ss
46 static struct snd_soc_dai *axg_fifo_dai(struct snd_pcm_substream *ss) in axg_fifo_dai() argument
48 struct snd_soc_pcm_runtime *rtd = ss->private_data; in axg_fifo_dai()
53 static struct axg_fifo *axg_fifo_data(struct snd_pcm_substream *ss) in axg_fifo_data() argument
55 struct snd_soc_dai *dai = axg_fifo_dai(ss); in axg_fifo_data()
60 static struct device *axg_fifo_dev(struct snd_pcm_substream *ss) in axg_fifo_dev() argument
62 struct snd_soc_dai *dai = axg_fifo_dai(ss); in axg_fifo_dev()
73 static int axg_fifo_pcm_trigger(struct snd_pcm_substream *ss, int cmd) in axg_fifo_pcm_trigger() argument
75 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_trigger()
95 static snd_pcm_uframes_t axg_fifo_pcm_pointer(struct snd_pcm_substream *ss) in axg_fifo_pcm_pointer() argument
97 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_pointer()
98 struct snd_pcm_runtime *runtime = ss->runtime; in axg_fifo_pcm_pointer()
106 static int axg_fifo_pcm_hw_params(struct snd_pcm_substream *ss, in axg_fifo_pcm_hw_params() argument
109 struct snd_pcm_runtime *runtime = ss->runtime; in axg_fifo_pcm_hw_params()
110 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_hw_params()
115 ret = snd_pcm_lib_malloc_pages(ss, params_buffer_bytes(params)); in axg_fifo_pcm_hw_params()
136 static int axg_fifo_pcm_hw_free(struct snd_pcm_substream *ss) in axg_fifo_pcm_hw_free() argument
138 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_hw_free()
144 return snd_pcm_lib_free_pages(ss); in axg_fifo_pcm_hw_free()
161 struct snd_pcm_substream *ss = dev_id; in axg_fifo_pcm_irq_block() local
162 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_irq_block()
169 snd_pcm_period_elapsed(ss); in axg_fifo_pcm_irq_block()
171 dev_dbg(axg_fifo_dev(ss), "unexpected irq - STS 0x%02x\n", in axg_fifo_pcm_irq_block()
180 static int axg_fifo_pcm_open(struct snd_pcm_substream *ss) in axg_fifo_pcm_open() argument
182 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_open()
183 struct device *dev = axg_fifo_dev(ss); in axg_fifo_pcm_open()
186 snd_soc_set_runtime_hwparams(ss, &axg_fifo_hw); in axg_fifo_pcm_open()
192 ret = snd_pcm_hw_constraint_step(ss->runtime, 0, in axg_fifo_pcm_open()
198 ret = snd_pcm_hw_constraint_step(ss->runtime, 0, in axg_fifo_pcm_open()
205 dev_name(dev), ss); in axg_fifo_pcm_open()
235 static int axg_fifo_pcm_close(struct snd_pcm_substream *ss) in axg_fifo_pcm_close() argument
237 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_close()
247 free_irq(fifo->irq, ss); in axg_fifo_pcm_close()