Skip to content

Commit 1325705

Browse files
committed
Merge pull request #1495 from shawaj/rpi-4.4.y
Change BoomBerry name to JustBoom in all locations due to legal challenge
2 parents 37b930a + aacba35 commit 1325705

File tree

10 files changed

+118
-118
lines changed

10 files changed

+118
-118
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ dtbo-$(RPI_DT_OVERLAYS) += akkordion-iqdacplus.dtbo
1818
dtbo-$(RPI_DT_OVERLAYS) += at86rf233.dtbo
1919
dtbo-$(RPI_DT_OVERLAYS) += audioinjector-wm8731-audio.dtbo
2020
dtbo-$(RPI_DT_OVERLAYS) += bmp085_i2c-sensor.dtbo
21-
dtbo-$(RPI_DT_OVERLAYS) += boomberry-dac.dtbo
22-
dtbo-$(RPI_DT_OVERLAYS) += boomberry-digi.dtbo
2321
dtbo-$(RPI_DT_OVERLAYS) += dpi24.dtbo
2422
dtbo-$(RPI_DT_OVERLAYS) += dwc2.dtbo
2523
dtbo-$(RPI_DT_OVERLAYS) += dwc-otg.dtbo
@@ -43,6 +41,8 @@ dtbo-$(RPI_DT_OVERLAYS) += i2s-gpio28-31.dtbo
4341
dtbo-$(RPI_DT_OVERLAYS) += i2s-mmap.dtbo
4442
dtbo-$(RPI_DT_OVERLAYS) += iqaudio-dac.dtbo
4543
dtbo-$(RPI_DT_OVERLAYS) += iqaudio-dacplus.dtbo
44+
dtbo-$(RPI_DT_OVERLAYS) += justboom-dac.dtbo
45+
dtbo-$(RPI_DT_OVERLAYS) += justboom-digi.dtbo
4646
dtbo-$(RPI_DT_OVERLAYS) += lirc-rpi.dtbo
4747
dtbo-$(RPI_DT_OVERLAYS) += mcp2515-can0.dtbo
4848
dtbo-$(RPI_DT_OVERLAYS) += mcp2515-can1.dtbo

arch/arm/boot/dts/overlays/README

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -238,32 +238,6 @@ Load: dtoverlay=bmp085_i2c-sensor
238238
Params: <None>
239239

240240

241-
Name: boomberry-dac
242-
Info: Configures the BoomBerry DAC HAT, Amp HAT, DAC Zero and Amp Zero audio
243-
cards
244-
Load: dtoverlay=boomberry-dac,<param>=<val>
245-
Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
246-
Digital volume control. Enable with
247-
"dtoverlay=boomberry-dac,24db_digital_gain"
248-
(The default behaviour is that the Digital
249-
volume control is limited to a maximum of
250-
0dB. ie. it can attenuate but not provide
251-
gain. For most users, this will be desired
252-
as it will prevent clipping. By appending
253-
the 24dB_digital_gain parameter, the Digital
254-
volume control will allow up to 24dB of
255-
gain. If this parameter is enabled, it is the
256-
responsibility of the user to ensure that
257-
the Digital volume control is set to a value
258-
that does not result in clipping/distortion!)
259-
260-
261-
Name: boomberry-digi
262-
Info: Configures the BoomBerry Digi HAT and Digi Zero audio cards
263-
Load: dtoverlay=boomberry-digi
264-
Params: <None>
265-
266-
267241
Name: dht11
268242
Info: Overlay for the DHT11/DHT21/DHT22 humidity/temperature sensors
269243
Also sometimes found with the part number(s) AM230x.
@@ -543,6 +517,32 @@ Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
543517
that does not result in clipping/distortion!)
544518

545519

