tas 103 sound/aoa/codecs/snd-aoa-codec-tas.c static struct tas *codec_to_tas(struct aoa_codec *codec) tas 105 sound/aoa/codecs/snd-aoa-codec-tas.c return container_of(codec, struct tas, codec); tas 111 sound/aoa/codecs/snd-aoa-codec-tas.c return i2c_smbus_write_byte_data(&tas->i2c, reg, *data); tas 113 sound/aoa/codecs/snd-aoa-codec-tas.c return i2c_smbus_write_i2c_block_data(&tas->i2c, reg, len, data); tas 120 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->drc_enabled) tas 125 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->drc_range > 0xef) tas 127 sound/aoa/codecs/snd-aoa-codec-tas.c else if (tas->drc_range < 0) tas 130 sound/aoa/codecs/snd-aoa-codec-tas.c val[2] = tas->drc_range; tas 135 sound/aoa/codecs/snd-aoa-codec-tas.c tas_write_reg(tas, TAS_REG_DRC, 6, val); tas 142 sound/aoa/codecs/snd-aoa-codec-tas.c tmp = tas3004_treble(tas->treble); tas 143 sound/aoa/codecs/snd-aoa-codec-tas.c tas_write_reg(tas, TAS_REG_TREBLE, 1, &tmp); tas 150 sound/aoa/codecs/snd-aoa-codec-tas.c tmp = tas3004_bass(tas->bass); tas 151 sound/aoa/codecs/snd-aoa-codec-tas.c tas_write_reg(tas, TAS_REG_BASS, 1, &tmp); tas 160 sound/aoa/codecs/snd-aoa-codec-tas.c left = tas->cached_volume_l; tas 161 sound/aoa/codecs/snd-aoa-codec-tas.c right = tas->cached_volume_r; tas 166 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->mute_l) left = 0; tas 167 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->mute_r) right = 0; tas 183 sound/aoa/codecs/snd-aoa-codec-tas.c tas_write_reg(tas, TAS_REG_VOL, 6, block); tas 193 sound/aoa/codecs/snd-aoa-codec-tas.c val = tas->mixer_l[i]; tas 200 sound/aoa/codecs/snd-aoa-codec-tas.c tas_write_reg(tas, TAS_REG_LMIX, 9, block); tas 203 sound/aoa/codecs/snd-aoa-codec-tas.c val = tas->mixer_r[i]; tas 210 sound/aoa/codecs/snd-aoa-codec-tas.c tas_write_reg(tas, TAS_REG_RMIX, 9, block); tas 237 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 239 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 240 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.integer.value[0] = tas->cached_volume_l; tas 241 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.integer.value[1] = tas->cached_volume_r; tas 242 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 249 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 258 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 259 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->cached_volume_l == ucontrol->value.integer.value[0] tas 260 sound/aoa/codecs/snd-aoa-codec-tas.c && tas->cached_volume_r == ucontrol->value.integer.value[1]) { tas 261 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 265 sound/aoa/codecs/snd-aoa-codec-tas.c tas->cached_volume_l = ucontrol->value.integer.value[0]; tas 266 sound/aoa/codecs/snd-aoa-codec-tas.c tas->cached_volume_r = ucontrol->value.integer.value[1]; tas 267 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->hw_enabled) tas 268 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_volume(tas); tas 269 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 287 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 289 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 290 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.integer.value[0] = !tas->mute_l; tas 291 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.integer.value[1] = !tas->mute_r; tas 292 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 299 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 301 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 302 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->mute_l == !ucontrol->value.integer.value[0] tas 303 sound/aoa/codecs/snd-aoa-codec-tas.c && tas->mute_r == !ucontrol->value.integer.value[1]) { tas 304 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 308 sound/aoa/codecs/snd-aoa-codec-tas.c tas->mute_l = !ucontrol->value.integer.value[0]; tas 309 sound/aoa/codecs/snd-aoa-codec-tas.c tas->mute_r = !ucontrol->value.integer.value[1]; tas 310 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->hw_enabled) tas 311 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_volume(tas); tas 312 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 338 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 341 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 342 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.integer.value[0] = tas->mixer_l[idx]; tas 343 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.integer.value[1] = tas->mixer_r[idx]; tas 344 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 352 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 355 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 356 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->mixer_l[idx] == ucontrol->value.integer.value[0] tas 357 sound/aoa/codecs/snd-aoa-codec-tas.c && tas->mixer_r[idx] == ucontrol->value.integer.value[1]) { tas 358 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 362 sound/aoa/codecs/snd-aoa-codec-tas.c tas->mixer_l[idx] = ucontrol->value.integer.value[0]; tas 363 sound/aoa/codecs/snd-aoa-codec-tas.c tas->mixer_r[idx] = ucontrol->value.integer.value[1]; tas 365 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->hw_enabled) tas 366 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_mixer(tas); tas 367 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 398 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 400 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 401 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.integer.value[0] = tas->drc_range; tas 402 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 409 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 415 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 416 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->drc_range == ucontrol->value.integer.value[0]) { tas 417 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 421 sound/aoa/codecs/snd-aoa-codec-tas.c tas->drc_range = ucontrol->value.integer.value[0]; tas 422 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->hw_enabled) tas 423 sound/aoa/codecs/snd-aoa-codec-tas.c tas3004_set_drc(tas); tas 424 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 442 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 444 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 445 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.integer.value[0] = tas->drc_enabled; tas 446 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 453 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 455 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 456 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->drc_enabled == ucontrol->value.integer.value[0]) { tas 457 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 461 sound/aoa/codecs/snd-aoa-codec-tas.c tas->drc_enabled = !!ucontrol->value.integer.value[0]; tas 462 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->hw_enabled) tas 463 sound/aoa/codecs/snd-aoa-codec-tas.c tas3004_set_drc(tas); tas 464 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 494 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 496 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 497 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.enumerated.item[0] = !!(tas->acr & TAS_ACR_INPUT_B); tas 498 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 505 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 510 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 511 sound/aoa/codecs/snd-aoa-codec-tas.c oldacr = tas->acr; tas 518 sound/aoa/codecs/snd-aoa-codec-tas.c tas->acr &= ~(TAS_ACR_INPUT_B | TAS_ACR_B_MONAUREAL); tas 520 sound/aoa/codecs/snd-aoa-codec-tas.c tas->acr |= TAS_ACR_INPUT_B | TAS_ACR_B_MONAUREAL | tas 522 sound/aoa/codecs/snd-aoa-codec-tas.c if (oldacr == tas->acr) { tas 523 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 526 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->hw_enabled) tas 527 sound/aoa/codecs/snd-aoa-codec-tas.c tas_write_reg(tas, TAS_REG_ACR, 1, &tas->acr); tas 528 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 565 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 567 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 568 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.integer.value[0] = tas->treble; tas 569 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 576 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 581 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 582 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->treble == ucontrol->value.integer.value[0]) { tas 583 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 587 sound/aoa/codecs/snd-aoa-codec-tas.c tas->treble = ucontrol->value.integer.value[0]; tas 588 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->hw_enabled) tas 589 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_treble(tas); tas 590 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 616 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 618 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 619 sound/aoa/codecs/snd-aoa-codec-tas.c ucontrol->value.integer.value[0] = tas->bass; tas 620 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 627 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = snd_kcontrol_chip(kcontrol); tas 632 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 633 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->bass == ucontrol->value.integer.value[0]) { tas 634 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 638 sound/aoa/codecs/snd-aoa-codec-tas.c tas->bass = ucontrol->value.integer.value[0]; tas 639 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->hw_enabled) tas 640 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_bass(tas); tas 641 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 681 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.gpio->methods->all_amps_off(tas->codec.gpio); tas 683 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.gpio->methods->set_hw_reset(tas->codec.gpio, 0); tas 685 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.gpio->methods->set_hw_reset(tas->codec.gpio, 1); tas 687 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.gpio->methods->set_hw_reset(tas->codec.gpio, 0); tas 689 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.gpio->methods->all_amps_restore(tas->codec.gpio); tas 692 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas_write_reg(tas, TAS_REG_MCS, 1, &tmp)) tas 695 sound/aoa/codecs/snd-aoa-codec-tas.c tas->acr |= TAS_ACR_ANALOG_PDOWN; tas 696 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas_write_reg(tas, TAS_REG_ACR, 1, &tas->acr)) tas 700 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas_write_reg(tas, TAS_REG_MCS2, 1, &tmp)) tas 703 sound/aoa/codecs/snd-aoa-codec-tas.c tas3004_set_drc(tas); tas 706 sound/aoa/codecs/snd-aoa-codec-tas.c tas->treble = TAS3004_TREBLE_ZERO; tas 707 sound/aoa/codecs/snd-aoa-codec-tas.c tas->bass = TAS3004_BASS_ZERO; tas 708 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_treble(tas); tas 709 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_bass(tas); tas 711 sound/aoa/codecs/snd-aoa-codec-tas.c tas->acr &= ~TAS_ACR_ANALOG_PDOWN; tas 712 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas_write_reg(tas, TAS_REG_ACR, 1, &tas->acr)) tas 722 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = cii->codec_data; tas 727 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.gpio->methods->all_amps_off(tas->codec.gpio); tas 728 sound/aoa/codecs/snd-aoa-codec-tas.c tas->hw_enabled = 0; tas 732 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 733 sound/aoa/codecs/snd-aoa-codec-tas.c tas_reset_init(tas); tas 734 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_volume(tas); tas 735 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_mixer(tas); tas 736 sound/aoa/codecs/snd-aoa-codec-tas.c tas->hw_enabled = 1; tas 737 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.gpio->methods->all_amps_restore(tas->codec.gpio); tas 738 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 753 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 754 sound/aoa/codecs/snd-aoa-codec-tas.c tas->hw_enabled = 0; tas 755 sound/aoa/codecs/snd-aoa-codec-tas.c tas->acr |= TAS_ACR_ANALOG_PDOWN; tas 756 sound/aoa/codecs/snd-aoa-codec-tas.c tas_write_reg(tas, TAS_REG_ACR, 1, &tas->acr); tas 757 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 764 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 765 sound/aoa/codecs/snd-aoa-codec-tas.c tas_reset_init(tas); tas 766 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_volume(tas); tas 767 sound/aoa/codecs/snd-aoa-codec-tas.c tas_set_mixer(tas); tas 768 sound/aoa/codecs/snd-aoa-codec-tas.c tas->hw_enabled = 1; tas 769 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 804 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = codec_to_tas(codec); tas 807 sound/aoa/codecs/snd-aoa-codec-tas.c if (!tas->codec.gpio || !tas->codec.gpio->methods) { tas 812 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_lock(&tas->mtx); tas 813 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas_reset_init(tas)) { tas 815 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 818 sound/aoa/codecs/snd-aoa-codec-tas.c tas->hw_enabled = 1; tas 819 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_unlock(&tas->mtx); tas 821 sound/aoa/codecs/snd-aoa-codec-tas.c if (tas->codec.soundbus_dev->attach_codec(tas->codec.soundbus_dev, tas 823 sound/aoa/codecs/snd-aoa-codec-tas.c &tas_codec_info, tas)) { tas 828 sound/aoa/codecs/snd-aoa-codec-tas.c if (aoa_snd_device_new(SNDRV_DEV_LOWLEVEL, tas, &ops)) { tas 832 sound/aoa/codecs/snd-aoa-codec-tas.c err = aoa_snd_ctl_add(snd_ctl_new1(&volume_control, tas)); tas 836 sound/aoa/codecs/snd-aoa-codec-tas.c err = aoa_snd_ctl_add(snd_ctl_new1(&mute_control, tas)); tas 840 sound/aoa/codecs/snd-aoa-codec-tas.c err = aoa_snd_ctl_add(snd_ctl_new1(&pcm1_control, tas)); tas 844 sound/aoa/codecs/snd-aoa-codec-tas.c err = aoa_snd_ctl_add(snd_ctl_new1(&monitor_control, tas)); tas 848 sound/aoa/codecs/snd-aoa-codec-tas.c err = aoa_snd_ctl_add(snd_ctl_new1(&capture_source_control, tas)); tas 852 sound/aoa/codecs/snd-aoa-codec-tas.c err = aoa_snd_ctl_add(snd_ctl_new1(&drc_range_control, tas)); tas 856 sound/aoa/codecs/snd-aoa-codec-tas.c err = aoa_snd_ctl_add(snd_ctl_new1(&drc_switch_control, tas)); tas 860 sound/aoa/codecs/snd-aoa-codec-tas.c err = aoa_snd_ctl_add(snd_ctl_new1(&treble_control, tas)); tas 864 sound/aoa/codecs/snd-aoa-codec-tas.c err = aoa_snd_ctl_add(snd_ctl_new1(&bass_control, tas)); tas 870 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.soundbus_dev->detach_codec(tas->codec.soundbus_dev, tas); tas 871 sound/aoa/codecs/snd-aoa-codec-tas.c snd_device_free(aoa_get_card(), tas); tas 877 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = codec_to_tas(codec); tas 879 sound/aoa/codecs/snd-aoa-codec-tas.c if (!tas->codec.soundbus_dev) tas 881 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.soundbus_dev->detach_codec(tas->codec.soundbus_dev, tas); tas 891 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas; tas 893 sound/aoa/codecs/snd-aoa-codec-tas.c tas = kzalloc(sizeof(struct tas), GFP_KERNEL); tas 895 sound/aoa/codecs/snd-aoa-codec-tas.c if (!tas) tas 898 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_init(&tas->mtx); tas 899 sound/aoa/codecs/snd-aoa-codec-tas.c tas->i2c.driver = &tas_driver; tas 900 sound/aoa/codecs/snd-aoa-codec-tas.c tas->i2c.adapter = adapter; tas 901 sound/aoa/codecs/snd-aoa-codec-tas.c tas->i2c.addr = addr; tas 903 sound/aoa/codecs/snd-aoa-codec-tas.c tas->drc_range = TAS3004_DRC_MAX / 2; tas 904 sound/aoa/codecs/snd-aoa-codec-tas.c strlcpy(tas->i2c.name, "tas audio codec", I2C_NAME_SIZE); tas 906 sound/aoa/codecs/snd-aoa-codec-tas.c if (i2c_attach_client(&tas->i2c)) { tas 911 sound/aoa/codecs/snd-aoa-codec-tas.c strlcpy(tas->codec.name, "tas", MAX_CODEC_NAME_LEN); tas 912 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.owner = THIS_MODULE; tas 913 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.init = tas_init_codec; tas 914 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.exit = tas_exit_codec; tas 915 sound/aoa/codecs/snd-aoa-codec-tas.c tas->codec.node = of_node_get(node); tas 917 sound/aoa/codecs/snd-aoa-codec-tas.c if (aoa_codec_register(&tas->codec)) { tas 925 sound/aoa/codecs/snd-aoa-codec-tas.c i2c_detach_client(&tas->i2c); tas 927 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_destroy(&tas->mtx); tas 928 sound/aoa/codecs/snd-aoa-codec-tas.c kfree(tas); tas 975 sound/aoa/codecs/snd-aoa-codec-tas.c struct tas *tas = container_of(client, struct tas, i2c); tas 981 sound/aoa/codecs/snd-aoa-codec-tas.c aoa_codec_unregister(&tas->codec); tas 982 sound/aoa/codecs/snd-aoa-codec-tas.c of_node_put(tas->codec.node); tas 985 sound/aoa/codecs/snd-aoa-codec-tas.c tas_write_reg(tas, TAS_REG_ACR, 1, &tmp); tas 987 sound/aoa/codecs/snd-aoa-codec-tas.c mutex_destroy(&tas->mtx); tas 988 sound/aoa/codecs/snd-aoa-codec-tas.c kfree(tas);