Re: How to get driver_data of struct ieee1394_device_id in kernel driver module?

2013-05-30 Thread Takashi Sakamoto
king. I'm pleased to test your patches in this way if you need to check probe() function in driver module. Thanks Takashi Sakamoto (May 27 2013 07:57), Greg Kroah-Hartman wrote: On Sun, May 26, 2013 at 11:35:13PM +0200, Stefan Richter wrote: I think your approach is sensible. There is

Re: [PATCH] firewire: introduce fw_driver.probe and .remove methods

2013-06-02 Thread Takashi Sakamoto
uot;, an driver module is for TC Applied Technologies' Dice based firewire sound devices. I'll inform them about your patches and topic branch. Thanks a lot! Takashi Sakamoto o-taka...@sakamocchi.jp (Jun 03 2013 08:35), Stefan Richter wrote: On Jun 02 Greg Kroah-Hartman wrote: On Mon,

Re: [PATCH] ALSA: snd-usb-line6 depends on CONFIG_SND_HWDEP

2016-09-20 Thread Takashi Sakamoto
by: Valdis Kletnieks Reviewed-by: Takashi Sakamoto As a nitpicking, I think it better to change the subject line with a prefix of 'ALSA: line6:' or 'ALSA: usb-line6:', following to our fashion. diff --git a/sound/usb/line6/Kconfig b/sound/usb/line6/Kconfig index 8ffcf

Re: [PATCH] ALSA: snd-usb-line6 depends on CONFIG_SND_HWDEP

2016-09-21 Thread Takashi Sakamoto
On Sep 21 2016 21:37, Takashi Iwai wrote: > On Wed, 21 Sep 2016 03:56:05 +0200, > Takashi Sakamoto wrote: >> >> On Sep 21 2016 07:14, Valdis Kletnieks wrote: >>> ALSA - snd-usb-line6 depends on CONFIG_SND_HWDEP >>> >>> ERROR: "snd_hwdep

Re: [PATCH] ALSA: snd-usb-line6 depends on CONFIG_SND_HWDEP

2016-09-21 Thread Takashi Sakamoto
On Sep 21 2016 22:30, Takashi Iwai wrote: > On Wed, 21 Sep 2016 15:25:43 +0200, > Takashi Sakamoto wrote: >> >> On Sep 21 2016 21:37, Takashi Iwai wrote: >>> On Wed, 21 Sep 2016 03:56:05 +0200, >>> Takashi Sakamoto wrote: >>>> >>>> On Sep

Re: [PATCH 3/6] ALSA: firewire: constify snd_pcm_ops structures

2016-09-01 Thread Takashi Sakamoto
structures that have this property can be declared as const also. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) Reviewed-by: Takashi Sakamoto I've realized this issue and will fix in this development cycle for Linux 4.9. Thanks for your continuous effo

Re: [PATCH 3/6] ALSA: firewire: constify snd_pcm_ops structures

2016-09-01 Thread Takashi Sakamoto
On 2016年09月02日 08:28, Takashi Sakamoto wrote: Hi Julia, On 2016年09月02日 07:13, Julia Lawall wrote: Check for snd_pcm_ops structures that are only stored in the ops field of a snd_soc_platform_driver structure or passed as the third argument to snd_pcm_set_ops. The corresponding field or

Re: [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-17 Thread Takashi Sakamoto
sound interfaces of actual hardwares.) Please declare the way to enable stuffs on DomU to get the positions from actual hardware. Regards Takashi Sakamoto

Re: [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-08-18 Thread Takashi Sakamoto
mean that any alsa-lib or libpulse applications run on Dom0 as a backend driver for the frontend driver on DomU? Regards Takashi Sakamoto

Re: 4.13 regression: get_kctl_0dB_offset doesn't handle all possible callbacks

2017-10-13 Thread Takashi Sakamoto
; unexpected callbacks in the future. This suggestion is better for safety. Do you have some ways to detect the pattern on current vanilla kernel? Or we should find it by eye-grep? Thanks Takashi Sakamoto 8< >From 85896b50aa22bf2f2b5e45456daa16d386602edc Mon Sep 17 00:00:0

Re: [RFC] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-11-02 Thread Takashi Sakamoto
them. For instance, you can point links to backend/frontend implementation as para-virtualization drivers which use the new feature of interface, if you did work for it. Indicating procedure to use a series of your work is better for test, if possible. [1] https://www.ietf.org/rfc/rfc0822.txt Regards Takashi Sakamoto

Re: future of sounds/oss

2017-05-11 Thread Takashi Sakamoto
topic/segment-in-pcm [2] https://github.com/takaswie/sound/tree/topic/trace+refactor [3] https://github.com/libfuse/osspd Regards Takashi Sakamoto

Re: future of sounds/oss

2017-05-11 Thread Takashi Sakamoto
On May 11 2017 19:01, Takashi Sakamoto wrote: But the set_fs() usage in OSS code is hard to get rid of, due to the in-kernel ioctl calls, and I really don't want to touch such dusty codes, either. So I wanted to post the very same question, but you were faster :) But looking at the OSS

Re: [PATCH 1/2] ALSA: firewire-tascam: Fix infinite loop in snd_tscm_stream_get_rate()

2017-05-15 Thread Takashi Sakamoto
rgot itself when developing the driver... I'd like to have a bit time for further investigation, then post my fix in this development period. Please let me keep this patch pending. Thanks Takashi Sakamoto

Re: Applied "ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update" to the asoc tree

2018-01-08 Thread Takashi Sakamoto
81af6b2222c6b4e025a5d01b37b4449b Regards Takashi Sakamoto

Re: [PATCH] ALSA: pcm: Remove VLA usage

2018-03-13 Thread Takashi Sakamoto
ff-by: Takashi Iwai --- sound/core/pcm_native.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) Yeah. I have concerned about it for a long time but kept it as is because it had no issue. Now, let's obsolete it. Reviewed-by: Takashi Sakamoto diff --git a/