520+
Name: justboom-dac
521+
Info: Configures the JustBoom DAC HAT, Amp HAT, DAC Zero and Amp Zero audio
522+
cards
523+
Load: dtoverlay=justboom-dac,<param>=<val>
524+
Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
525+
Digital volume control. Enable with
526+
"dtoverlay=justboom-dac,24db_digital_gain"
527+
(The default behaviour is that the Digital
528+
volume control is limited to a maximum of
529+
0dB. ie. it can attenuate but not provide
530+
gain. For most users, this will be desired
531+
as it will prevent clipping. By appending
532+
the 24dB_digital_gain parameter, the Digital
533+
volume control will allow up to 24dB of
534+
gain. If this parameter is enabled, it is the
535+
responsibility of the user to ensure that
536+
the Digital volume control is set to a value
537+
that does not result in clipping/distortion!)
538+
539+
540+
Name: justboom-digi
541+
Info: Configures the JustBoom Digi HAT and Digi Zero audio cards
542+
Load: dtoverlay=justboom-digi
543+
Params: <None>
544+
545+
546546
Name: lirc-rpi
547547
Info: Configures lirc-rpi (Linux Infrared Remote Control for Raspberry Pi)
548548
Consult the module documentation for more details.

arch/arm/boot/dts/overlays/boomberry-dac-overlay.dts renamed to arch/arm/boot/dts/overlays/justboom-dac-overlay.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Definitions for BoomBerry DAC
1+
// Definitions for JustBoom DAC
22
/dts-v1/;
33
/plugin/;
44

@@ -31,13 +31,13 @@
3131
fragment@2 {
3232
target = <&sound>;
3333
frag2: __overlay__ {
34-
compatible = "boomberry,boomberry-dac";
34+
compatible = "justboom,justboom-dac";
3535
i2s-controller = <&i2s>;
3636
status = "okay";
3737
};
3838
};
3939

4040
__overrides__ {
41-
24db_digital_gain = <&frag2>,"boomberry,24db_digital_gain?";
41+
24db_digital_gain = <&frag2>,"justboom,24db_digital_gain?";
4242
};
4343
};

arch/arm/boot/dts/overlays/boomberry-digi-overlay.dts renamed to arch/arm/boot/dts/overlays/justboom-digi-overlay.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Definitions for BoomBerry Digi
1+
// Definitions for JustBoom Digi
22
/dts-v1/;
33
/plugin/;
44

