/sound/soc/meson/ |
D | axg-tdm-interface.c | 39 struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai); in axg_tdm_set_tdm_slots() local 56 iface->slots = slots; in axg_tdm_set_tdm_slots() 80 iface->slot_width = slot_width; in axg_tdm_set_tdm_slots() 102 struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai); in axg_tdm_iface_set_sysclk() local 106 if (!iface->mclk) { in axg_tdm_iface_set_sysclk() 109 ret = clk_set_rate(iface->mclk, freq); in axg_tdm_iface_set_sysclk() 111 iface->mclk_rate = freq; in axg_tdm_iface_set_sysclk() 120 struct axg_tdm_iface *iface = snd_soc_dai_get_drvdata(dai); in axg_tdm_iface_set_fmt() local 124 if (!iface->mclk) { in axg_tdm_iface_set_fmt() 141 iface->fmt = fmt; in axg_tdm_iface_set_fmt() [all …]
|
/sound/usb/ |
D | quirks.c | 33 struct usb_interface *iface, in create_composite_quirk() argument 37 int probed_ifnum = get_iface_desc(iface->altsetting)->bInterfaceNumber; in create_composite_quirk() 42 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk() 43 if (!iface) in create_composite_quirk() 46 usb_interface_claimed(iface)) in create_composite_quirk() 48 err = snd_usb_create_quirk(chip, iface, driver, quirk); in create_composite_quirk() 54 iface = usb_ifnum_to_if(chip->dev, quirk->ifnum); in create_composite_quirk() 55 if (!iface) in create_composite_quirk() 58 !usb_interface_claimed(iface)) { in create_composite_quirk() 59 err = usb_driver_claim_interface(driver, iface, in create_composite_quirk() [all …]
|
D | quirks-table.h | 58 .iface = 1, 105 .iface = 3, 463 .iface = 0, 480 .iface = 1, 951 .iface = 1, 968 .iface = 2, 1572 .iface = 0, 1590 .iface = 1, 1639 .iface = 0, 1657 .iface = 1, [all …]
|
D | format.c | 45 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 88 fp->iface, fp->altsetting); in parse_audio_format_i_type() 100 fp->iface, fp->altsetting, in parse_audio_format_i_type() 126 fp->iface, fp->altsetting, in parse_audio_format_i_type() 151 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 208 fp->iface, fp->altsetting); in parse_audio_format_rates_v1() 249 fp->iface, fp->altsetting); in parse_audio_format_rates_v1() 309 struct usb_interface *iface; in focusrite_valid_sample_rate() local 314 iface = usb_ifnum_to_if(chip->dev, fp->iface); in focusrite_valid_sample_rate() 315 if (!iface) in focusrite_valid_sample_rate() [all …]
|
D | implicit.c | 32 unsigned int iface; member 40 .iface = (ifnum) } 43 .iface = (ifnum) } 71 .ep_num = 0x84, .iface = 0 }, /* MOTU MicroBook II */ 87 struct usb_interface *iface; in add_implicit_fb_sync_ep() local 90 iface = usb_ifnum_to_if(chip->dev, ifnum); in add_implicit_fb_sync_ep() 91 if (!iface || iface->num_altsetting < 2) in add_implicit_fb_sync_ep() 93 alts = &iface->altsetting[1]; in add_implicit_fb_sync_ep() 103 fmt->iface, fmt->altsetting, in add_implicit_fb_sync_ep() 237 int iface, int altset) in __add_generic_implicit_fb() argument [all …]
|
D | clock.c | 42 static void *find_uac_clock_desc(struct usb_host_interface *iface, int id, in find_uac_clock_desc() argument 48 while ((cs = snd_usb_find_csint_desc(iface->extra, iface->extralen, in find_uac_clock_desc() 428 fmt->iface, fmt->altsetting, rate, fmt->endpoint); in set_sample_rate_v1() 446 fmt->iface, fmt->altsetting, fmt->endpoint); in set_sample_rate_v1() 466 static int get_sample_rate_v2v3(struct snd_usb_audio *chip, int iface, in get_sample_rate_v2v3() argument 480 iface, altsetting, err); in get_sample_rate_v2v3() 530 return get_sample_rate_v2v3(chip, fmt->iface, fmt->altsetting, clock); in snd_usb_set_sample_rate_v2v3() 561 prev_rate = get_sample_rate_v2v3(chip, fmt->iface, fmt->altsetting, clock); in set_sample_rate_v2v3() 569 fmt->iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3() 579 fmt->iface, fmt->altsetting, rate, cur_rate); in set_sample_rate_v2v3() [all …]
|
/sound/soc/codecs/ |
D | uda1380.c | 421 int iface; in uda1380_set_dai_fmt_both() local 424 iface = uda1380_read_reg_cache(component, UDA1380_IFACE); in uda1380_set_dai_fmt_both() 425 iface &= ~(R01_SFORI_MASK | R01_SIM | R01_SFORO_MASK); in uda1380_set_dai_fmt_both() 429 iface |= R01_SFORI_I2S | R01_SFORO_I2S; in uda1380_set_dai_fmt_both() 432 iface |= R01_SFORI_LSB16 | R01_SFORO_LSB16; in uda1380_set_dai_fmt_both() 435 iface |= R01_SFORI_MSB | R01_SFORO_MSB; in uda1380_set_dai_fmt_both() 442 uda1380_write_reg_cache(component, UDA1380_IFACE, iface); in uda1380_set_dai_fmt_both() 451 int iface; in uda1380_set_dai_fmt_playback() local 454 iface = uda1380_read_reg_cache(component, UDA1380_IFACE); in uda1380_set_dai_fmt_playback() 455 iface &= ~R01_SFORI_MASK; in uda1380_set_dai_fmt_playback() [all …]
|
D | wm8711.c | 161 u16 iface = snd_soc_component_read(component, WM8711_IFACE) & 0xfff3; in wm8711_hw_params() local 173 iface |= 0x0004; in wm8711_hw_params() 176 iface |= 0x0008; in wm8711_hw_params() 180 snd_soc_component_write(component, WM8711_IFACE, iface); in wm8711_hw_params() 242 u16 iface = snd_soc_component_read(component, WM8711_IFACE) & 0x000c; in wm8711_set_dai_fmt() local 247 iface |= 0x0040; in wm8711_set_dai_fmt() 258 iface |= 0x0002; in wm8711_set_dai_fmt() 263 iface |= 0x0001; in wm8711_set_dai_fmt() 266 iface |= 0x0003; in wm8711_set_dai_fmt() 269 iface |= 0x0013; in wm8711_set_dai_fmt() [all …]
|
D | wm8776.c | 167 int reg, iface, master; in wm8776_set_fmt() local 182 iface = 0; in wm8776_set_fmt() 196 iface |= 0x0002; in wm8776_set_fmt() 201 iface |= 0x0001; in wm8776_set_fmt() 211 iface |= 0x00c; in wm8776_set_fmt() 214 iface |= 0x008; in wm8776_set_fmt() 217 iface |= 0x004; in wm8776_set_fmt() 224 snd_soc_component_update_bits(component, reg, 0xf, iface); in wm8776_set_fmt() 245 int iface_reg, iface; in wm8776_hw_params() local 267 iface = 0; in wm8776_hw_params() [all …]
|
D | wm8971.c | 451 u16 iface = 0; in wm8971_set_dai_fmt() local 456 iface = 0x0040; in wm8971_set_dai_fmt() 467 iface |= 0x0002; in wm8971_set_dai_fmt() 472 iface |= 0x0001; in wm8971_set_dai_fmt() 475 iface |= 0x0003; in wm8971_set_dai_fmt() 478 iface |= 0x0013; in wm8971_set_dai_fmt() 489 iface |= 0x0090; in wm8971_set_dai_fmt() 492 iface |= 0x0080; in wm8971_set_dai_fmt() 495 iface |= 0x0010; in wm8971_set_dai_fmt() 501 snd_soc_component_write(component, WM8971_IFACE, iface); in wm8971_set_dai_fmt() [all …]
|
D | ssm2602.c | 309 unsigned int iface; in ssm2602_hw_params() local 319 iface = 0x0; in ssm2602_hw_params() 322 iface = 0x4; in ssm2602_hw_params() 325 iface = 0x8; in ssm2602_hw_params() 328 iface = 0xc; in ssm2602_hw_params() 334 IFACE_AUDIO_DATA_LEN, iface); in ssm2602_hw_params() 423 unsigned int iface = 0; in ssm2602_set_dai_fmt() local 428 iface |= 0x0040; in ssm2602_set_dai_fmt() 439 iface |= 0x0002; in ssm2602_set_dai_fmt() 444 iface |= 0x0001; in ssm2602_set_dai_fmt() [all …]
|
D | wm8741.c | 195 unsigned int iface, mode; in wm8741_hw_params() local 222 iface = 0x0; in wm8741_hw_params() 225 iface = 0x1; in wm8741_hw_params() 228 iface = 0x2; in wm8741_hw_params() 231 iface = 0x3; in wm8741_hw_params() 251 iface); in wm8741_hw_params() 307 unsigned int iface; in wm8741_set_dai_fmt() local 320 iface = 0x08; in wm8741_set_dai_fmt() 323 iface = 0x00; in wm8741_set_dai_fmt() 326 iface = 0x04; in wm8741_set_dai_fmt() [all …]
|
D | wm8731.c | 319 u16 iface = snd_soc_component_read(component, WM8731_IFACE) & 0xfff3; in wm8731_hw_params() local 333 iface |= 0x0004; in wm8731_hw_params() 336 iface |= 0x0008; in wm8731_hw_params() 339 iface |= 0x000c; in wm8731_hw_params() 345 snd_soc_component_write(component, WM8731_IFACE, iface); in wm8731_hw_params() 410 u16 iface = 0; in wm8731_set_dai_fmt() local 414 iface |= 0x0040; in wm8731_set_dai_fmt() 425 iface |= 0x0002; in wm8731_set_dai_fmt() 430 iface |= 0x0001; in wm8731_set_dai_fmt() 433 iface |= 0x0013; in wm8731_set_dai_fmt() [all …]
|
D | wm8728.c | 116 u16 iface = snd_soc_component_read(component, WM8728_IFCTL); in wm8728_set_dai_fmt() local 123 iface |= 1; in wm8728_set_dai_fmt() 139 iface &= ~0x22; in wm8728_set_dai_fmt() 142 iface |= 0x20; in wm8728_set_dai_fmt() 143 iface &= ~0x02; in wm8728_set_dai_fmt() 146 iface |= 0x02; in wm8728_set_dai_fmt() 147 iface &= ~0x20; in wm8728_set_dai_fmt() 150 iface |= 0x22; in wm8728_set_dai_fmt() 156 snd_soc_component_write(component, WM8728_IFCTL, iface); in wm8728_set_dai_fmt()
|
D | wm8750.c | 521 u16 iface = 0; in wm8750_set_dai_fmt() local 526 iface = 0x0040; in wm8750_set_dai_fmt() 537 iface |= 0x0002; in wm8750_set_dai_fmt() 542 iface |= 0x0001; in wm8750_set_dai_fmt() 545 iface |= 0x0003; in wm8750_set_dai_fmt() 548 iface |= 0x0013; in wm8750_set_dai_fmt() 559 iface |= 0x0090; in wm8750_set_dai_fmt() 562 iface |= 0x0080; in wm8750_set_dai_fmt() 565 iface |= 0x0010; in wm8750_set_dai_fmt() 571 snd_soc_component_write(component, WM8750_IFACE, iface); in wm8750_set_dai_fmt() [all …]
|
D | wm8770.c | 347 int iface, master; in wm8770_set_fmt() local 362 iface = 0; in wm8770_set_fmt() 365 iface |= 0x2; in wm8770_set_fmt() 370 iface |= 0x1; in wm8770_set_fmt() 380 iface |= 0xc; in wm8770_set_fmt() 383 iface |= 0x8; in wm8770_set_fmt() 386 iface |= 0x4; in wm8770_set_fmt() 392 snd_soc_component_update_bits(component, WM8770_IFACECTRL, 0xf, iface); in wm8770_set_fmt() 414 int iface; in wm8770_hw_params() local 421 iface = 0; in wm8770_hw_params() [all …]
|
D | wm8940.c | 340 u16 iface = snd_soc_component_read(component, WM8940_IFACE) & 0xFE67; in wm8940_set_dai_fmt() local 356 iface |= (2 << 3); in wm8940_set_dai_fmt() 359 iface |= (1 << 3); in wm8940_set_dai_fmt() 364 iface |= (3 << 3); in wm8940_set_dai_fmt() 367 iface |= (3 << 3) | (1 << 7); in wm8940_set_dai_fmt() 375 iface |= (1 << 7); in wm8940_set_dai_fmt() 378 iface |= (1 << 8); in wm8940_set_dai_fmt() 381 iface |= (1 << 8) | (1 << 7); in wm8940_set_dai_fmt() 385 snd_soc_component_write(component, WM8940_IFACE, iface); in wm8940_set_dai_fmt() 395 u16 iface = snd_soc_component_read(component, WM8940_IFACE) & 0xFD9F; in wm8940_i2s_hw_params() local [all …]
|
D | alc5623.c | 642 u16 iface = 0; in alc5623_set_dai_fmt() local 647 iface = ALC5623_DAI_SDP_MASTER_MODE; in alc5623_set_dai_fmt() 650 iface = ALC5623_DAI_SDP_SLAVE_MODE; in alc5623_set_dai_fmt() 659 iface |= ALC5623_DAI_I2S_DF_I2S; in alc5623_set_dai_fmt() 662 iface |= ALC5623_DAI_I2S_DF_RIGHT; in alc5623_set_dai_fmt() 665 iface |= ALC5623_DAI_I2S_DF_LEFT; in alc5623_set_dai_fmt() 668 iface |= ALC5623_DAI_I2S_DF_PCM; in alc5623_set_dai_fmt() 671 iface |= ALC5623_DAI_I2S_DF_PCM | ALC5623_DAI_I2S_PCM_MODE; in alc5623_set_dai_fmt() 682 iface |= ALC5623_DAI_MAIN_I2S_BCLK_POL_CTRL; in alc5623_set_dai_fmt() 685 iface |= ALC5623_DAI_MAIN_I2S_BCLK_POL_CTRL; in alc5623_set_dai_fmt() [all …]
|
D | wm8510.c | 387 u16 iface = 0; in wm8510_set_dai_fmt() local 404 iface |= 0x0010; in wm8510_set_dai_fmt() 409 iface |= 0x0008; in wm8510_set_dai_fmt() 412 iface |= 0x00018; in wm8510_set_dai_fmt() 423 iface |= 0x0180; in wm8510_set_dai_fmt() 426 iface |= 0x0100; in wm8510_set_dai_fmt() 429 iface |= 0x0080; in wm8510_set_dai_fmt() 435 snd_soc_component_write(component, WM8510_IFACE, iface); in wm8510_set_dai_fmt() 445 u16 iface = snd_soc_component_read(component, WM8510_IFACE) & 0x19f; in wm8510_pcm_hw_params() local 453 iface |= 0x0020; in wm8510_pcm_hw_params() [all …]
|
D | alc5632.c | 816 u16 iface = 0; in alc5632_set_dai_fmt() local 821 iface = ALC5632_DAI_SDP_MASTER_MODE; in alc5632_set_dai_fmt() 824 iface = ALC5632_DAI_SDP_SLAVE_MODE; in alc5632_set_dai_fmt() 833 iface |= ALC5632_DAI_I2S_DF_I2S; in alc5632_set_dai_fmt() 836 iface |= ALC5632_DAI_I2S_DF_LEFT; in alc5632_set_dai_fmt() 839 iface |= ALC5632_DAI_I2S_DF_PCM_A; in alc5632_set_dai_fmt() 842 iface |= ALC5632_DAI_I2S_DF_PCM_B; in alc5632_set_dai_fmt() 853 iface |= ALC5632_DAI_MAIN_I2S_BCLK_POL_CTRL; in alc5632_set_dai_fmt() 856 iface |= ALC5632_DAI_MAIN_I2S_BCLK_POL_CTRL; in alc5632_set_dai_fmt() 864 return snd_soc_component_write(component, ALC5632_DAI_CONTROL, iface); in alc5632_set_dai_fmt() [all …]
|
D | wm8988.c | 588 u16 iface = 0; in wm8988_set_dai_fmt() local 593 iface = 0x0040; in wm8988_set_dai_fmt() 604 iface |= 0x0002; in wm8988_set_dai_fmt() 609 iface |= 0x0001; in wm8988_set_dai_fmt() 612 iface |= 0x0003; in wm8988_set_dai_fmt() 615 iface |= 0x0013; in wm8988_set_dai_fmt() 626 iface |= 0x0090; in wm8988_set_dai_fmt() 629 iface |= 0x0080; in wm8988_set_dai_fmt() 632 iface |= 0x0010; in wm8988_set_dai_fmt() 638 snd_soc_component_write(component, WM8988_IFACE, iface); in wm8988_set_dai_fmt() [all …]
|
D | wm8974.c | 452 u16 iface = 0; in wm8974_set_dai_fmt() local 469 iface |= 0x0010; in wm8974_set_dai_fmt() 474 iface |= 0x0008; in wm8974_set_dai_fmt() 481 iface |= 0x00018; in wm8974_set_dai_fmt() 492 iface |= 0x0180; in wm8974_set_dai_fmt() 495 iface |= 0x0100; in wm8974_set_dai_fmt() 498 iface |= 0x0080; in wm8974_set_dai_fmt() 504 snd_soc_component_write(component, WM8974_IFACE, iface); in wm8974_set_dai_fmt() 515 u16 iface = snd_soc_component_read(component, WM8974_IFACE) & 0x19f; in wm8974_pcm_hw_params() local 529 iface |= 0x0020; in wm8974_pcm_hw_params() [all …]
|
/sound/pci/ice1712/ |
D | aureon.c | 1394 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1401 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1411 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1419 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1430 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1438 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1449 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1457 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1468 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1476 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, [all …]
|
/sound/pci/oxygen/ |
D | oxygen_mixer.c | 730 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ 739 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ 756 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 764 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 771 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 781 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 788 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 796 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 804 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 817 .iface = SNDRV_CTL_ELEM_IFACE_PCM, [all …]
|
/sound/i2c/other/ |
D | ak4117.c | 311 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 319 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 327 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 335 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 343 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 350 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 357 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 364 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 371 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 378 .iface = SNDRV_CTL_ELEM_IFACE_PCM, [all …]
|