Re: [PATCH][next] ALSA: xen-front: remove redundant error check on ret

2018-05-27 Thread Takashi Sakamoto
front_info->num_evt_pairs = num_streams; return 0; Yep. All branches for error path on the nested for loop have goto statement, thus no need to check error outer the loop. Reviewed-by: Takashi Sakamoto Takashi Sakamoto

Re: [PATCH][next] ALSA: xen-front: fix unsigned error check on return from to_sndif_format

2018-05-27 Thread Takashi Sakamoto
s the third argument of xen_snd_front_stream_prepare() because it is 'u8'. This patch looks good to me. Reviewed-by: Takashi Sakamoto Regards Takashi Sakamoto

Re: [PATCH] ALSA: unhide snd_soc_new_compress() declaration

2018-05-30 Thread Takashi Sakamoto
http://mailman.alsa-project.org/pipermail/alsa-devel/2018-May/136620.html [2] ASoC: fix 0-day warnings with snd_soc_new_compress() https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/commit/?h=for-4.18&id=0b014d72ebae14c0c6ab3fb36a442fda91e1a1b3 Thanks Takashi Sakamoto

Re: [PATCH 0/4] Various cleanup + Mic Fix

2018-10-09 Thread Takashi Sakamoto
On 2018年10月09日 04:39, Connor McAdams wrote: This patch set fixes the microphone inconsistency issue, which means the microphone now works all the time on all of the cards I've tested (ZxR, Z, AE-5), along with the input effects. It also includes changes suggested by Takashi Sakamoto, I be

Re: [PATCH 17/28] tools include uapi: Update asound.h copy

2018-11-01 Thread Takashi Sakamoto
nd.h' in a development period for Linux kernel v4.21[1]. Would I need to add you to C.C list of the future patch to notify the change, or things go well without such special care for your side? [1] https://github.com/takaswie/presentations/blob/master/20181021/contents.md Regards Takashi Sakamoto

Re: [PATCH 17/28] tools include uapi: Update asound.h copy

2018-11-01 Thread Takashi Sakamoto
Hi, On 2018/11/01 22:04, Arnaldo Carvalho de Melo wrote: Em Thu, Nov 01, 2018 at 08:54:45PM +0900, Takashi Sakamoto escreveu: Hi Arnaldo, On Nov 1 2018 4:29, Arnaldo Carvalho de Melo wrote: Wouldn't a symlink be simpler? That would be equivalent to using it directly, see my respon

Re: [PATCH] Documentation: soundwire: fix stream.rst markup warnings

2018-09-16 Thread Takashi Sakamoto
insertions(+) Reviewed-by: Takashi Sakamoto Tested-by: Takashi Sakamoto Thanks Takashi Sakamoto

Re: [PATCH][next] firewire: core: Fix spelling mistakes in tracepoint messages

2024-06-27 Thread Takashi Sakamoto
pplied to for-next branch. I'll use spellcheck program when posting this kind of changes. Thanks Takashi Sakamoto

Re: [PATCH] sound: firewire: fireworks: fireworks_command: Remove unused function

2015-01-12 Thread Takashi Sakamoto
his is like a story about 'chicken or the egg'. So I cannot achieve this. Now that I have no reports about disorder in this point (this driver cannot handle any Fireworks devices), this function has just a meaning of FYI. Regards Takashi Sakamoto >> --- >> sound/fire

Re: [PATCH v3 5/6] ALSA: xen-front: Implement ALSA virtual sound driver

