struct pci_dev *pci = to_pci_dev(dev);
struct snd_card *card = dev_get_drvdata(dev);
struct azx *chip = card->private_data;
++ struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
struct azx_pcm *p;
- if (chip->disabled)
- if (chip->disabled || chip->init_failed)
++ if (chip->disabled || hda->init_failed)
return 0;
snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
struct pci_dev *pci = to_pci_dev(dev);
struct snd_card *card = dev_get_drvdata(dev);
struct azx *chip = card->private_data;
++ struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
- if (chip->disabled)
- if (chip->disabled || chip->init_failed)
++ if (chip->disabled || hda->init_failed)
return 0;
if (chip->driver_caps & AZX_DCAPS_I915_POWERWELL) {
{
struct snd_card *card = dev_get_drvdata(dev);
struct azx *chip = card->private_data;
++ struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
- if (chip->disabled)
- if (chip->disabled || chip->init_failed)
++ if (chip->disabled || hda->init_failed)
return 0;
if (!(chip->driver_caps & AZX_DCAPS_PM_RUNTIME))
{
struct snd_card *card = dev_get_drvdata(dev);
struct azx *chip = card->private_data;
++ struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
struct hda_bus *bus;
struct hda_codec *codec;
int status;
- if (chip->disabled)
- if (chip->disabled || chip->init_failed)
++ if (chip->disabled || hda->init_failed)
return 0;
if (!(chip->driver_caps & AZX_DCAPS_PM_RUNTIME))
{
struct snd_card *card = dev_get_drvdata(dev);
struct azx *chip = card->private_data;
++ struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
- if (chip->disabled)
- if (chip->disabled || chip->init_failed)
++ if (chip->disabled || hda->init_failed)
return 0;
if (!power_save_controller ||