@@ -31,7 +31,7 @@
3131
fragment@2 {
3232
target = <&sound>;
3333
__overlay__ {
34-
compatible = "boomberry,boomberry-digi";
34+
compatible = "justboom,justboom-digi";
3535
i2s-controller = <&i2s>;
3636
status = "okay";
3737
};

arch/arm/configs/bcm2709_defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@ CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI=m
861861
CONFIG_SND_BCM2708_SOC_HIFIBERRY_AMP=m
862862
CONFIG_SND_BCM2708_SOC_RPI_DAC=m
863863
CONFIG_SND_BCM2708_SOC_RPI_PROTO=m
864-
CONFIG_SND_BCM2708_SOC_BOOMBERRY_DAC=m
865-
CONFIG_SND_BCM2708_SOC_BOOMBERRY_DIGI=m
864+
CONFIG_SND_BCM2708_SOC_JUSTBOOM_DAC=m
865+
CONFIG_SND_BCM2708_SOC_JUSTBOOM_DIGI=m
866866
CONFIG_SND_BCM2708_SOC_IQAUDIO_DAC=m
867867
CONFIG_SND_BCM2708_SOC_RASPIDAC3=m
868868
CONFIG_SND_AUDIOINJECTOR_PI_SOUNDCARD=m

arch/arm/configs/bcmrpi_defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,8 @@ CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI=m
853853
CONFIG_SND_BCM2708_SOC_HIFIBERRY_AMP=m
854854
CONFIG_SND_BCM2708_SOC_RPI_DAC=m
855855
CONFIG_SND_BCM2708_SOC_RPI_PROTO=m
856-
CONFIG_SND_BCM2708_SOC_BOOMBERRY_DAC=m
857-
CONFIG_SND_BCM2708_SOC_BOOMBERRY_DIGI=m
856+
CONFIG_SND_BCM2708_SOC_JUSTBOOM_DAC=m
857+
CONFIG_SND_BCM2708_SOC_JUSTBOOM_DIGI=m
858858
CONFIG_SND_BCM2708_SOC_IQAUDIO_DAC=m
859859
CONFIG_SND_BCM2708_SOC_RASPIDAC3=m
860860
CONFIG_SND_AUDIOINJECTOR_PI_SOUNDCARD=m

sound/soc/bcm/Kconfig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ config SND_BCM2708_SOC_RPI_PROTO
5050
help
5151
Say Y or M if you want to add support for Audio Codec Board PROTO (WM8731).
5252

53-
config SND_BCM2708_SOC_BOOMBERRY_DAC
54-
tristate "Support for BoomBerry DAC"
53+
config SND_BCM2708_SOC_JUSTBOOM_DAC
54+
tristate "Support for JustBoom DAC"
5555
depends on SND_BCM2708_SOC_I2S || SND_BCM2835_SOC_I2S
5656
select SND_SOC_PCM512x
5757
help
58-
Say Y or M if you want to add support for BoomBerry DAC.
58+
Say Y or M if you want to add support for JustBoom DAC.
5959

60-
config SND_BCM2708_SOC_BOOMBERRY_DIGI
61-
tristate "Support for BoomBerry Digi"
60+
config SND_BCM2708_SOC_JUSTBOOM_DIGI
61+
tristate "Support for JustBoom Digi"
6262
depends on SND_BCM2708_SOC_I2S || SND_BCM2835_SOC_I2S
6363
select SND_SOC_WM8804
6464
help
65-
Say Y or M if you want to add support for BoomBerry Digi.
65+
Say Y or M if you want to add support for JustBoom Digi.
6666

6767
config SND_BCM2708_SOC_IQAUDIO_DAC
6868
tristate "Support for IQaudIO-DAC"

sound/soc/bcm/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ snd-soc-hifiberry-dac-objs := hifiberry_dac.o
99
snd-soc-hifiberry-dacplus-objs := hifiberry_dacplus.o
1010
snd-soc-hifiberry-digi-objs := hifiberry_digi.o
1111
snd-soc-hifiberry-amp-objs := hifiberry_amp.o
12-
snd-soc-boomberry-dac-objs := boomberry-dac.o
13-
snd-soc-boomberry-digi-objs := boomberry-digi.o
12+
snd-soc-justboom-dac-objs := justboom-dac.o
13+
snd-soc-justboom-digi-objs := justboom-digi.o
1414
snd-soc-rpi-dac-objs := rpi-dac.o
1515
snd-soc-rpi-proto-objs := rpi-proto.o
1616
snd-soc-iqaudio-dac-objs := iqaudio-dac.o
@@ -23,8 +23,8 @@ obj-$(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC) += snd-soc-hifiberry-dac.o
2323
obj-$(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DACPLUS) += snd-soc-hifiberry-dacplus.o
2424
obj-$(CONFIG_SND_BCM2708_SOC_HIFIBERRY_DIGI) += snd-soc-hifiberry-digi.o
2525
obj-$(CONFIG_SND_BCM2708_SOC_HIFIBERRY_AMP) += snd-soc-hifiberry-amp.o
26-
obj-$(CONFIG_SND_BCM2708_SOC_BOOMBERRY_DAC) += snd-soc-boomberry-dac.o
27-
obj-$(CONFIG_SND_BCM2708_SOC_BOOMBERRY_DIGI) += snd-soc-boomberry-digi.o
26+
obj-$(CONFIG_SND_BCM2708_SOC_JUSTBOOM_DAC) += snd-soc-justboom-dac.o
27+
obj-$(CONFIG_SND_BCM2708_SOC_JUSTBOOM_DIGI) += snd-soc-justboom-digi.o
2828
obj-$(CONFIG_SND_BCM2708_SOC_RPI_DAC) += snd-soc-rpi-dac.o
2929
obj-$(CONFIG_SND_BCM2708_SOC_RPI_PROTO) += snd-soc-rpi-proto.o
3030
obj-$(CONFIG_SND_BCM2708_SOC_IQAUDIO_DAC) += snd-soc-iqaudio-dac.o

sound/soc/bcm/boomberry-dac.c renamed to sound/soc/bcm/justboom-dac.c

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ASoC Driver for BoomBerry DAC Raspberry Pi HAT Sound Card
2+
* ASoC Driver for JustBoom DAC Raspberry Pi HAT Sound Card
33
*
44
* Author: Milan Neskovic
55
* Copyright 2016
@@ -29,7 +29,7 @@
2929

3030
static bool digital_gain_0db_limit = true;
3131

32-
static int snd_rpi_boomberry_dac_init(struct snd_soc_pcm_runtime *rtd)
32+
static int snd_rpi_justboom_dac_init(struct snd_soc_pcm_runtime *rtd)
3333
{
3434
struct snd_soc_codec *codec = rtd->codec;
3535
snd_soc_update_bits(codec, PCM512x_GPIO_EN, 0x08, 0x08);
@@ -49,7 +49,7 @@ static int snd_rpi_boomberry_dac_init(struct snd_soc_pcm_runtime *rtd)
4949
return 0;
5050
}
5151

52-
static int snd_rpi_boomberry_dac_hw_params(struct snd_pcm_substream *substream,
52+
static int snd_rpi_justboom_dac_hw_params(struct snd_pcm_substream *substream,
5353
struct snd_pcm_hw_params *params)
5454
{
5555
struct snd_soc_pcm_runtime *rtd = substream->private_data;
@@ -60,58 +60,58 @@ static int snd_rpi_boomberry_dac_hw_params(struct snd_pcm_substream *substream,
6060
return snd_soc_dai_set_bclk_ratio(cpu_dai, sample_bits * 2);
6161
}
6262

63-
static int snd_rpi_boomberry_dac_startup(struct snd_pcm_substream *substream) {
63+
static int snd_rpi_justboom_dac_startup(struct snd_pcm_substream *substream) {
6464
struct snd_soc_pcm_runtime *rtd = substream->private_data;
6565
struct snd_soc_codec *codec = rtd->codec;
6666
snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x08);
6767
return 0;
6868
}
6969

70-
static void snd_rpi_boomberry_dac_shutdown(struct snd_pcm_substream *substream) {
70+
static void snd_rpi_justboom_dac_shutdown(struct snd_pcm_substream *substream) {
7171
struct snd_soc_pcm_runtime *rtd = substream->private_data;
7272
struct snd_soc_codec *codec = rtd->codec;
7373
snd_soc_update_bits(codec, PCM512x_GPIO_CONTROL_1, 0x08,0x00);
7474
}
7575

7676
/* machine stream operations */
77-
static struct snd_soc_ops snd_rpi_boomberry_dac_ops = {
78-
.hw_params = snd_rpi_boomberry_dac_hw_params,
79-
.startup = snd_rpi_boomberry_dac_startup,
80-
.shutdown = snd_rpi_boomberry_dac_shutdown,
77+
static struct snd_soc_ops snd_rpi_justboom_dac_ops = {
78+
.hw_params = snd_rpi_justboom_dac_hw_params,
79+
.startup = snd_rpi_justboom_dac_startup,
80+
.shutdown = snd_rpi_justboom_dac_shutdown,
8181
};
8282

83-
static struct snd_soc_dai_link snd_rpi_boomberry_dac_dai[] = {
83+
static struct snd_soc_dai_link snd_rpi_justboom_dac_dai[] = {
8484
{
85-
.name = "BoomBerry DAC",
86-
.stream_name = "BoomBerry DAC HiFi",
85+
.name = "JustBoom DAC",
86+
.stream_name = "JustBoom DAC HiFi",
8787
.cpu_dai_name = "bcm2708-i2s.0",
8888
.codec_dai_name = "pcm512x-hifi",
8989
.platform_name = "bcm2708-i2s.0",
9090
.codec_name = "pcm512x.1-004d",
9191
.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
9292
SND_SOC_DAIFMT_CBS_CFS,
93-
.ops = &snd_rpi_boomberry_dac_ops,
94-
.init = snd_rpi_boomberry_dac_init,
93+
.ops = &snd_rpi_justboom_dac_ops,
94+
.init = snd_rpi_justboom_dac_init,
9595
},
9696
};
9797

9898
/* audio machine driver */
99-
static struct snd_soc_card snd_rpi_boomberry_dac = {
100-
.name = "snd_rpi_boomberry_dac",
99+
static struct snd_soc_card snd_rpi_justboom_dac = {
100+
.name = "snd_rpi_justboom_dac",
101101
.owner = THIS_MODULE,
102-
.dai_link = snd_rpi_boomberry_dac_dai,
103-
.num_links = ARRAY_SIZE(snd_rpi_boomberry_dac_dai),
102+
.dai_link = snd_rpi_justboom_dac_dai,
103+
.num_links = ARRAY_SIZE(snd_rpi_justboom_dac_dai),
104104
};
105105

106-
static int snd_rpi_boomberry_dac_probe(struct platform_device *pdev)
106+
static int snd_rpi_justboom_dac_probe(struct platform_device *pdev)
107107
{
108108
int ret = 0;
109109

110-
snd_rpi_boomberry_dac.dev = &pdev->dev;
110+
snd_rpi_justboom_dac.dev = &pdev->dev;
111111

112112
if (pdev->dev.of_node) {
113113
struct device_node *i2s_node;
114-
struct snd_soc_dai_link *dai = &snd_rpi_boomberry_dac_dai[0];
114+
struct snd_soc_dai_link *dai = &snd_rpi_justboom_dac_dai[0];
115115
i2s_node = of_parse_phandle(pdev->dev.of_node,
116116
"i2s-controller", 0);
117117

@@ -123,40 +123,40 @@ static int snd_rpi_boomberry_dac_probe(struct platform_device *pdev)
123123
}
124124

125125
digital_gain_0db_limit = !of_property_read_bool(
126-
pdev->dev.of_node, "boomberry,24db_digital_gain");
126+
pdev->dev.of_node, "justboom,24db_digital_gain");
127127
}
128128

129-
ret = snd_soc_register_card(&snd_rpi_boomberry_dac);
129+
ret = snd_soc_register_card(&snd_rpi_justboom_dac);
130130
if (ret)
131131
dev_err(&pdev->dev,
132132
"snd_soc_register_card() failed: %d\n", ret);
133133

134134
return ret;
135135
}
136136

137-
static int snd_rpi_boomberry_dac_remove(struct platform_device *pdev)
137+
static int snd_rpi_justboom_dac_remove(struct platform_device *pdev)
138138
{
139-
return snd_soc_unregister_card(&snd_rpi_boomberry_dac);
139+
return snd_soc_unregister_card(&snd_rpi_justboom_dac);
140140
}
141141

142-
static const struct of_device_id snd_rpi_boomberry_dac_of_match[] = {
143-
{ .compatible = "boomberry,boomberry-dac", },
142+
static const struct of_device_id snd_rpi_justboom_dac_of_match[] = {
143+
{ .compatible = "justboom,justboom-dac", },
144144
{},
145145
};
146-
MODULE_DEVICE_TABLE(of, snd_rpi_boomberry_dac_of_match);
146+
MODULE_DEVICE_TABLE(of, snd_rpi_justboom_dac_of_match);
147147

148-
static struct platform_driver snd_rpi_boomberry_dac_driver = {
148+
static struct platform_driver snd_rpi_justboom_dac_driver = {
149149
.driver = {
150-
.name = "snd-rpi-boomberry-dac",
150+
.name = "snd-rpi-justboom-dac",
151151
.owner = THIS_MODULE,
152-
.of_match_table = snd_rpi_boomberry_dac_of_match,
152+
.of_match_table = snd_rpi_justboom_dac_of_match,
153153
},
154-
.probe = snd_rpi_boomberry_dac_probe,
155-
.remove = snd_rpi_boomberry_dac_remove,
154+
.probe = snd_rpi_justboom_dac_probe,
155+
.remove = snd_rpi_justboom_dac_remove,
156156
};
157157

158-
module_platform_driver(snd_rpi_boomberry_dac_driver);
158+
module_platform_driver(snd_rpi_justboom_dac_driver);
159159

160-
MODULE_AUTHOR("Milan Neskovic <info@boomberry.co>");
161-
MODULE_DESCRIPTION("ASoC Driver for BoomBerry PI DAC HAT Sound Card");
160+
MODULE_AUTHOR("Milan Neskovic <info@justboom.co>");
161+
MODULE_DESCRIPTION("ASoC Driver for JustBoom PI DAC HAT Sound Card");
162162
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)