ALSA: hda - Make full_reset boolean
PATCH 1/1 ALSA: hda - Make full_reset boolean
From: Thierry Reding <[email protected]>
The full_reset argument to azx_init_chip() carries boolean rather than numerical information, so update the type to reflect that.
--- sound/pci/hda/hda_controller.c | 8 ++++---- sound/pci/hda/hda_intel.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
sound/pci/hda/hda_controller.c +4 -4
@@ -1604,7 +1604,7 @@ static void azx_exit_link_reset(struct azx *chip) }/* reset codec link */ -static int azx_reset (struct azx *chip,int full_reset) +static int azx_reset (struct azx *chip,bool full_reset) {if (!full_reset) goto __skip;
@@ -1701,7 +1701,7 @@ static void azx_int_clear(struct azx *chip)/* * reset and start the controller registers */ -void azx_init_chip (struct azx *chip,int full_reset) +void azx_init_chip (struct azx *chip,bool full_reset) {if (chip->initialized)return ;
@@ -1841,7 +1841,7 @@ static void azx_bus_reset(struct hda_bus *bus) bus->in_reset =1 ;azx_stop_chip (chip); -azx_init_chip (chip,1 ); +azx_init_chip (chip, true);#ifdef CONFIG_PM if (chip->initialized) {struct azx_pcm *p;
@@ -1948,7 +1948,7 @@ int azx_codec_create(struct azx *chip, const char *model,* get back to the sanity state. */ azx_stop_chip (chip); -azx_init_chip (chip,1 ); +azx_init_chip (chip, true); } } }
sound/pci/hda/hda_intel.c +2 -2
@@ -636,7 +636,7 @@ static int azx_resume(struct device *dev)return -EIO ;azx_init_pci (chip); -azx_init_chip (chip,1 ); +azx_init_chip (chip, true);snd_hda_resume (chip->bus);snd_power_change_state (card,SNDRV_CTL_POWER_D0 );
@@ -689,7 +689,7 @@ static int azx_runtime_resume(struct device *dev) status =azx_readw (chip,STATESTS );azx_init_pci (chip); -azx_init_chip (chip,1 ); +azx_init_chip (chip, true); bus = chip->bus;if (status && bus) {
Signature · 1 line
1.9.1
At Wed, 9 Apr 2014 11:28:26 +0200,
Quoted 11 lines · Thierry Reding
From: Thierry Reding <[email protected]>
The
full_resetargument toazx_init_chip()carries boolean rather than numerical information, so update the type to reflect that.Signed-off-by Thierry Reding <[email protected]>--- sound/pci/hda/hda_controller.c | 8 ++++---- sound/pci/hda/hda_intel.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
Forgot to patch hda_controller.h?
thanks,
Takashi
Quoted 66 lines
sound/pci/hda/hda_controller.c +4
-4@@ -1604,7 +1604,7 @@ static void azx_exit_link_reset(struct azx *chip) }/* reset codec link */ -static int azx_reset (struct azx *chip,int full_reset) +static int azx_reset (struct azx *chip,bool full_reset) {if (!full_reset) goto __skip;@@ -1701,7 +1701,7 @@ static void azx_int_clear(struct azx *chip)/* * reset and start the controller registers */ -void azx_init_chip (struct azx *chip,int full_reset) +void azx_init_chip (struct azx *chip,bool full_reset) {if (chip->initialized)return ;@@ -1841,7 +1841,7 @@ static void azx_bus_reset(struct hda_bus *bus) bus->in_reset =1 ;azx_stop_chip (chip); -azx_init_chip (chip,1 ); +azx_init_chip (chip, true);#ifdef CONFIG_PM if (chip->initialized) {struct azx_pcm *p;@@ -1948,7 +1948,7 @@ int azx_codec_create(struct azx *chip, const char *model,* get back to the sanity state. */ azx_stop_chip (chip); -azx_init_chip (chip,1 ); +azx_init_chip (chip, true); } } }sound/pci/hda/hda_intel.c +2
-2@@ -636,7 +636,7 @@ static int azx_resume(struct device *dev)return -EIO ;azx_init_pci (chip); -azx_init_chip (chip,1 ); +azx_init_chip (chip, true);snd_hda_resume (chip->bus);snd_power_change_state (card,SNDRV_CTL_POWER_D0 );@@ -689,7 +689,7 @@ static int azx_runtime_resume(struct device *dev) status =azx_readw (chip,STATESTS );azx_init_pci (chip); -azx_init_chip (chip,1 ); +azx_init_chip (chip, true); bus = chip->bus;if (status && bus) {Signature · 1 line
1.9.1
Quoted 8 lines · Takashi Iwai
At Wed, 9 Apr 2014 11:28:26 +0200,
Quoted 6 lines · Thierry Reding
From: Thierry Reding <[email protected]>
The
full_resetargument toazx_init_chip()carries boolean rather than numerical information, so update the type to reflect that.
Quoted 7 lines
Quoted 5 lines
Signed-off-by Thierry Reding <[email protected]>--- sound/pci/hda/hda_controller.c | 8 ++++---- sound/pci/hda/hda_intel.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)Forgot to patch
hda_controller.h?
Indeed. Turns out this didn't cause build breakage for me because I had turned off HDA for some other test again.
Sorry about that. New patch sent out.
Thierry