2018-05-22 Thread Takashi Sakamoto
pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=42f945970af9 [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4b671f577474 [3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b602aa8eb1a0 [4] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fccf53881e9b Regards Takashi Sakamoto

Re: [PATCH v2] pcm_native: Remove VLA usage

2018-03-28 Thread Takashi Sakamoto
or-next&id=5730f9f744cfe20b771adc33f3b476b95d3eebba [2] http://mailman.alsa-project.org/pipermail/alsa-devel/2018-March/133268.html Thanks Takashi Sakamoto

Re: [PATCH v2] firewire: Remove function callback casts

2020-05-19 Thread Takashi Sakamoto
so_mc_callback_t). This idea leaves current drivers as is and the change is done inner firewire-core driver, therefore existent kernel API is not changed. Later I post two patches for the proposal. I'd like you to review it and I'm glad to receive your comments. Regards Takashi Sakamoto

[PATCH 1/2] firewire-core: add kernel API to construct multichannel isoc context

2020-05-19 Thread Takashi Sakamoto
lly, no in-kernel driver uses the mode and the additional kernel API is never used at present. Reported-by: Oscar Carter Reference: https://lore.kernel.org/lkml/20200519173425.4724-1-oscar.car...@gmx.com/ Signed-off-by: Takashi Sakamoto --- drivers/firewire/core-iso.c | 17 + inc

[PATCH 2/2] firewire-core: obsolete cast of function callback

2020-05-19 Thread Takashi Sakamoto
This commit obsoletes cast of function callback to assist attempt of Control Flow Integrity builds. Reported-by: Oscar Carter Reference: https://lore.kernel.org/lkml/20200519173425.4724-1-oscar.car...@gmx.com/ Signed-off-by: Takashi Sakamoto --- drivers/firewire/core-cdev.c | 44

[PATCH 0/2] firewire: obsolete cast of function callback toward CFI

2020-05-19 Thread Takashi Sakamoto
. Although the API is exported in the patchset, it's better to discuss about unexporting the API. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/firewire/core-cdev.c#n985 [2] https://lore.kernel.org/lkml/20200519173425.4724-1-oscar.car...@gmx.com/ Regards Ta

Re: [PATCH/RFC 2/2] ALSA: firewire-tascam: Fix integer overflow in midi_port_work()

2021-01-12 Thread Takashi Sakamoto
uffer to process, or for error code. The error code is checked immediately. The range of value is equal to or less than 3 when reaching the calculation, thus it should be less than 16777. Regardless of the type of 'int' or 'unsigned int', this patch can fix the issued problem. F

Re: [PATCH/RFC 1/2] ALSA: fireface: Fix integer overflow in transmit_midi_msg()

2021-01-12 Thread Takashi Sakamoto
the value is equals to or less than SND_FF_MAXIMIM_MIDI_QUADS (= 9). For latter protocol, the value is equals to or less than 3. Anyway, the value should not be larger than 16777 and the calculation can be done without ULL suffix. Reviewd-by: Takashi Sakamoto > diff --git a/sound/firewire/firef

Re: [PATCH -next] ALSA: bebob: Fix missing unlock on error in special_clk_ctl_put()

2014-07-20 Thread Takashi Sakamoto
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Wei, Thanks for this patch, while I found the other issues in this file. I would like to post new patches instead of yours, later. Thanks Takashi Sakamoto o-taka...@sakamocchi.jp (Jul 20 2014 13:50), weiyj...@163.com wrote: > From: Wei Yong

[PATCH 1/3] bebob: Fix a missing to unlock mutex in error handling case

2014-07-22 Thread Takashi Sakamoto
() https://lkml.org/lkml/2014/7/20/12 Signed-off-by: Takashi Sakamoto --- sound/firewire/bebob/bebob_maudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/firewire/bebob/bebob_maudio.c b/sound/firewire/bebob/bebob_maudio.c index 6af50eb..fc470c6 100644 --- a

Re: [alsa-devel] [patch 2/2] ALSA: fireworks: small leak on error path

2014-05-28 Thread Takashi Sakamoto
(May 29 2014 01:42), Dan Carpenter wrote: > There was a typo here so we return directly instead of freeing "hwinfo". > > Signed-off-by: Dan Carpenter Reviewd-by: Takashi Sakamoto Tested-by: Takashi Sakamoto > diff --git a/sound/firewire/fireworks/fireworks.c > b

Re: [patch] ASoC: hdac_hdmi: Potential NULL deref in hdac_hdmi_get_spk_alloc()

2016-05-03 Thread Takashi Sakamoto
On May 03 2016 16:42, Dan Carpenter wrote: > We intended || here instead of &&. The original code potentially leads > to a NULL dereference. > > Fixes: 2889099eb8cd ('ASoC: hdac_hdmi: Register chmap controls and ops') > Signed-off-by: Dan Carpenter Inde

Re: [PATCH] ALSA: pcm: constify action_ops structures

2015-11-29 Thread Takashi Sakamoto
readers. Reviewed-by: Takashi Sakamoto Tested-by: Takashi Sakamoto --- sound/core/pcm_native.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index a8b27cd..fadd3eb 100644 --- a/sound/core

Re: [PATCH] ALSA: firewire-digi00x: Drop bogus const type qualifier on dot_scrt()

2016-02-08 Thread Takashi Sakamoto
ytterhoeven Yep. It came from original code[1] and I overlooked. Reviewed-by: Takashi Sakamoto > --- > sound/firewire/digi00x/amdtp-dot.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/firewire/digi00x/amdtp-dot.c > b/sound/fire

Re: [PATCH] sound: use enum names instead of magic numbers

2014-11-29 Thread Takashi Sakamoto
evel(format); > memcpy(verbose_fmt, format, end_of_header - format); > vaf.fmt = end_of_header; > - } else if (level) > + } else if (snd_level) > memcpy(verbose_fmt, KERN_DEBUG, sizeof(KERN_DEBUG) - 1); > printk(verbose_fmt, sanity_file_name(path), line, &vaf); There's no need to rename variable names. Regards Takashi Sakamoto o-taka...@sakamocchi.jp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [patch 2/2] ALSA: oxfw: fix detect_loud_models() return value

