瀏覽代碼

ALSA: hda - Drop azx_mixer_create()

It's just an indirection, so let the caller directly calling
snd_hda_build_controls().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai 10 年之前
父節點
當前提交
b8f28d5364
共有 4 個文件被更改,包括 2 次插入10 次删除
  1. 0 7
      sound/pci/hda/hda_controller.c
  2. 0 1
      sound/pci/hda/hda_controller.h
  3. 1 1
      sound/pci/hda/hda_intel.c
  4. 1 1
      sound/pci/hda/hda_tegra.c

+ 0 - 7
sound/pci/hda/hda_controller.c

@@ -1923,13 +1923,6 @@ int azx_codec_configure(struct azx *chip)
 }
 EXPORT_SYMBOL_GPL(azx_codec_configure);
 
-/* mixer creation - all stuff is implemented in hda module */
-int azx_mixer_create(struct azx *chip)
-{
-	return snd_hda_build_controls(chip->bus);
-}
-EXPORT_SYMBOL_GPL(azx_mixer_create);
-
 
 static bool is_input_stream(struct azx *chip, unsigned char index)
 {

+ 0 - 1
sound/pci/hda/hda_controller.h

@@ -436,7 +436,6 @@ int azx_codec_create(struct azx *chip, const char *model,
 		     unsigned int max_slots,
 		     int *power_save_to);
 int azx_codec_configure(struct azx *chip);
-int azx_mixer_create(struct azx *chip);
 int azx_init_stream(struct azx *chip);
 
 void azx_notifier_register(struct azx *chip);

+ 1 - 1
sound/pci/hda/hda_intel.c

@@ -1923,7 +1923,7 @@ static int azx_probe_continue(struct azx *chip)
 		goto out_free;
 
 	/* create mixer controls */
-	err = azx_mixer_create(chip);
+	err = snd_hda_build_controls(chip->bus);
 	if (err < 0)
 		goto out_free;
 

+ 1 - 1
sound/pci/hda/hda_tegra.c

@@ -516,7 +516,7 @@ static int hda_tegra_probe(struct platform_device *pdev)
 		goto out_free;
 
 	/* create mixer controls */
-	err = azx_mixer_create(chip);
+	err = snd_hda_build_controls(chip->bus);
 	if (err < 0)
 		goto out_free;