| /sound/usb/ |
| A D | endpoint.c | 634 struct snd_usb_clock_ref *ref; in clock_ref_find() local 637 if (ref->clock == clock) in clock_ref_find() 638 return ref; in clock_ref_find() 640 ref = kzalloc(sizeof(*ref), GFP_KERNEL); in clock_ref_find() 641 if (!ref) in clock_ref_find() 643 ref->clock = clock; in clock_ref_find() 644 atomic_set(&ref->locked, 0); in clock_ref_find() 646 return ref; in clock_ref_find() 1539 struct snd_usb_clock_ref *ref; in snd_usb_endpoint_get_clock_rate() local 1546 if (ref->clock == clock) { in snd_usb_endpoint_get_clock_rate() [all …]
|
| /sound/core/ |
| A D | sound.c | 127 struct snd_card *ref = snd_card_ref(card); in autoload_device() local 128 if (!ref) in autoload_device() 131 snd_card_unref(ref); in autoload_device()
|
| /sound/pci/mixart/ |
| A D | mixart.c | 1171 u32 ref; in snd_mixart_proc_read() local 1189 ref = readl_be( MIXART_MEM( chip->mgr, MIXART_PSEUDOREG_PERF_SYSTEM_LOAD_OFFSET)); in snd_mixart_proc_read() 1191 if (ref) { in snd_mixart_proc_read() 1192 …ailbox = 100 * readl_be( MIXART_MEM( chip->mgr, MIXART_PSEUDOREG_PERF_MAILBX_LOAD_OFFSET)) / ref; in snd_mixart_proc_read() 1193 …treaming = 100 * readl_be( MIXART_MEM( chip->mgr, MIXART_PSEUDOREG_PERF_STREAM_LOAD_OFFSET)) / ref; in snd_mixart_proc_read() 1194 …nterr = 100 * readl_be( MIXART_MEM( chip->mgr, MIXART_PSEUDOREG_PERF_INTERR_LOAD_OFFSET)) / ref; in snd_mixart_proc_read()
|
| /sound/aoa/fabrics/ |
| A D | layout.c | 773 const u32 *ref; in check_codec() local 781 ref = of_get_property(ldev->sound, propname, NULL); in check_codec() 782 if (!ref) { in check_codec() 787 if (*ref != codec->node->phandle) { in check_codec()
|
| /sound/pci/pcxhr/ |
| A D | pcxhr.c | 1244 int ref = rmh.stat[1]; in pcxhr_proc_info() local 1245 if (ref > 0) { in pcxhr_proc_info() 1248 ref = (ref * 48000) / in pcxhr_proc_info() 1252 ref *= 2; in pcxhr_proc_info() 1254 cur = 100 - (100 * cur) / ref; in pcxhr_proc_info()
|
| /sound/soc/codecs/ |
| A D | arizona.c | 1282 int ref, div, refclk; in arizona_set_opclk() local 1302 for (ref = 0; ref < ARRAY_SIZE(arizona_opclk_ref_48k_rates) && in arizona_set_opclk() 1303 rates[ref] <= refclk; ref++) { in arizona_set_opclk() 1305 while (rates[ref] / div >= freq && div < 32) { in arizona_set_opclk() 1306 if (rates[ref] / div == freq) { in arizona_set_opclk() 1314 ref); in arizona_set_opclk()
|
| A D | rt5682s.c | 1196 static void rt5682s_set_filter_clk(struct rt5682s_priv *rt5682s, int reg, int ref) in rt5682s_set_filter_clk() argument 1203 idx = rt5682s_div_sel(rt5682s, ref, div_f, ARRAY_SIZE(div_f)); in rt5682s_set_filter_clk() 1224 int ref, reg, val; in set_filter_clk() local 1230 ref = 256 * rt5682s->lrck[RT5682S_AIF2]; in set_filter_clk() 1232 ref = 256 * rt5682s->lrck[RT5682S_AIF1]; in set_filter_clk() 1239 rt5682s_set_filter_clk(rt5682s, reg, ref); in set_filter_clk() 2530 int ref, reg; in rt5682s_wclk_prepare() local 2551 ref = 256 * rt5682s->lrck[RT5682S_AIF1]; in rt5682s_wclk_prepare() 2552 rt5682s_set_filter_clk(rt5682s, reg, ref); in rt5682s_wclk_prepare()
|
| A D | rt5668.c | 1150 int ref, val, reg, idx; in set_filter_clk() local 1157 ref = 256 * rt5668->lrck[RT5668_AIF2]; in set_filter_clk() 1159 ref = 256 * rt5668->lrck[RT5668_AIF1]; in set_filter_clk() 1161 idx = rt5668_div_sel(rt5668, ref, div, ARRAY_SIZE(div)); in set_filter_clk()
|
| A D | madera.c | 2508 int ref, div, refclk; in madera_set_opclk() local 2531 for (ref = 0; ref < ARRAY_SIZE(madera_opclk_ref_48k_rates); ++ref) { in madera_set_opclk() 2532 if (rates[ref] > refclk) in madera_set_opclk() 2536 while ((rates[ref] / div >= freq) && (div <= 30)) { in madera_set_opclk() 2537 if (rates[ref] / div == freq) { in madera_set_opclk() 2541 val = (div << MADERA_OPCLK_DIV_SHIFT) | ref; in madera_set_opclk()
|
| A D | rt5682.c | 1285 int ref, val, reg, idx; in set_filter_clk() local 1296 ref = 256 * rt5682->lrck[RT5682_AIF2]; in set_filter_clk() 1298 ref = 256 * rt5682->lrck[RT5682_AIF1]; in set_filter_clk() 1300 idx = rt5682_div_sel(rt5682, ref, div_f, ARRAY_SIZE(div_f)); in set_filter_clk()
|
| /sound/soc/qcom/qdsp6/ |
| A D | q6adm.c | 112 static void q6adm_free_copp(struct kref *ref) in q6adm_free_copp() argument 114 struct q6copp *c = container_of(ref, struct q6copp, refcount); in q6adm_free_copp()
|
| A D | q6apm.c | 130 static void q6apm_put_audioreach_graph(struct kref *ref) in q6apm_put_audioreach_graph() argument 135 graph = container_of(ref, struct audioreach_graph, refcount); in q6apm_put_audioreach_graph()
|
| A D | q6afe.c | 930 static void q6afe_port_free(struct kref *ref) in q6afe_port_free() argument 936 port = container_of(ref, struct q6afe_port, refcount); in q6afe_port_free()
|
| A D | q6asm.c | 549 static void q6asm_audio_client_release(struct kref *ref) in q6asm_audio_client_release() argument 555 ac = container_of(ref, struct audio_client, refcount); in q6asm_audio_client_release()
|