2014-12-12 Thread Takashi Sakamoto
return false; > > for (i = 0; i < ARRAY_SIZE(models); i++) { > if (strcmp(models[i], model) == 0) Reviewd-by: Takashi Sakamoto Thanks Takashi Sakamoto o-taka...@sakamocchi.jp -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings

2015-11-01 Thread Takashi Sakamoto
Hi, On Nov 02 2015 15:55, Julia Lawall wrote: Move constant to the right of binary operators. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci CC: Takashi Sakamoto Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall --- Depends on personal taste, but the modified version

Re: [PATCH] ALSA: firewire-lib: fix compare_const_fl.cocci warnings

2015-11-02 Thread Takashi Sakamoto
Hi Julia, On Nov 02 2015 16:20, Julia Lawall wrote: On Mon, 2 Nov 2015, Takashi Sakamoto wrote: Hi, On Nov 02 2015 15:55, Julia Lawall wrote: Move constant to the right of binary operators. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci CC: Takashi Sakamoto Signed-off-by

Re: [PATCH] ALSA: bebob: constify snd_bebob_rate_spec structures

2015-10-10 Thread Takashi Sakamoto
a.c|2 +- > 9 files changed, 11 insertions(+), 11 deletions(-) Thanks. This patch, itself, is OK to me, while I wonder why this patch doesn't change the other members like rate and meter. Regards Takashi Sakamoto > diff --git a/sound/firewire/bebob/bebob_yamaha.c > b/soun

Re: [PATCH v2] ALSA: bebob: constify snd_bebob_rate_spec structures

2015-10-10 Thread Takashi Sakamoto
wire/bebob/bebob_stream.c|6 +++--- > sound/firewire/bebob/bebob_terratec.c | 10 +- > sound/firewire/bebob/bebob_yamaha.c|6 +++--- > 9 files changed, 61 insertions(+), 61 deletions(-) Tested-by: Takashi Sakamoto Reviewed-by: Takashi Sakamoto Thank you to incl

Re: [PATCH v3] ALSA: bebob: constify various snd_bebob structures

2015-10-11 Thread Takashi Sakamoto
rratec.c | 10 +- > sound/firewire/bebob/bebob_yamaha.c|6 +++--- > 9 files changed, 61 insertions(+), 61 deletions(-) Tested-by: Takashi Sakamoto Reviewed-by: Takashi Sakamoto Good, thanks ;) Takashi Sakamoto > diff --git a/sound/firewire/bebob/bebob.c b/sound/fi

[PATCH] MAINTAINERS: update entry of firewire audio drivers

2019-08-30 Thread Takashi Sakamoto
to post their issues, especially for regression. Signed-off-by: Takashi Sakamoto --- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 24e29b2e53c9..8929a2ec75f7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6264,8 +6264,9 @@ S

Re: [PATCH] MAINTAINERS: update entry of firewire audio drivers

2019-09-02 Thread Takashi Sakamoto
On Sat, Aug 31, 2019 at 05:27:13PM +0200, Takashi Iwai wrote: > On Fri, 30 Aug 2019 15:24:46 +0200, > Takashi Sakamoto wrote: > > > > This commit adds myself as one of maintainers for firewire audio > > drivers and IEC 61883-1/6 packet streaming engine. I call them ALSA

[PATCH] MAINTAINERS: update entry for firewire audio drivers with UAPI header

2019-09-03 Thread Takashi Sakamoto
header. Signed-off-by: Takashi Sakamoto --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4200194e69ea..6bd54ce6dc66 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6271,6 +6271,7 @@ L:alsa-de...@alsa-project.org (moderated for non

Re: [alsa-devel] [PATCH][next] ALSA: firewire-lib: remove redundant assignment to cip_header

2019-05-24 Thread Takashi Sakamoto
" ALSA: firewire-lib: refactoring to obsolete IR packet handler"). https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?id=98e3e43b599d742c104864c6772a251025ffb52b Thanks Takashi Sakamoto

Re: [PATCH] MAINTAINERS: update git tree for sound entries

2019-05-02 Thread Takashi Sakamoto
sed instead. > > Signed-off-by: Ross Zwisler > --- > MAINTAINERS | 13 ++--- > 1 file changed, 6 insertions(+), 7 deletions(-) This is a good catch. Reviewed-by: Takashi Sakamoto > diff --git a/MAINTAINERS b/MAINTAINERS > index e17ebf70b5480..d373d976a9317 1

Re: [alsa-devel] [PATCH] ALSA: firewire: fix a memory leak bug

