Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] ALSA: firewire: some trivial fixes
@ 2016-03-27  7:09 Takashi Sakamoto
  2016-03-27  7:09 ` [PATCH 1/4] ALSA: bebob: remove needless argument from local function Takashi Sakamoto
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Takashi Sakamoto @ 2016-03-27  7:09 UTC (permalink / raw)
  To: clemens, tiwai; +Cc: alsa-devel, ffado-devel

Hi,

This patchset includes some trivial fixes for ALSA firewire stack. I don't
mind to postpone them to 4.7 instead of 4.6-rc2.


Regards

Takashi Sakamoto (4):
  ALSA: bebob: remove needless argument from local function
  ALSA: oxfw: remove needless member from private structure
  ALSA: fireworks: move model quirk detection code to information parser
  ALSA: firewire-tascam: add Kconfig entry for TASCAM FW-1804

 sound/firewire/Kconfig               |  1 +
 sound/firewire/bebob/bebob.c         |  4 ++--
 sound/firewire/fireworks/fireworks.c | 21 +++++++++++----------
 sound/firewire/oxfw/oxfw.h           |  1 -
 4 files changed, 14 insertions(+), 13 deletions(-)

-- 
2.7.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/4] ALSA: bebob: remove needless argument from local function
  2016-03-27  7:09 [PATCH 0/4] ALSA: firewire: some trivial fixes Takashi Sakamoto
@ 2016-03-27  7:09 ` Takashi Sakamoto
  2016-03-27  7:09 ` [PATCH 2/4] ALSA: oxfw: remove needless member from private structure Takashi Sakamoto
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Takashi Sakamoto @ 2016-03-27  7:09 UTC (permalink / raw)
  To: clemens, tiwai; +Cc: alsa-devel, ffado-devel

The 'vendor_id' argument is not used in the local function. Let's remove
it.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
 sound/firewire/bebob/bebob.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/firewire/bebob/bebob.c b/sound/firewire/bebob/bebob.c
index 3e4e075..932901d 100644
--- a/sound/firewire/bebob/bebob.c
+++ b/sound/firewire/bebob/bebob.c
@@ -67,7 +67,7 @@ static DECLARE_BITMAP(devices_used, SNDRV_CARDS);
 #define MODEL_MAUDIO_PROJECTMIX		0x00010091
 
 static int
-name_device(struct snd_bebob *bebob, unsigned int vendor_id)
+name_device(struct snd_bebob *bebob)
 {
 	struct fw_device *fw_dev = fw_parent_device(bebob->unit);
 	char vendor[24] = {0};
@@ -232,7 +232,7 @@ bebob_probe(struct fw_unit *unit,
 	spin_lock_init(&bebob->lock);
 	init_waitqueue_head(&bebob->hwdep_wait);
 
-	err = name_device(bebob, entry->vendor_id);
+	err = name_device(bebob);
 	if (err < 0)
 		goto error;
 
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/4] ALSA: oxfw: remove needless member from private structure
  2016-03-27  7:09 [PATCH 0/4] ALSA: firewire: some trivial fixes Takashi Sakamoto
  2016-03-27  7:09 ` [PATCH 1/4] ALSA: bebob: remove needless argument from local function Takashi Sakamoto
@ 2016-03-27  7:09 ` Takashi Sakamoto
  2016-03-27  7:09 ` [PATCH 3/4] ALSA: fireworks: move model quirk detection code to information parser Takashi Sakamoto
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Takashi Sakamoto @ 2016-03-27  7:09 UTC (permalink / raw)
  To: clemens, tiwai; +Cc: alsa-devel, ffado-devel

In former commit, 'struct device_info' is obsoleted, whereas private
structure still keeps a pointer to it.

This commit remove the member.

d6ce6bbd7d83('ALSA: oxfw: rename a structure so that it means backward compatibility to old drivers')

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
 sound/firewire/oxfw/oxfw.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/firewire/oxfw/oxfw.h b/sound/firewire/oxfw/oxfw.h
