소스 검색

ALSA: hda - Remove unused mutex

Removed unused mutex from patch_*.c.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Takashi Iwai 17 년 전
부모
커밋
149b154452
2개의 변경된 파일0개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 5
      sound/pci/hda/patch_analog.c
  2. 0 4
      sound/pci/hda/patch_conexant.c

+ 0 - 5
sound/pci/hda/patch_analog.c

@@ -23,7 +23,6 @@
 #include <linux/delay.h>
 #include <linux/delay.h>
 #include <linux/slab.h>
 #include <linux/slab.h>
 #include <linux/pci.h>
 #include <linux/pci.h>
-#include <linux/mutex.h>
 
 
 #include <sound/core.h>
 #include <sound/core.h>
 #include "hda_codec.h"
 #include "hda_codec.h"
@@ -64,7 +63,6 @@ struct ad198x_spec {
 	/* PCM information */
 	/* PCM information */
 	struct hda_pcm pcm_rec[3];	/* used in alc_build_pcms() */
 	struct hda_pcm pcm_rec[3];	/* used in alc_build_pcms() */
 
 
-	struct mutex amp_mutex;	/* PCM volume/mute control mutex */
 	unsigned int spdif_route;
 	unsigned int spdif_route;
 
 
 	/* dynamic controls, init_verbs and input_mux */
 	/* dynamic controls, init_verbs and input_mux */
@@ -3177,7 +3175,6 @@ static int patch_ad1884(struct hda_codec *codec)
 	if (spec == NULL)
 	if (spec == NULL)
 		return -ENOMEM;
 		return -ENOMEM;
 
 
-	mutex_init(&spec->amp_mutex);
 	codec->spec = spec;
 	codec->spec = spec;
 
 
 	spec->multiout.max_channels = 2;
 	spec->multiout.max_channels = 2;
@@ -3847,7 +3844,6 @@ static int patch_ad1884a(struct hda_codec *codec)
 	if (spec == NULL)
 	if (spec == NULL)
 		return -ENOMEM;
 		return -ENOMEM;
 
 
-	mutex_init(&spec->amp_mutex);
 	codec->spec = spec;
 	codec->spec = spec;
 
 
 	spec->multiout.max_channels = 2;
 	spec->multiout.max_channels = 2;
@@ -4152,7 +4148,6 @@ static int patch_ad1882(struct hda_codec *codec)
 	if (spec == NULL)
 	if (spec == NULL)
 		return -ENOMEM;
 		return -ENOMEM;
 
 
-	mutex_init(&spec->amp_mutex);
 	codec->spec = spec;
 	codec->spec = spec;
 
 
 	spec->multiout.max_channels = 6;
 	spec->multiout.max_channels = 6;

+ 0 - 4
sound/pci/hda/patch_conexant.c

@@ -82,7 +82,6 @@ struct conexant_spec {
 	/* PCM information */
 	/* PCM information */
 	struct hda_pcm pcm_rec[2];	/* used in build_pcms() */
 	struct hda_pcm pcm_rec[2];	/* used in build_pcms() */
 
 
-	struct mutex amp_mutex;	/* PCM volume/mute control mutex */
 	unsigned int spdif_route;
 	unsigned int spdif_route;
 
 
 	/* dynamic controls, init_verbs and input_mux */
 	/* dynamic controls, init_verbs and input_mux */
@@ -928,7 +927,6 @@ static int patch_cxt5045(struct hda_codec *codec)
 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
 	if (!spec)
 	if (!spec)
 		return -ENOMEM;
 		return -ENOMEM;
-	mutex_init(&spec->amp_mutex);
 	codec->spec = spec;
 	codec->spec = spec;
 
 
 	spec->multiout.max_channels = 2;
 	spec->multiout.max_channels = 2;
@@ -1477,7 +1475,6 @@ static int patch_cxt5047(struct hda_codec *codec)
 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
 	if (!spec)
 	if (!spec)
 		return -ENOMEM;
 		return -ENOMEM;
-	mutex_init(&spec->amp_mutex);
 	codec->spec = spec;
 	codec->spec = spec;
 
 
 	spec->multiout.max_channels = 2;
 	spec->multiout.max_channels = 2;
@@ -1736,7 +1733,6 @@ static int patch_cxt5051(struct hda_codec *codec)
 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
 	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
 	if (!spec)
 	if (!spec)
 		return -ENOMEM;
 		return -ENOMEM;
-	mutex_init(&spec->amp_mutex);
 	codec->spec = spec;
 	codec->spec = spec;
 
 
 	codec->patch_ops = conexant_patch_ops;
 	codec->patch_ops = conexant_patch_ops;