2019-08-08 Thread Takashi Sakamoto
- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Takashi Sakamoto And this bug exists till its first commit for v2.6.39. Fixes: 31ef9134eb52 ("ALSA: add LaCie FireWire Speakers/Griffin FireWave Surround driver") Cc: # v2.6.39+ Thanks Takashi Sakamoto

Re: [PATCH 08/11] UAPI: sound: Fix use of u32 and co. in UAPI headers

2018-09-05 Thread Takashi Sakamoto
/sound.git/log/?h=for-4.19 Thanks Takashi Sakamoto

Re: [PATCH 05/11] ALSA: hda/ca0132 - Add DBpro hda_codec_ops

2018-09-30 Thread Takashi Sakamoto
nt to members in hda_codec, etc.) ->'spec' preparation (assignment to members in ca0132_spec, etc.) Regards Takashi Sakamoto

Re: [PATCH 10/11] ALSA: hda/ca0132 - Add ZxR 600 ohm gain control

2018-09-30 Thread Takashi Sakamoto
add_mic_boost_enum - ae5_add_headphone_gain_enum - ae5_add_sound_filter_enum - zxr_add_headphone_gain_switch This is not a strong request and you can work for it after merging this patchset. We have two weeks more till next merge window. Regards Takashi Sakamoto

Re: [PATCH 00/11] Add ZxR support + bugfixes

2018-10-01 Thread Takashi Sakamoto
/ca0132 - Add ZxR exit commands sound/pci/hda/patch_ca0132.c | 369 --- 1 file changed, 345 insertions(+), 24 deletions(-) I reviewed the above patches and they looks good to be merged to upstream. Reviewed-by: Takashi Sakamoto I've already point

Re: [alsa-devel] [PATCH 29/33] ALSA: oxfw: use match_string() helper

2018-05-21 Thread Takashi Sakamoto
/firewire/oxfw/oxfw.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) Reviewed-by: Takashi Sakamoto For my information, use_match_string() helper was firstly introduced to v4.6 kernel by a commit 56b060814e2d ('lib/string: introduce match_string() helper'). diff --g

Re: [PATCH 28/33] ALSA: dice use match_string() helper

2018-05-21 Thread Takashi Sakamoto
Hi, On May 21 2018 20:58, Yisheng Xie wrote: match_string() returns the index of an array for a matching string, which can be used intead of open coded variant. Cc: Clemens Ladisch Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Takashi Sakamoto Cc: alsa-de...@alsa-project.org Signed-off-by

Re: [PATCH 1/9] R3Di and SBZ quirk entires + alt firmware loading

2018-05-04 Thread Takashi Sakamoto
's better to write enough information in the cover letter. For its content, please refer to cover letters by the other developers in alsa-devel archive. http://mailman.alsa-project.org/pipermail/alsa-devel/ Thanks Takashi Sakamoto

Re: [PATCH v5 00/13] ALSA: hda/ca0132: Patch Series for Recon3Di and Sound Blaster Z Support

2018-05-10 Thread Takashi Sakamoto
iewed the above patches. Reviewed-by: Takashi Sakamoto There're some points to improve such like read-only memory objects, and I'll post some patches for them after merging this patchset. Thanks Takashi Sakamoto

Re: [PATCH v3 5/9] ALSA: hda/ca0132: add/change helper functions for R3Di and SBZ

2018-05-06 Thread Takashi Sakamoto
dspio_alloc_dma_chan() * dspio_free_dma_chan() * Changes for SBZ only * Changes for R3Di only Could you please prepare for these three patches from this large patch in your next chance? Especially, you can describe enough information to the latter two patches as patch comment. Thanks Takashi Sakamoto

Re: [PATCH v3 6/9] ALSA: hda/ca0132: add alt_select_in/out for R3Di + SBZ

2018-05-06 Thread Takashi Sakamoto
eqs = { 0x18, 0x01, 0x1F, 0x15, + 0x3A, 0x1A, 0x1B, 0x1C }, + .vals = { 0x, 0x, 0x, + 0x, 0x, 0x, + 0x, 0x } + } +}; + It's better to add 'const' qualifier. Regards Takashi Sakamoto

Re: [RFC] [ALSA][CONTROL] Added 2 ioctls for reading/writing values of multiple controls in one go (at once)

2017-02-01 Thread Takashi Sakamoto
_user(ctl, argp, true); case SNDRV_CTL_IOCTL_ELEM_LOCK: return snd_ctl_elem_lock(ctl, argp); case SNDRV_CTL_IOCTL_ELEM_UNLOCK: Thanks Takashi Sakamoto

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-14 Thread Takashi Sakamoto
long as in-kernel drivers know specifications of endpoints, userspace applications can start PCM substreams correctly. [1] In detail, please refer to specification of 1394TA I introduced: http://www.spinics.net/lists/netdev/msg381259.html [2] I guess that IEC 61883-1/6 packet for Ethernet-AVB is a mutant from original specifications. Regards Takashi Sakamoto

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-14 Thread Takashi Sakamoto
ur side, few developers can tell you, I think. Regards Takashi Sakamoto

Re: sound: bebop: strncmp length oddity