index 9beecc2..2c84714e 100644
--- a/sound/firewire/oxfw/oxfw.h
+++ b/sound/firewire/oxfw/oxfw.h
@@ -36,7 +36,6 @@
 struct snd_oxfw {
 	struct snd_card *card;
 	struct fw_unit *unit;
-	const struct device_info *device_info;
 	struct mutex mutex;
 	spinlock_t lock;
 
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/4] ALSA: fireworks: move model quirk detection code to information parser
  2016-03-27  7:09 [PATCH 0/4] ALSA: firewire: some trivial fixes Takashi Sakamoto
  2016-03-27  7:09 ` [PATCH 1/4] ALSA: bebob: remove needless argument from local function Takashi Sakamoto
  2016-03-27  7:09 ` [PATCH 2/4] ALSA: oxfw: remove needless member from private structure Takashi Sakamoto
@ 2016-03-27  7:09 ` Takashi Sakamoto
  2016-03-27  7:09 ` [PATCH 4/4] ALSA: firewire-tascam: add Kconfig entry for TASCAM FW-1804 Takashi Sakamoto
  2016-03-28  7:40 ` [PATCH 0/4] ALSA: firewire: some trivial fixes Takashi Iwai
  4 siblings, 0 replies; 6+ messages in thread
From: Takashi Sakamoto @ 2016-03-27  7:09 UTC (permalink / raw)
  To: clemens, tiwai; +Cc: alsa-devel, ffado-devel

Currently, model-specific quirks are detected out of information parser,
however it's natural to detect it in the parser.

This commit applies the idea.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
 sound/firewire/fireworks/fireworks.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/sound/firewire/fireworks/fireworks.c b/sound/firewire/fireworks/fireworks.c
index 8f27b67..8380fb5 100644
--- a/sound/firewire/fireworks/fireworks.c
+++ b/sound/firewire/fireworks/fireworks.c
@@ -168,6 +168,17 @@ get_hardware_info(struct snd_efw *efw)
 	       sizeof(struct snd_efw_phys_grp) * hwinfo->phys_in_grp_count);
 	memcpy(&efw->phys_out_grps, hwinfo->phys_out_grps,
 	       sizeof(struct snd_efw_phys_grp) * hwinfo->phys_out_grp_count);
+
+	/* AudioFire8 (since 2009) and AudioFirePre8 */
+	if (hwinfo->type == MODEL_ECHO_AUDIOFIRE_9)
+		efw->is_af9 = true;
+	/* These models uses the same firmware. */
+	if (hwinfo->type == MODEL_ECHO_AUDIOFIRE_2 ||
+	    hwinfo->type == MODEL_ECHO_AUDIOFIRE_4 ||
+	    hwinfo->type == MODEL_ECHO_AUDIOFIRE_9 ||
+	    hwinfo->type == MODEL_GIBSON_RIP ||
+	    hwinfo->type == MODEL_GIBSON_GOLDTOP)
+		efw->is_fireworks3 = true;
 end:
 	kfree(hwinfo);
 	return err;
@@ -248,16 +259,6 @@ efw_probe(struct fw_unit *unit,
 	err = get_hardware_info(efw);
 	if (err < 0)
 		goto error;
-	/* AudioFire8 (since 2009) and AudioFirePre8 */
-	if (entry->model_id == MODEL_ECHO_AUDIOFIRE_9)
-		efw->is_af9 = true;
-	/* These models uses the same firmware. */
-	if (entry->model_id == MODEL_ECHO_AUDIOFIRE_2 ||
-	    entry->model_id == MODEL_ECHO_AUDIOFIRE_4 ||
-	    entry->model_id == MODEL_ECHO_AUDIOFIRE_9 ||
-	    entry->model_id == MODEL_GIBSON_RIP ||
-	    entry->model_id == MODEL_GIBSON_GOLDTOP)
-		efw->is_fireworks3 = true;
 
 	snd_efw_proc_init(efw);
 
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/4] ALSA: firewire-tascam: add Kconfig entry for TASCAM FW-1804
  2016-03-27  7:09 [PATCH 0/4] ALSA: firewire: some trivial fixes Takashi Sakamoto
                   ` (2 preceding siblings ...)
  2016-03-27  7:09 ` [PATCH 3/4] ALSA: fireworks: move model quirk detection code to information parser Takashi Sakamoto
@ 2016-03-27  7:09 ` Takashi Sakamoto
  2016-03-28  7:40 ` [PATCH 0/4] ALSA: firewire: some trivial fixes Takashi Iwai
  4 siblings, 0 replies; 6+ messages in thread
From: Takashi Sakamoto @ 2016-03-27  7:09 UTC (permalink / raw)
  To: clemens, tiwai; +Cc: alsa-devel, ffado-devel

I forgot it.

Fixes: 3e78e1518e12('ALSA: firewire-tascam: add support for FW-1804')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
 sound/firewire/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/firewire/Kconfig b/sound/firewire/Kconfig
index 2a779c2..ab894ed 100644
--- a/sound/firewire/Kconfig
+++ b/sound/firewire/Kconfig
@@ -134,6 +134,7 @@ config SND_FIREWIRE_TASCAM
 	 Say Y here to include support for TASCAM.
 	  * FW-1884
 	  * FW-1082
+	  * FW-1804
 
 	 To compile this driver as a module, choose M here: the module
 	 will be called snd-firewire-tascam.
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/4] ALSA: firewire: some trivial fixes
  2016-03-27  7:09 [PATCH 0/4] ALSA: firewire: some trivial fixes Takashi Sakamoto
                   ` (3 preceding siblings ...)
  2016-03-27  7:09 ` [PATCH 4/4] ALSA: firewire-tascam: add Kconfig entry for TASCAM FW-1804 Takashi Sakamoto
@ 2016-03-28  7:40 ` Takashi Iwai
  4 siblings, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2016-03-28  7:40 UTC (permalink / raw)
  To: Takashi Sakamoto; +Cc: alsa-devel, clemens, ffado-devel

