Lines Matching full:aio

3 // Socionext UniPhier AIO ALSA common driver.
16 #include "aio.h"
17 #include "aio-reg.h"
75 * @chip: the AIO chip pointer
96 * @chip: the AIO chip pointer
155 * aio_chip_init - initialize AIO whole settings
156 * @chip: the AIO chip pointer
158 * Sets AIO fixed and whole device settings to AIO.
162 * modules of AIO. But there is not race condition since this function
192 * aio_init - initialize AIO substream
193 * @sub: the AIO substream pointer
195 * Sets fixed settings of each AIO substreams.
202 struct device *dev = &sub->aio->chip->pdev->dev; in aio_init()
203 struct regmap *r = sub->aio->chip->regmap; in aio_init()
245 * aio_port_reset - reset AIO port block
246 * @sub: the AIO substream pointer
248 * Resets the digital signal input/output port block of AIO.
252 struct regmap *r = sub->aio->chip->regmap; in aio_port_reset()
269 * @sub: the AIO substream pointer, PCM substream only
271 * Set suitable slot selecting to input/output port block of AIO.
279 struct regmap *r = sub->aio->chip->regmap; in aio_port_set_ch()
320 * @sub: the AIO substream pointer, PCM substream only
323 * Set suitable I2S format settings to input/output port block of AIO.
332 struct regmap *r = sub->aio->chip->regmap; in aio_port_set_rate()
333 struct device *dev = &sub->aio->chip->pdev->dev; in aio_port_set_rate()
439 * @sub: the AIO substream pointer, PCM substream only
442 * Set suitable I2S format settings to input/output port block of AIO.
451 struct regmap *r = sub->aio->chip->regmap; in aio_port_set_fmt()
452 struct device *dev = &sub->aio->chip->pdev->dev; in aio_port_set_fmt()
456 switch (sub->aio->fmt) { in aio_port_set_fmt()
468 sub->aio->fmt); in aio_port_set_fmt()
477 switch (sub->aio->fmt) { in aio_port_set_fmt()
489 sub->aio->fmt); in aio_port_set_fmt()
505 * aio_port_set_clk - set clock and divider of AIO port block
506 * @sub: the AIO substream pointer
509 * input/output port block of AIO. Parameters are specified by
516 struct uniphier_aio_chip *chip = sub->aio->chip; in aio_port_set_clk()
517 struct device *dev = &sub->aio->chip->pdev->dev; in aio_port_set_clk()
518 struct regmap *r = sub->aio->chip->regmap; in aio_port_set_clk()
533 if (sub->aio->pll_out >= ARRAY_SIZE(v_pll)) { in aio_port_set_clk()
535 sub->aio->pll_out); in aio_port_set_clk()
538 if (sub->aio->plldiv >= ARRAY_SIZE(v_div)) { in aio_port_set_clk()
540 sub->aio->plldiv); in aio_port_set_clk()
544 v = v_pll[sub->aio->pll_out] | in aio_port_set_clk()
546 v_div[sub->aio->plldiv]; in aio_port_set_clk()
548 switch (chip->plls[sub->aio->pll_out].freq) { in aio_port_set_clk()
564 if (sub->aio->pll_out >= ARRAY_SIZE(v_pll)) { in aio_port_set_clk()
566 sub->aio->pll_out); in aio_port_set_clk()
569 v = v_pll[sub->aio->pll_out] | in aio_port_set_clk()
573 switch (chip->plls[sub->aio->pll_out].freq) { in aio_port_set_clk()
602 * aio_port_set_param - set parameters of AIO port block
603 * @sub: the AIO substream pointer
608 * Set suitable setting to input/output port block of AIO to process the
616 struct regmap *r = sub->aio->chip->regmap; in aio_port_set_param()
669 * aio_port_set_enable - start or stop of AIO port block
670 * @sub: the AIO substream pointer
673 * Start or stop the signal input/output port block of AIO.
677 struct regmap *r = sub->aio->chip->regmap; in aio_port_set_enable()
718 * aio_port_get_volume - get volume of AIO port block
719 * @sub: the AIO substream pointer
725 struct regmap *r = sub->aio->chip->regmap; in aio_port_get_volume()
734 * aio_port_set_volume - set volume of AIO port block
735 * @sub: the AIO substream pointer
744 struct regmap *r = sub->aio->chip->regmap; in aio_port_set_volume()
776 * aio_if_set_param - set parameters of AIO DMA I/F block
777 * @sub: the AIO substream pointer
781 * Set suitable setting to DMA interface block of AIO to process the
788 struct regmap *r = sub->aio->chip->regmap; in aio_if_set_param()
827 * aio_oport_set_stream_type - set parameters of AIO playback port block
828 * @sub: the AIO substream pointer
831 * Set special setting to output port block of AIO to output the stream
839 struct regmap *r = sub->aio->chip->regmap; in aio_oport_set_stream_type()
890 * aio_src_reset - reset AIO SRC block
891 * @sub: the AIO substream pointer
894 * block of AIO.
899 struct regmap *r = sub->aio->chip->regmap; in aio_src_reset()
909 * aio_src_set_param - set parameters of AIO SRC block
910 * @sub: the AIO substream pointer
914 * block of AIO to process the specified in params.
922 struct regmap *r = sub->aio->chip->regmap; in aio_src_set_param()
966 struct regmap *r = sub->aio->chip->regmap; in aio_srcif_set_param()
980 struct regmap *r = sub->aio->chip->regmap; in aio_srcch_set_param()
1001 struct regmap *r = sub->aio->chip->regmap; in aio_srcch_set_enable()
1015 struct regmap *r = sub->aio->chip->regmap; in aiodma_ch_set_param()
1035 struct regmap *r = sub->aio->chip->regmap; in aiodma_ch_set_enable()
1056 struct regmap *r = sub->aio->chip->regmap; in aiodma_rb_get_rp()
1075 struct regmap *r = sub->aio->chip->regmap; in aiodma_rb_set_rp()
1089 struct regmap *r = sub->aio->chip->regmap; in aiodma_rb_get_wp()
1108 struct regmap *r = sub->aio->chip->regmap; in aiodma_rb_set_wp()
1124 struct regmap *r = sub->aio->chip->regmap; in aiodma_rb_set_threshold()
1138 struct regmap *r = sub->aio->chip->regmap; in aiodma_rb_set_buffer()
1230 struct regmap *r = sub->aio->chip->regmap; in aiodma_rb_is_irq()
1243 struct regmap *r = sub->aio->chip->regmap; in aiodma_rb_clear_irq()