2016-11-17 Thread Takashi Sakamoto
ix, just for readers. But I agree with these patches because the code is a bit confusing. I'll post a patch soon for this aim with appropriate information, sorry for Nicolas. Thanks Takashi Sakamoto

Re: [PATCH] ALSA: snd-usb: fix IRQ triggered NULL pointer dereference

2016-12-19 Thread Takashi Sakamoto
static int snd_usb_pcm_prepare(struct snd_pcm_substream > *substream) > /* for playback, submit the URBs now; otherwise, the first hwptr_done >* updates for all URBs would happen at the same time when starting */ > if (subs->direction == SNDRV_PCM_STREAM_PLAYB

Re: [PATCH] ALSA: snd-usb: fix IRQ triggered NULL pointer dereference

2016-12-20 Thread Takashi Sakamoto
Hi, On Dec 20 2016 20:47, Ioan-Adrian Ratiu wrote: On Tue, 20 Dec 2016, Takashi Sakamoto wrote: --- Hi, Commit 16200948d835 ("ALSA: usb-audio: Fix race at stopping the stream") fixes a race-codition but it also introduces another really nasty data race regression which makes my

Re: [PATCH 2/3 v2] ALSA: usb-audio: avoid setting of sample rate multiple times on bus

2016-12-05 Thread Takashi Sakamoto
On Dec 5 2016 16:32, Jiada Wang wrote: Hi Sakamoto On 11/30/2016 02:45 AM, Takashi Sakamoto wrote: Hi Jiada, I don't oppose this patch. Nevertheless, your description is not necessarily correct. On Nov 30 2016 16:59, Jiada Wang wrote: From: Daniel Girnus ALSA usually calls the pr

Re: [PATCH] ALSA: use designated initializers

2016-12-17 Thread Takashi Sakamoto
d-off-by: Kees Cook --- sound/synth/emux/emux_seq.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) Reviewed-by: Takashi Sakamoto diff --git a/sound/synth/emux/emux_seq.c b/sound/synth/emux/emux_seq.c index a0209204ae48..55579f6b8cb2 100644 --- a/sound/synth/emux/emux_

Re: [PATCH 2/3 v2] ALSA: usb-audio: avoid setting of sample rate multiple times on bus

2016-11-30 Thread Takashi Sakamoto
nit_sample_rate(subs->stream->chip, + subs->cur_audiofmt->iface, + alts, + subs->cur_audiofmt, + subs->cur_rate); + if (ret < 0) + goto unlock; + ret = configure_endpoint(subs); if (ret < 0) goto unlock; Regards Takashi Sakamoto

Re: [PATCH 2/3 v2] ALSA: usb-audio: avoid setting of sample rate multiple times on bus

2016-11-30 Thread Takashi Sakamoto
On Nov 30 2016 19:45, Takashi Sakamoto wrote: Hi Jiada, I don't oppose this patch. Nevertheless, your description is not necessarily correct. On Nov 30 2016 16:59, Jiada Wang wrote: From: Daniel Girnus ALSA usually calls the prepare function twice before starting the playback:

Re: [PATCH] ASoC: topology: avoid uninitialized kcontrol_type

2016-12-10 Thread Takashi Sakamoto
_kcontrols == 0) { + kcontrol_type = 0; template.num_kcontrols = 0; goto widget; } Reported-by: Dan Carpenter Reviewed-by: Takashi Sakamoto This bug was already reported but not fixed yet: [alsa-devel] [bug report] ASoC: topology: Only free TLV for volume mixers of a wi

Re: [very-RFC 0/8] TSN driver for the kernel

2016-06-17 Thread Takashi Sakamoto
15, 2016 at 12:15:24PM +0900, Takashi Sakamoto wrote: >>> On Mon, Jun 13, 2016 at 01:47:13PM +0200, Richard Cochran wrote: >>>> I have seen audio PLL/multiplier chips that will take, for example, a >>>> 10 kHz input and produce your 48 kHz media clock. With the ri

Re: [PATCH] ASLA: emu10k1: constify snd_emux_operators structure

2017-02-19 Thread Takashi Sakamoto
On Feb 19 2016 19:21, Bhumika Goyal wrote: Declare snd_emux_operators structure as const as it is only copied into another structure. So, snd_emux_operators structures having this property can be made const. Signed-off-by: Bhumika Goyal Reviewed-by: Takashi Sakamoto ...The 'ASLA

Re: [PATCH] ASoC: dwc: remove 'out of memory' message

2017-02-26 Thread Takashi Sakamoto
f (!dev) { - dev_warn(&pdev->dev, "kzalloc fail\n"); + if (!dev) The line for 'dev_warn()' should be kept. return -ENOMEM; - } dw_i2s_dai = devm_kzalloc(&pdev->dev, sizeof(*dw_i2s_dai), GFP_KERNEL); if (!dw_i2s_dai) Regards Takashi Sakamoto

Re: [PATCH] ASoC: rockchip: i2s: Remove unnecessary 'out of memory' message

2017-02-26 Thread Takashi Sakamoto
_KERNEL); - if (!i2s) { - dev_err(&pdev->dev, "Can't allocate rk_i2s_dev\n"); + if (!i2s) The line for dev_warn() should be kept. return -ENOMEM; - } i2s->dev = &pdev->dev; Regards Takashi Sakamoto

Re: [PATCH] ASoC: spear: Remove redundant message

2017-02-26 Thread Takashi Sakamoto
host), GFP_KERNEL); - if (!host) { - dev_warn(&pdev->dev, "kzalloc fail\n"); + if (!host) Ditto. return -ENOMEM; - } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); host->io_base = devm_ioremap_resource(&pdev->dev, res); Takashi Sakamoto

Re: [PATCH -next] ASoC: hdmi-codec: fix non static symbol warnings

2017-02-26 Thread Takashi Sakamoto
t be static? Signed-off-by: Wei Yongjun --- sound/soc/codecs/hdmi-codec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Takashi Sakamoto Unfortunately, this patch causes conflict to Mark's PR[0], due to a commit 8480ac567959 ("ASoC: hdmi-codec: remove H

Re: [RFC v2] [ALSA][CONTROL] 1. Added 2 ioctls for reading/writing values of multiple controls in one go (at once) 2. Restructured the code for read/write of a single control

2017-02-06 Thread Takashi Sakamoto
ed elements; e.g. only for elements belong to one control element set. On Feb 3 2017 16:24, Takashi Iwai wrote: On Thu, 02 Feb 2017 04:45:48 +0100, Takashi Sakamoto wrote: I'm _strongly_ interested in your two patches, because it has a potentiality to purge ASoC abuse of TLV feature, which

Re: [PATCH] ALSA: x86: mark hdmi suspend/resume functions as __maybe_unused

2017-02-07 Thread Takashi Sakamoto
function calls to NULL and the function definition is omitted. This is a sample: https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/pci/hda/patch_sigmatel.c#n4427 Let us apply the same idea to this module? Thanks Takashi Sakamoto

Re: [PATCH 1170/1285] Replace numeric parameter like 0444 with macro

2016-08-02 Thread Takashi Sakamoto
and that using macro can improve the robustness and readability of the code, > thus, I suggest replacing the numeric parameter with the macro. > > Signed-off-by: Chuansheng Liu > Signed-off-by: Baole Ni Reviewed-by: Takashi Sakamoto > --- > sound/firewire/fireworks/fireworks.c

Re: [PATCH 1169/1285] Replace numeric parameter like 0444 with macro

2016-08-02 Thread Takashi Sakamoto
and that using macro can improve the robustness and readability of the code, > thus, I suggest replacing the numeric parameter with the macro. > > Signed-off-by: Chuansheng Liu > Signed-off-by: Baole Ni Reviewed-by: Takashi Sakamoto > --- > sound/firewire/bebob/bebob.

Re: Use of copy_to_user in fireworks_hwdep.c while holding a spin_lock

2016-08-19 Thread Takashi Sakamoto
fault. I'm on short summer vacation, so will post patches for them in next week. Thanks Takashi Sakamoto

Re: [PATCH] ALSA: riptide: Use DIV_ROUND_UP

2016-06-29 Thread Takashi Sakamoto
eriod) f = f >> 1; - pages = (size + f - 1) / f; + pages = DIV_ROUND_UP(size, f); data->size = size; data->pages = pages; snd_printdd Reviewed-by: Takashi Sakamoto Regards Takashi Sakamoto

Re: sound: use-after-free in snd_seq_deliver_single_event

2016-02-01 Thread Takashi Sakamoto
development for my minor hardwares... (Actually, Iwai-san posted patches to fix them at incredibly pace. I can't follow his pace, because I'm working for ALSA in my free time.) Regards Takashi Sakamoto -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBCAAG

Re: sound: use-after-free in snd_seq_deliver_single_event

2016-02-01 Thread Takashi Sakamoto
x27;t mind to receive them because it's a good information for me to get current state of ALSA core functionality. If I had some spare time, I was also going to fix it. But currently I have little time for it due to my development for my minor hardwares... (Actually, Iwai-san posted patches to fix them at incredibly pace. I can't follow his pace, because I'm working for ALSA in my free time.) Regards Takashi Sakamoto

Re: [PATCH] ALSA: bebob: Use a signed return type for get_formation_index

2016-01-25 Thread Takashi Sakamoto
m params for both streams */ > - index = get_formation_index(rate); > + err = get_formation_index(rate, &index); > + if (err < 0) > + goto end; > pcm_channels = bebob->tx_stream_formations[index].pcm; > midi_channels = bebob->tx_stream

Re: [PATCH v3] firewire: Remove function callback casts

2020-07-08 Thread Takashi Sakamoto
es code more > clear and declarative. This way avoid the call to a function with one > purpose to achieved another one. > > Co-developed-by: Takashi Sakamoto > Signed-off-by: Takashi Sakamoto > Co-developed-by: Stefan Richter > Signed-off-by: Stefan Richter > Signed-off-