On Sun, 27 Mar 2016 09:09:05 +0200,
Takashi Sakamoto wrote:
> 
> Hi,
> 
> This patchset includes some trivial fixes for ALSA firewire stack. I don't
> mind to postpone them to 4.7 instead of 4.6-rc2.

As these are all minor code cleanups, I queued them to for-next branch
now.


thanks,

Takashi

> 
> 
> Regards
> 
> Takashi Sakamoto (4):
>   ALSA: bebob: remove needless argument from local function
>   ALSA: oxfw: remove needless member from private structure
>   ALSA: fireworks: move model quirk detection code to information parser
>   ALSA: firewire-tascam: add Kconfig entry for TASCAM FW-1804
> 
>  sound/firewire/Kconfig               |  1 +
>  sound/firewire/bebob/bebob.c         |  4 ++--
>  sound/firewire/fireworks/fireworks.c | 21 +++++++++++----------
>  sound/firewire/oxfw/oxfw.h           |  1 -
>  4 files changed, 14 insertions(+), 13 deletions(-)
> 
> -- 
> 2.7.3
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-28  7:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-27  7:09 [PATCH 0/4] ALSA: firewire: some trivial fixes Takashi Sakamoto
2016-03-27  7:09 ` [PATCH 1/4] ALSA: bebob: remove needless argument from local function Takashi Sakamoto
2016-03-27  7:09 ` [PATCH 2/4] ALSA: oxfw: remove needless member from private structure Takashi Sakamoto
2016-03-27  7:09 ` [PATCH 3/4] ALSA: fireworks: move model quirk detection code to information parser Takashi Sakamoto
2016-03-27  7:09 ` [PATCH 4/4] ALSA: firewire-tascam: add Kconfig entry for TASCAM FW-1804 Takashi Sakamoto
2016-03-28  7:40 ` [PATCH 0/4] ALSA: firewire: some trivial fixes Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox