From nobody Sat Feb 7 23:12:08 2026 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 585DE26FDB3; Fri, 2 May 2025 23:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746229952; cv=none; b=gdNaaJjpgd3vzN4pQ7PXJF4pc4NyIKa48/Wmt281W985wMYRKMYmC+YrYNor4+oFhU9C7ve1zzmN1eazEkNbT5LwVRi6UfXJi8YTBPaNNcW24AX4dN8CUe9WIVxm2uiaeSWpTitNz/pVpCh5NQW8LycnPmxBLkWOH0eYaVV95yM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746229952; c=relaxed/simple; bh=zAgH+djeOGqxmUG5c4lAUFzNnTPXVg73UurfRPaFwNM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cymQlv0tg2d+/P6syfhnMTT+aQa2Hu0hAdnij74FWwoHL4mPjTiIb+GdspE7bb13coNy2+zgPRdyzRdTb9xtRlbellP18yY5FEN4ZC+5/FPEb1Hn6YquQmn3vll3bG34L9Een4xNR55PVqCPMnyvS0a43kywDzYHfbi1NzezoT4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=Y9mOZNod; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="Y9mOZNod" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=wOpoPXDanw7hWb8RG2ENxp7DtfIebhCQZJBYP6VGVF4=; b=Y9mOZNodDuqbFbKd xWbZnBM86eWn9XI6T25J/BLBms8jlsyXqFFQZcDg6ivR+KGWZAUw7N3wiYJIXrvysMH1PsBW5z13q FZN9amNeHhe1obWKJpfe7Rd7Lh+BAY4lJGiBT/606LsgQEzfKk84YlhJBcQoclCDuOelll+YRDEHM e5Ij7FJKQYEWJs+2ObGuifiht6V9rHZOQrUwLLYq1v+KOhEuO+neS3/larZ7GovfJ+uZHNP0+Uf6f cwlU8TpondBxX3MXxHyr95kwYmkeyLXOJ5ZvqJsW5Gu01sdmUYFOYteNkMX8IFCNwLxHxQQDipEv3 wa8YQ7FjKuq1vUOK6A==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1uB0B2-001BML-2g; Fri, 02 May 2025 23:52:20 +0000 From: linux@treblig.org To: perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 1/5] ALSA: pcm: Remove unused snd_pcm_rate_range_to_bits Date: Sat, 3 May 2025 00:52:15 +0100 Message-ID: <20250502235219.1000429-2-linux@treblig.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250502235219.1000429-1-linux@treblig.org> References: <20250502235219.1000429-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" The last use of snd_pcm_rate_range_to_bits() was removed in 2016 by commit b6b6e4d670c9 ("ASoC: topology: Fix setting of stream rates, rate_min and rate_max") Remove it. Signed-off-by: Dr. David Alan Gilbert --- include/sound/pcm.h | 2 -- sound/core/pcm_misc.c | 30 ------------------------------ 2 files changed, 32 deletions(-) diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 8becb4504887..a268de860259 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -1251,8 +1251,6 @@ unsigned int snd_pcm_rate_to_rate_bit(unsigned int ra= te); unsigned int snd_pcm_rate_bit_to_rate(unsigned int rate_bit); unsigned int snd_pcm_rate_mask_intersect(unsigned int rates_a, unsigned int rates_b); -unsigned int snd_pcm_rate_range_to_bits(unsigned int rate_min, - unsigned int rate_max); =20 /** * snd_pcm_set_runtime_buffer - Set the PCM runtime buffer diff --git a/sound/core/pcm_misc.c b/sound/core/pcm_misc.c index d3a08e292072..71eec32a7a0a 100644 --- a/sound/core/pcm_misc.c +++ b/sound/core/pcm_misc.c @@ -586,33 +586,3 @@ unsigned int snd_pcm_rate_mask_intersect(unsigned int = rates_a, return rates_a & rates_b; } EXPORT_SYMBOL_GPL(snd_pcm_rate_mask_intersect); - -/** - * snd_pcm_rate_range_to_bits - converts rate range to SNDRV_PCM_RATE_xxx = bit - * @rate_min: the minimum sample rate - * @rate_max: the maximum sample rate - * - * This function has an implicit assumption: the rates in the given range = have - * only the pre-defined rates like 44100 or 16000. - * - * Return: The SNDRV_PCM_RATE_xxx flag that corresponds to the given rate = range, - * or SNDRV_PCM_RATE_KNOT for an unknown range. - */ -unsigned int snd_pcm_rate_range_to_bits(unsigned int rate_min, - unsigned int rate_max) -{ - unsigned int rates =3D 0; - int i; - - for (i =3D 0; i < snd_pcm_known_rates.count; i++) { - if (snd_pcm_known_rates.list[i] >=3D rate_min - && snd_pcm_known_rates.list[i] <=3D rate_max) - rates |=3D 1 << i; - } - - if (!rates) - rates =3D SNDRV_PCM_RATE_KNOT; - - return rates; -} -EXPORT_SYMBOL_GPL(snd_pcm_rate_range_to_bits); --=20 2.49.0 From nobody Sat Feb 7 23:12:08 2026 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25775213E6D; Fri, 2 May 2025 23:52:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746229947; cv=none; b=JAbU1AQhEvatAAwzfyOYMEwR1kgd1FFzUZYKbI/weU1dVB0PaZtxCitzMZFjsM95vH2Vf8lQLRIYfoGQZ5Xn5AHg49goF52Ro4XxldVOnHLUyRjTl8xloDPQjfWOYKVhI4va63zJbNt2/nBmw0MFm53IOfNYOZYzUfnJw8lDmZw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746229947; c=relaxed/simple; bh=h0NXm4EeAEuLfFAjmxP0ZulxojsR4s/BCdjlDr3/p8Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jbfmOn281x2LR5D6D51LZg3jHhOMQglEF+RJxY0ne/r6smHCwfomszkz6YBgtRLrlPYRFbhST+2lRzQvl/fS9xDlEnfLAw1hDMy3M3YQWnkejOqGBtMmkc9kXwSmFoHKJUhrM3Lc06buEqs06rK8bhQ8HIfOFYUC4r8ilYvOlYo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=L+C4sJws; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="L+C4sJws" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=cU7PYvl7ywL0Qq3Rit2A1bW2uoggjy3UStcxE/MjAYc=; b=L+C4sJwszERQta2q bqjDi1oCNtoqF3xuSq40yo6vUnjFnITj7qTofPkFvCTjr5Pttk1Zp8UAP75iUsroqI3PVj5RduDiS P4Oj7AP+CVwJ+VU0vy/XqOa/6M79idrgjJ1B0pMdodDZFosPgzC22ClgRxQ9wXcTlpnReaxQ717eU KvDAEOzGS/k2SjQPP6QthzFGmFbVCwUyS/4cKBryQg6Piji/Yv08LSGCeXlCU121mqf3oTllrR8fH 81eZshA6LPY1ABA3kt1DrhusUObWeKdfTNwUrx5rpt0vCcP6ChdJrf8oCAQCJ/pNGZajgXjdMG6hs Fpj8xUfvyzRAyK+ypg==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1uB0B3-001BML-16; Fri, 02 May 2025 23:52:21 +0000 From: linux@treblig.org To: perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 2/5] ALSA: pcm: Remove unused snd_dmaengine_pcm_open_request_chan Date: Sat, 3 May 2025 00:52:16 +0100 Message-ID: <20250502235219.1000429-3-linux@treblig.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250502235219.1000429-1-linux@treblig.org> References: <20250502235219.1000429-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" snd_dmaengine_pcm_open_request_chan() last use was removed in 2022's commit b401d1fd8053 ("ASoC: pxa: remove unused board support") Remove it. Signed-off-by: Dr. David Alan Gilbert --- include/sound/dmaengine_pcm.h | 2 -- sound/core/pcm_dmaengine.c | 21 --------------------- 2 files changed, 23 deletions(-) diff --git a/include/sound/dmaengine_pcm.h b/include/sound/dmaengine_pcm.h index f6baa9a01868..1ef13bcdc43f 100644 --- a/include/sound/dmaengine_pcm.h +++ b/include/sound/dmaengine_pcm.h @@ -38,8 +38,6 @@ int snd_dmaengine_pcm_open(struct snd_pcm_substream *subs= tream, int snd_dmaengine_pcm_close(struct snd_pcm_substream *substream); int snd_dmaengine_pcm_sync_stop(struct snd_pcm_substream *substream); =20 -int snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream *substrea= m, - dma_filter_fn filter_fn, void *filter_data); int snd_dmaengine_pcm_close_release_chan(struct snd_pcm_substream *substre= am); =20 struct dma_chan *snd_dmaengine_pcm_request_channel(dma_filter_fn filter_fn, diff --git a/sound/core/pcm_dmaengine.c b/sound/core/pcm_dmaengine.c index b134a51b3fd5..72040964b6fd 100644 --- a/sound/core/pcm_dmaengine.c +++ b/sound/core/pcm_dmaengine.c @@ -328,27 +328,6 @@ int snd_dmaengine_pcm_open(struct snd_pcm_substream *s= ubstream, } EXPORT_SYMBOL_GPL(snd_dmaengine_pcm_open); =20 -/** - * snd_dmaengine_pcm_open_request_chan - Open a dmaengine based PCM substr= eam and request channel - * @substream: PCM substream - * @filter_fn: Filter function used to request the DMA channel - * @filter_data: Data passed to the DMA filter function - * - * This function will request a DMA channel using the passed filter functi= on and - * data. The function should usually be called from the pcm open callback.= Note - * that this function will use private_data field of the substream's runti= me. So - * it is not available to your pcm driver implementation. - * - * Return: 0 on success, a negative error code otherwise - */ -int snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream *substrea= m, - dma_filter_fn filter_fn, void *filter_data) -{ - return snd_dmaengine_pcm_open(substream, - snd_dmaengine_pcm_request_channel(filter_fn, filter_data)); -} -EXPORT_SYMBOL_GPL(snd_dmaengine_pcm_open_request_chan); - int snd_dmaengine_pcm_sync_stop(struct snd_pcm_substream *substream) { struct dmaengine_pcm_runtime_data *prtd =3D substream_to_prtd(substream); --=20 2.49.0 From nobody Sat Feb 7 23:12:08 2026 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E0232367DC; Fri, 2 May 2025 23:52:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746229946; cv=none; b=M3bB5cClvzh5fbqm5rHnbWm4aVGeyI7X2MrFmwewdm1sWMhUINrjla9ac8ABGuOZK5Q4sHY2YJXQjdck/EJCqcryKhHQiNZK6QvDndgg1Qz+M7QkTZFtj0yx6tTziFcvNYVorv6361HXtzzXGILqb0YLLXWp1cV98NXeZNomtPQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746229946; c=relaxed/simple; bh=WDRNOCYo2jJlSRVkWUeczKWPdChCLb1xesEuGZJfdDs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fvAHL8MeihwSYSWmfru8J3MK9Hdgdf/DWoZ5QoT9F5fyf99esvrj8i7ITuzBBU2shYUCrnmmtHyY98Pus8fXjrpn624W7iiV+gYNsB80AgXcYalkf7xitBi2DStIFHaPCpJ4IW1kM0NrT4waeVwyShvmx6BMMvBhb+sYSs40AIU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=HxX3d9/P; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="HxX3d9/P" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=uFtmLkJAfyba1DIaEeZdfcvwwLxleLFpxAegkPpfQOU=; b=HxX3d9/PkcOEjGWr AVGvGWNAQe65VVz/BFg3f6M9K6slB53pWSUXkDN0NP4LcRj4R46lBd/c/eupfIV81oqGxOrgdpWS+ sWa6FPTlXYEu4EzWX11ocyZg8N3LGiRuPXGdF4Xt4hwWqcPS/f+hT39jSo+VHXPZBCUiA68cy69HF fU6xPeg6FUhUFFlAr7f89y6psmeIG/r+h0fbJsQ5ZTu0zzuM3oO68VuD8vA0ZlaOvhmIiNpFsNPIa 6WfX8ySfwXTWhju8Cb3JFTbszploGeZQa1rHNg1cG2eN/dOiQinBI4HXYHPH9h2MWymrIf9AIFc2k 0oEp1YchwTQ73Ycsuw==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1uB0B3-001BML-2d; Fri, 02 May 2025 23:52:21 +0000 From: linux@treblig.org To: perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 3/5] ALSA: seq: Remove unused snd_seq_queue_client_leave_cells Date: Sat, 3 May 2025 00:52:17 +0100 Message-ID: <20250502235219.1000429-4-linux@treblig.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250502235219.1000429-1-linux@treblig.org> References: <20250502235219.1000429-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" The last use of snd_seq_queue_client_leave_cells() was removed in 2018 by commit 85d59b57be59 ("ALSA: seq: Remove superfluous snd_seq_queue_client_leave_cells() call") Remove it. Signed-off-by: Dr. David Alan Gilbert --- sound/core/seq/seq_queue.c | 16 ---------------- sound/core/seq/seq_queue.h | 1 - 2 files changed, 17 deletions(-) diff --git a/sound/core/seq/seq_queue.c b/sound/core/seq/seq_queue.c index 5df26788dda4..10add922323d 100644 --- a/sound/core/seq/seq_queue.c +++ b/sound/core/seq/seq_queue.c @@ -564,22 +564,6 @@ void snd_seq_queue_client_leave(int client) =20 /*----------------------------------------------------------------*/ =20 -/* remove cells from all queues */ -void snd_seq_queue_client_leave_cells(int client) -{ - int i; - struct snd_seq_queue *q; - - for (i =3D 0; i < SNDRV_SEQ_MAX_QUEUES; i++) { - q =3D queueptr(i); - if (!q) - continue; - snd_seq_prioq_leave(q->tickq, client, 0); - snd_seq_prioq_leave(q->timeq, client, 0); - queuefree(q); - } -} - /* remove cells based on flush criteria */ void snd_seq_queue_remove_cells(int client, struct snd_seq_remove_events *= info) { diff --git a/sound/core/seq/seq_queue.h b/sound/core/seq/seq_queue.h index 74cc31aacdac..b81379c9af43 100644 --- a/sound/core/seq/seq_queue.h +++ b/sound/core/seq/seq_queue.h @@ -66,7 +66,6 @@ void snd_seq_queue_client_leave(int client); int snd_seq_enqueue_event(struct snd_seq_event_cell *cell, int atomic, int= hop); =20 /* Remove events */ -void snd_seq_queue_client_leave_cells(int client); void snd_seq_queue_remove_cells(int client, struct snd_seq_remove_events *= info); =20 /* return pointer to queue structure for specified id */ --=20 2.49.0 From nobody Sat Feb 7 23:12:08 2026 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B6B52701CA; Fri, 2 May 2025 23:52:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746229948; cv=none; b=K1mr0r6Ps6NDosABBmLKs7iBMGGCZgjd2zR8pIhNJt4RQ50SCHbmJusLn4ldoSoQQQBdXIfIYzz8wX7D0dhWME4TyY+b2LisKJ95H2Jnn7ZVjbj3D01ZbX9Yoz/NTacEEvGZfMktJsvKYIZQf3QzNqTQSSIMfRMIGAUdnE317TA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746229948; c=relaxed/simple; bh=r3SOx+4tIs5UVWHOWyBMj6xgY1H/nNSg6vJd+lwSRuM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rq5tnMEffksEQRhBN4MWQMr821O0caEKzjFkNi0xhuuoVBo2XVm9Okqd7rHKU55xDs5tf87ajpPPBvgBfXyKW13+0ftiV8rXij3pQl4v4rRqov5VI9Izrt6AkKR+tCfI7PVAGqag9SeVEYqekGPGdYErnFJSicVcN6z2Mnh8nL8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=sk7lKHbq; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="sk7lKHbq" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=dE2TbXySXTyn4iP/oq6u//q/0QbdJINWiIw94sh6vOs=; b=sk7lKHbqW/hRWCmZ WUcx6VXicF1ojfirGnHwMAlpUIZinUOpcC6Xvvj/OmWcTIFCskMLvTyCP2gmP9Xkvb4U82dCyhHyn yXeQ2OIK9TQ9g8tfVcVbw6Favoq/qdBoBFSsMH3hGaT1q+9xM6G1iJuPQg7AyT83jU6yXcxVCpv/e a90+3wS5pD0xZFQ73AyAPCNb1IzNoYQSnlmIvMFJ4xGtK+2uZnAaqQl5fbnkjQ+Szremir2cHZWAO TXfbfOkIDG1QieJSMr9e7559R4ds1Q56dKh7/9nQAuTVXOBVIbtgCcheT99JEAOIq0FXiWBFQphpm YL8UpCy4MhfpJNh0ww==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1uB0B4-001BML-1E; Fri, 02 May 2025 23:52:22 +0000 From: linux@treblig.org To: perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 4/5] ALSA: core: Remove unused snd_device_get_state Date: Sat, 3 May 2025 00:52:18 +0100 Message-ID: <20250502235219.1000429-5-linux@treblig.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250502235219.1000429-1-linux@treblig.org> References: <20250502235219.1000429-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" snd_device_get_state() last use was removed in 2022 by commit 7e1afce5866e ("ALSA: usb-audio: Inform the delayed registration more properly") Remove it. Signed-off-by: Dr. David Alan Gilbert --- include/sound/core.h | 1 - sound/core/device.c | 23 ----------------------- 2 files changed, 24 deletions(-) diff --git a/include/sound/core.h b/include/sound/core.h index 1f3f5dccd736..64327e971122 100644 --- a/include/sound/core.h +++ b/include/sound/core.h @@ -326,7 +326,6 @@ void snd_device_disconnect(struct snd_card *card, void = *device_data); void snd_device_disconnect_all(struct snd_card *card); void snd_device_free(struct snd_card *card, void *device_data); void snd_device_free_all(struct snd_card *card); -int snd_device_get_state(struct snd_card *card, void *device_data); =20 /* isadma.c */ =20 diff --git a/sound/core/device.c b/sound/core/device.c index b57d80a17052..cdc5af526739 100644 --- a/sound/core/device.c +++ b/sound/core/device.c @@ -237,26 +237,3 @@ void snd_device_free_all(struct snd_card *card) list_for_each_entry_safe_reverse(dev, next, &card->devices, list) __snd_device_free(dev); } - -/** - * snd_device_get_state - Get the current state of the given device - * @card: the card instance - * @device_data: the data pointer to release - * - * Returns the current state of the given device object. For the valid - * device, either @SNDRV_DEV_BUILD, @SNDRV_DEV_REGISTERED or - * @SNDRV_DEV_DISCONNECTED is returned. - * Or for a non-existing device, -1 is returned as an error. - * - * Return: the current state, or -1 if not found - */ -int snd_device_get_state(struct snd_card *card, void *device_data) -{ - struct snd_device *dev; - - dev =3D look_for_dev(card, device_data); - if (dev) - return dev->state; - return -1; -} -EXPORT_SYMBOL_GPL(snd_device_get_state); --=20 2.49.0 From nobody Sat Feb 7 23:12:08 2026 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B64C2701C9; Fri, 2 May 2025 23:52:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746229947; cv=none; b=sy6LxV4veu/yuvoMedcQjfZ8MqdzQhMSxDaXAAQDOoW6mLsR0GoGjmhSEdyvY1zsrLRCVZAC2MwNDWiNKZYIrloPWRdTdZmidr2s+8hoHoPWnj1n+lbYc5bSJD/F+XlkltHVKkpNAaH4ISVM/dq31gpouhtT2NYWZw2TZOjgCYc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746229947; c=relaxed/simple; bh=sjGyzx5zYffZUol4Bd+XcAn9dmMJPKnOV5ISlUy/8+8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r2yOV0NF/lJ7UnXFpo8rDP0iLpdR2Kyfs0AoDpEL1iRNQuGjraNXv60aK6jgKihOKtSPGDyKPrkNS0RMSat/DrFs6aUx0SLsnYIF7qXQdSk6mILo2Wk498noRowwp94BehL2U3OuTsJ0ImD4modhKGfgmfCce46VFuheAV6dPK0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=PjVfLC62; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="PjVfLC62" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=x2PLJPmdkpGUaXeB0Vpknxa7Gacsdx48KzqeupzvUGQ=; b=PjVfLC62tZRDMJdw eJuHxD/CCzwhbEmysoW0G8LpyNDu8O3DGnpd57lbYEmTioEQBi8RshaoftY4SYbCbMKNZDk2PeMPD I8fx3zRHCZyFLEYXPfmbeZ2gc8g17iZgPYjCiE7jlrDYAzclZpIJYEZawSuWdpNC4s4pRlLVJeFdc rzMU8bAd21ewHoNxORtWC5Kr2A15PS1DPVCkYONHWQh0AjAVCPkYypuALk5b+P+UKEAF6otvgHaYL Gp8SBtVzWIGsRZxsCQ/AqXed6OJrrrNYCwfLr0bNfTGBsDuzWXcoygLhlBgRvfZrRxaLlvy/7qcTz lApCfjR+Rwr+HHlCXQ==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1uB0B5-001BML-0N; Fri, 02 May 2025 23:52:23 +0000 From: linux@treblig.org To: perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 5/5] ALSA: core: Remove unused snd_jack_set_parent Date: Sat, 3 May 2025 00:52:19 +0100 Message-ID: <20250502235219.1000429-6-linux@treblig.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250502235219.1000429-1-linux@treblig.org> References: <20250502235219.1000429-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" snd_jack_set_parent() was added as part of 2008's commit e76d8ceaaff9 ("ALSA: Add jack reporting API") but hasn't been used. Remove it. Signed-off-by: Dr. David Alan Gilbert --- include/sound/jack.h | 6 ------ sound/core/jack.c | 19 ------------------- 2 files changed, 25 deletions(-) diff --git a/include/sound/jack.h b/include/sound/jack.h index 1ed90e2109e9..36dc104c1145 100644 --- a/include/sound/jack.h +++ b/include/sound/jack.h @@ -79,7 +79,6 @@ int snd_jack_new(struct snd_card *card, const char *id, i= nt type, struct snd_jack **jack, bool initial_kctl, bool phantom_jack); int snd_jack_add_new_kctl(struct snd_jack *jack, const char * name, int ma= sk); #ifdef CONFIG_SND_JACK_INPUT_DEV -void snd_jack_set_parent(struct snd_jack *jack, struct device *parent); int snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type, int keytype); #endif @@ -104,11 +103,6 @@ static inline void snd_jack_report(struct snd_jack *ja= ck, int status) #endif =20 #if !defined(CONFIG_SND_JACK) || !defined(CONFIG_SND_JACK_INPUT_DEV) -static inline void snd_jack_set_parent(struct snd_jack *jack, - struct device *parent) -{ -} - static inline int snd_jack_set_key(struct snd_jack *jack, enum snd_jack_types type, int keytype) diff --git a/sound/core/jack.c b/sound/core/jack.c index e4bcecdf89b7..850f82340278 100644 --- a/sound/core/jack.c +++ b/sound/core/jack.c @@ -574,25 +574,6 @@ int snd_jack_new(struct snd_card *card, const char *id= , int type, EXPORT_SYMBOL(snd_jack_new); =20 #ifdef CONFIG_SND_JACK_INPUT_DEV -/** - * snd_jack_set_parent - Set the parent device for a jack - * - * @jack: The jack to configure - * @parent: The device to set as parent for the jack. - * - * Set the parent for the jack devices in the device tree. This - * function is only valid prior to registration of the jack. If no - * parent is configured then the parent device will be the sound card. - */ -void snd_jack_set_parent(struct snd_jack *jack, struct device *parent) -{ - WARN_ON(jack->registered); - guard(mutex)(&jack->input_dev_lock); - if (jack->input_dev) - jack->input_dev->dev.parent =3D parent; -} -EXPORT_SYMBOL(snd_jack_set_parent); - /** * snd_jack_set_key - Set a key mapping on a jack * --=20 2.49.0