Re: [PATCH 4/8] ALSA: fireworks: use semicolons rather than commas to separate statements

2020-10-11 Thread Takashi Sakamoto
efw->supported_sampling_rate, > + runtime->hw.rates = efw->supported_sampling_rate; > snd_pcm_limit_hw_rates(runtime); > > limit_channels(&runtime->hw, pcm_channels); Oops. It seems to be my typo added at the commit aa02bb6e6078 ("ALSA: fireworks: Add PCM interface")... Acked-by: Takashi Sakamoto Thanks Takashi Sakamoto

Re: [PATCH v2] firewire: Remove function callback casts

2020-05-23 Thread Takashi Sakamoto
Hi Greg, On Sat, May 23, 2020 at 08:10:33AM +0200, Greg KH wrote: > On Fri, May 22, 2020 at 07:43:08PM +0200, Oscar Carter wrote: > > Hi, > > > > On Wed, May 20, 2020 at 03:16:24PM +0900, Takashi Sakamoto wrote: > > > Hi, > > > > > > I'm an a

[PATCH v2] firewire-core: remove cast of function callback

2020-05-24 Thread Takashi Sakamoto
unction - tested by libhinoko Reported-by: Oscar Carter Reference: https://lore.kernel.org/lkml/20200519173425.4724-1-oscar.car...@gmx.com/ Signed-off-by: Takashi Sakamoto --- drivers/firewire/core-cdev.c | 40 +++- include/linux/firewire.h | 16 +++

Re: [PATCH v2] firewire-core: remove cast of function callback

2020-05-24 Thread Takashi Sakamoto
; At first place, I wrote the similar patch but judged it's a bit ad-hoc way that callback functions are assigned after the call of fw_iso_context_create() in raw code. For explicitness in a point of things being declarative, I put the inline function into header, and avoid someone's misfortune for future even if IEEE 1394 is enough legacy. Anyway, I don't mind Stefan's proposal since it works well. It depends on developers' fashion to choose policy to write codes. Thanks Takashi Sakamoto

Re: [PATCH] firewire: fix function type cast warning

2020-10-26 Thread Takashi Sakamoto
+++--- > drivers/firewire/core-iso.c | 2 +- > include/linux/firewire.h | 17 - > 3 files changed, 12 insertions(+), 13 deletions(-) Oscar Carter has posted a patch to fix it. https://sourceforge.net/p/linux1394/mailman/message/37024966/ I don't know exactly but maintainers seems to overlook it... Thanks Takashi Sakamoto

Re: [PATCH] ALSA: firewire: fix comparison to bool warning

2020-11-10 Thread Takashi Sakamoto
am.h:273:6-19: WARNING: Comparison to bool > > > > Reported-by: Tosk Robot > > Signed-off-by: Kaixu Xia The message seems not to reach my mailbox. Anyway: Acked-by: Takashi Sakamoto > Thanks, applied. > > > Takashi > > > --- > > sound/firewire/amdtp-stream.

Re: [PATCH] ANDROID: sound: usb: Add vendor's hooking interface

2020-06-16 Thread Takashi Sakamoto
snd_set_vender_interface); I think the symbol name has typo; 'vender' against 'vendor'. Anyway, this feature is not widely used at present. I suggest to add kernel configuration for the feature at kernel compilation time, IMO. Regards Takashi Sakamoto

Re: [PATCH] ALSA: fireworks: Replace zero-length array with flexible-array

2020-05-07 Thread Takashi Sakamoto
und with the help of Coccinelle. > > [1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > [2] https://github.com/KSPP/linux/issues/21 > [3] commit 76497732932f ("cxgb3/l2t: Fix undefined behaviour") > > Signed-off-by: Gustavo A. R. Silva > --- > sound/firewire/fi

Re: [PATCH] ASoC: Intel: Skylake: fix uninitialized pointer use

2017-04-27 Thread Takashi Sakamoto
lization to a helper function") Signed-off-by: Arnd Bergmann --- sound/soc/intel/skylake/bxt-sst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Takashi Sakamoto diff --git a/sound/soc/intel/skylake/bxt-sst.c b/sound/soc/intel/skylake/bxt-sst.c index fde4bc0f35b0..

Re: [PATCH] ASoC: Intel: Skylake: use dev in dev_err rather than skl pointer

2017-04-27 Thread Takashi Sakamoto
return ret; > } Thanks for posting this patch, however Vinod already posted the same fix. Please wait for merging it and verify again: [alsa-devel] [PATCH 1/3] ASoC: Intel: Skylake: Fix uninitialized pointer usage http://mailman.alsa-project.org/pipermail/alsa-devel/2017-April/120214.html Regards Takashi Sakamoto

Re: [PATCH] ALSA: line6: constify snd_kcontrol_new structures

2017-04-12 Thread Takashi Sakamoto
ruct snd_kcontrol_new x; Signed-off-by: Bhumika Goyal --- sound/usb/line6/pod.c | 2 +- sound/usb/line6/toneport.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Takashi Sakamoto I have interests in your way to detect this kind of issue, because below &#x

  1   2   >